@aceplus/smartace-api 2.11.0-alpha.2 → 2.11.0-alpha.4
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/platform.client_pb.d.ts +11 -10
- package/platform.client_pb.js +52 -56
- package/spic.cabinet_pb.d.ts +45 -10
- package/spic.cabinet_pb.js +316 -57
- package/spic.cabinet_pb_service.d.ts +19 -0
- package/spic.cabinet_pb_service.js +40 -0
package/package.json
CHANGED
package/platform.client_pb.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
6
|
+
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
6
7
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
7
8
|
import * as auth_account_pb from "./auth.account_pb";
|
|
8
9
|
|
|
@@ -72,10 +73,10 @@ export namespace ClientProto {
|
|
|
72
73
|
getCountry(): string;
|
|
73
74
|
setCountry(value: string): void;
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
setImage(value
|
|
76
|
+
hasImage(): boolean;
|
|
77
|
+
clearImage(): void;
|
|
78
|
+
getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
|
|
79
|
+
setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
|
|
79
80
|
|
|
80
81
|
getPhone(): string;
|
|
81
82
|
setPhone(value: string): void;
|
|
@@ -111,7 +112,7 @@ export namespace ClientProto {
|
|
|
111
112
|
export type AsObject = {
|
|
112
113
|
name: string,
|
|
113
114
|
country: string,
|
|
114
|
-
image
|
|
115
|
+
image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
|
|
115
116
|
phone: string,
|
|
116
117
|
pb_public: boolean,
|
|
117
118
|
spicModuleEnabled: boolean,
|
|
@@ -189,10 +190,10 @@ export namespace ClientProto {
|
|
|
189
190
|
getCountry(): string;
|
|
190
191
|
setCountry(value: string): void;
|
|
191
192
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
setImage(value
|
|
193
|
+
hasImage(): boolean;
|
|
194
|
+
clearImage(): void;
|
|
195
|
+
getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
|
|
196
|
+
setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
|
|
196
197
|
|
|
197
198
|
getPhone(): string;
|
|
198
199
|
setPhone(value: string): void;
|
|
@@ -215,7 +216,7 @@ export namespace ClientProto {
|
|
|
215
216
|
id: number,
|
|
216
217
|
name: string,
|
|
217
218
|
country: string,
|
|
218
|
-
image
|
|
219
|
+
image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
|
|
219
220
|
phone: string,
|
|
220
221
|
pb_public: boolean,
|
|
221
222
|
}
|
package/platform.client_pb.js
CHANGED
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
|
+
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
26
28
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
27
29
|
goog.object.extend(proto, platform_pagination_pb);
|
|
28
30
|
var auth_account_pb = require('./auth.account_pb.js');
|
|
@@ -526,7 +528,7 @@ proto.Platform.ClientProto.CreateRequest.toObject = function(includeInstance, ms
|
|
|
526
528
|
var f, obj = {
|
|
527
529
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
528
530
|
country: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
529
|
-
image: msg.
|
|
531
|
+
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
530
532
|
phone: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
531
533
|
pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
532
534
|
spicModuleEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
@@ -578,7 +580,8 @@ proto.Platform.ClientProto.CreateRequest.deserializeBinaryFromReader = function(
|
|
|
578
580
|
msg.setCountry(value);
|
|
579
581
|
break;
|
|
580
582
|
case 3:
|
|
581
|
-
var value =
|
|
583
|
+
var value = new google_protobuf_wrappers_pb.BytesValue;
|
|
584
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
|
|
582
585
|
msg.setImage(value);
|
|
583
586
|
break;
|
|
584
587
|
case 4:
|
|
@@ -650,11 +653,12 @@ proto.Platform.ClientProto.CreateRequest.serializeBinaryToWriter = function(mess
|
|
|
650
653
|
f
|
|
651
654
|
);
|
|
652
655
|
}
|
|
653
|
-
f = message.
|
|
654
|
-
if (f
|
|
655
|
-
writer.
|
|
656
|
+
f = message.getImage();
|
|
657
|
+
if (f != null) {
|
|
658
|
+
writer.writeMessage(
|
|
656
659
|
3,
|
|
657
|
-
f
|
|
660
|
+
f,
|
|
661
|
+
google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
|
|
658
662
|
);
|
|
659
663
|
}
|
|
660
664
|
f = message.getPhone();
|
|
@@ -739,44 +743,39 @@ proto.Platform.ClientProto.CreateRequest.prototype.setCountry = function(value)
|
|
|
739
743
|
|
|
740
744
|
|
|
741
745
|
/**
|
|
742
|
-
* optional
|
|
743
|
-
* @return {
|
|
746
|
+
* optional google.protobuf.BytesValue image = 3;
|
|
747
|
+
* @return {?proto.google.protobuf.BytesValue}
|
|
744
748
|
*/
|
|
745
749
|
proto.Platform.ClientProto.CreateRequest.prototype.getImage = function() {
|
|
746
|
-
return /** @type
|
|
750
|
+
return /** @type{?proto.google.protobuf.BytesValue} */ (
|
|
751
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 3));
|
|
747
752
|
};
|
|
748
753
|
|
|
749
754
|
|
|
750
755
|
/**
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
757
|
-
this.getImage()));
|
|
756
|
+
* @param {?proto.google.protobuf.BytesValue|undefined} value
|
|
757
|
+
* @return {!proto.Platform.ClientProto.CreateRequest} returns this
|
|
758
|
+
*/
|
|
759
|
+
proto.Platform.ClientProto.CreateRequest.prototype.setImage = function(value) {
|
|
760
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
758
761
|
};
|
|
759
762
|
|
|
760
763
|
|
|
761
764
|
/**
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* @see http://caniuse.com/Uint8Array
|
|
765
|
-
* This is a type-conversion wrapper around `getImage()`
|
|
766
|
-
* @return {!Uint8Array}
|
|
765
|
+
* Clears the message field making it undefined.
|
|
766
|
+
* @return {!proto.Platform.ClientProto.CreateRequest} returns this
|
|
767
767
|
*/
|
|
768
|
-
proto.Platform.ClientProto.CreateRequest.prototype.
|
|
769
|
-
return
|
|
770
|
-
this.getImage()));
|
|
768
|
+
proto.Platform.ClientProto.CreateRequest.prototype.clearImage = function() {
|
|
769
|
+
return this.setImage(undefined);
|
|
771
770
|
};
|
|
772
771
|
|
|
773
772
|
|
|
774
773
|
/**
|
|
775
|
-
*
|
|
776
|
-
* @return {
|
|
774
|
+
* Returns whether this field is set.
|
|
775
|
+
* @return {boolean}
|
|
777
776
|
*/
|
|
778
|
-
proto.Platform.ClientProto.CreateRequest.prototype.
|
|
779
|
-
return jspb.Message.
|
|
777
|
+
proto.Platform.ClientProto.CreateRequest.prototype.hasImage = function() {
|
|
778
|
+
return jspb.Message.getField(this, 3) != null;
|
|
780
779
|
};
|
|
781
780
|
|
|
782
781
|
|
|
@@ -1350,7 +1349,7 @@ proto.Platform.ClientProto.UpdateRequest.toObject = function(includeInstance, ms
|
|
|
1350
1349
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1351
1350
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1352
1351
|
country: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1353
|
-
image: msg.
|
|
1352
|
+
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
1354
1353
|
phone: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1355
1354
|
pb_public: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
1356
1355
|
};
|
|
@@ -1402,7 +1401,8 @@ proto.Platform.ClientProto.UpdateRequest.deserializeBinaryFromReader = function(
|
|
|
1402
1401
|
msg.setCountry(value);
|
|
1403
1402
|
break;
|
|
1404
1403
|
case 4:
|
|
1405
|
-
var value =
|
|
1404
|
+
var value = new google_protobuf_wrappers_pb.BytesValue;
|
|
1405
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
|
|
1406
1406
|
msg.setImage(value);
|
|
1407
1407
|
break;
|
|
1408
1408
|
case 5:
|
|
@@ -1463,11 +1463,12 @@ proto.Platform.ClientProto.UpdateRequest.serializeBinaryToWriter = function(mess
|
|
|
1463
1463
|
f
|
|
1464
1464
|
);
|
|
1465
1465
|
}
|
|
1466
|
-
f = message.
|
|
1467
|
-
if (f
|
|
1468
|
-
writer.
|
|
1466
|
+
f = message.getImage();
|
|
1467
|
+
if (f != null) {
|
|
1468
|
+
writer.writeMessage(
|
|
1469
1469
|
4,
|
|
1470
|
-
f
|
|
1470
|
+
f,
|
|
1471
|
+
google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
|
|
1471
1472
|
);
|
|
1472
1473
|
}
|
|
1473
1474
|
f = message.getPhone();
|
|
@@ -1542,44 +1543,39 @@ proto.Platform.ClientProto.UpdateRequest.prototype.setCountry = function(value)
|
|
|
1542
1543
|
|
|
1543
1544
|
|
|
1544
1545
|
/**
|
|
1545
|
-
* optional
|
|
1546
|
-
* @return {
|
|
1546
|
+
* optional google.protobuf.BytesValue image = 4;
|
|
1547
|
+
* @return {?proto.google.protobuf.BytesValue}
|
|
1547
1548
|
*/
|
|
1548
1549
|
proto.Platform.ClientProto.UpdateRequest.prototype.getImage = function() {
|
|
1549
|
-
return /** @type
|
|
1550
|
+
return /** @type{?proto.google.protobuf.BytesValue} */ (
|
|
1551
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 4));
|
|
1550
1552
|
};
|
|
1551
1553
|
|
|
1552
1554
|
|
|
1553
1555
|
/**
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1560
|
-
this.getImage()));
|
|
1556
|
+
* @param {?proto.google.protobuf.BytesValue|undefined} value
|
|
1557
|
+
* @return {!proto.Platform.ClientProto.UpdateRequest} returns this
|
|
1558
|
+
*/
|
|
1559
|
+
proto.Platform.ClientProto.UpdateRequest.prototype.setImage = function(value) {
|
|
1560
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
1563
1563
|
|
|
1564
1564
|
/**
|
|
1565
|
-
*
|
|
1566
|
-
*
|
|
1567
|
-
* @see http://caniuse.com/Uint8Array
|
|
1568
|
-
* This is a type-conversion wrapper around `getImage()`
|
|
1569
|
-
* @return {!Uint8Array}
|
|
1565
|
+
* Clears the message field making it undefined.
|
|
1566
|
+
* @return {!proto.Platform.ClientProto.UpdateRequest} returns this
|
|
1570
1567
|
*/
|
|
1571
|
-
proto.Platform.ClientProto.UpdateRequest.prototype.
|
|
1572
|
-
return
|
|
1573
|
-
this.getImage()));
|
|
1568
|
+
proto.Platform.ClientProto.UpdateRequest.prototype.clearImage = function() {
|
|
1569
|
+
return this.setImage(undefined);
|
|
1574
1570
|
};
|
|
1575
1571
|
|
|
1576
1572
|
|
|
1577
1573
|
/**
|
|
1578
|
-
*
|
|
1579
|
-
* @return {
|
|
1574
|
+
* Returns whether this field is set.
|
|
1575
|
+
* @return {boolean}
|
|
1580
1576
|
*/
|
|
1581
|
-
proto.Platform.ClientProto.UpdateRequest.prototype.
|
|
1582
|
-
return jspb.Message.
|
|
1577
|
+
proto.Platform.ClientProto.UpdateRequest.prototype.hasImage = function() {
|
|
1578
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1583
1579
|
};
|
|
1584
1580
|
|
|
1585
1581
|
|
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
6
7
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
8
|
import * as platform_location_pb from "./platform.location_pb";
|
|
8
9
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
@@ -55,6 +56,17 @@ export class CabinetProto extends jspb.Message {
|
|
|
55
56
|
getImageBlob(): string;
|
|
56
57
|
setImageBlob(value: string): void;
|
|
57
58
|
|
|
59
|
+
hasBatteryPlaced(): boolean;
|
|
60
|
+
clearBatteryPlaced(): void;
|
|
61
|
+
getBatteryPlaced(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
62
|
+
setBatteryPlaced(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
63
|
+
|
|
64
|
+
getBatteryPercentage(): number;
|
|
65
|
+
setBatteryPercentage(value: number): void;
|
|
66
|
+
|
|
67
|
+
getCommunicationTime(): number;
|
|
68
|
+
setCommunicationTime(value: number): void;
|
|
69
|
+
|
|
58
70
|
serializeBinary(): Uint8Array;
|
|
59
71
|
toObject(includeInstance?: boolean): CabinetProto.AsObject;
|
|
60
72
|
static toObject(includeInstance: boolean, msg: CabinetProto): CabinetProto.AsObject;
|
|
@@ -81,6 +93,9 @@ export namespace CabinetProto {
|
|
|
81
93
|
clientId: number,
|
|
82
94
|
isMaintenance: boolean,
|
|
83
95
|
imageBlob: string,
|
|
96
|
+
batteryPlaced?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
97
|
+
batteryPercentage: number,
|
|
98
|
+
communicationTime: number,
|
|
84
99
|
}
|
|
85
100
|
|
|
86
101
|
export class CreateRequest extends jspb.Message {
|
|
@@ -93,10 +108,10 @@ export namespace CabinetProto {
|
|
|
93
108
|
getUid(): string;
|
|
94
109
|
setUid(value: string): void;
|
|
95
110
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
setImage(value
|
|
111
|
+
hasImage(): boolean;
|
|
112
|
+
clearImage(): void;
|
|
113
|
+
getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
|
|
114
|
+
setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
|
|
100
115
|
|
|
101
116
|
getExtIo1Name(): string;
|
|
102
117
|
setExtIo1Name(value: string): void;
|
|
@@ -125,7 +140,7 @@ export namespace CabinetProto {
|
|
|
125
140
|
name: string,
|
|
126
141
|
locationId: number,
|
|
127
142
|
uid: string,
|
|
128
|
-
image
|
|
143
|
+
image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
|
|
129
144
|
extIo1Name: string,
|
|
130
145
|
extIo2Name: string,
|
|
131
146
|
groupId: string,
|
|
@@ -181,10 +196,10 @@ export namespace CabinetProto {
|
|
|
181
196
|
getUid(): string;
|
|
182
197
|
setUid(value: string): void;
|
|
183
198
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
setImage(value
|
|
199
|
+
hasImage(): boolean;
|
|
200
|
+
clearImage(): void;
|
|
201
|
+
getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
|
|
202
|
+
setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
|
|
188
203
|
|
|
189
204
|
getExtIo1Name(): string;
|
|
190
205
|
setExtIo1Name(value: string): void;
|
|
@@ -214,7 +229,7 @@ export namespace CabinetProto {
|
|
|
214
229
|
name: string,
|
|
215
230
|
locationId: number,
|
|
216
231
|
uid: string,
|
|
217
|
-
image
|
|
232
|
+
image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
|
|
218
233
|
extIo1Name: string,
|
|
219
234
|
extIo2Name: string,
|
|
220
235
|
groupId: string,
|
|
@@ -395,6 +410,26 @@ export namespace CabinetProto {
|
|
|
395
410
|
}
|
|
396
411
|
}
|
|
397
412
|
|
|
413
|
+
export class ReplaceBatteryRequest extends jspb.Message {
|
|
414
|
+
getId(): number;
|
|
415
|
+
setId(value: number): void;
|
|
416
|
+
|
|
417
|
+
serializeBinary(): Uint8Array;
|
|
418
|
+
toObject(includeInstance?: boolean): ReplaceBatteryRequest.AsObject;
|
|
419
|
+
static toObject(includeInstance: boolean, msg: ReplaceBatteryRequest): ReplaceBatteryRequest.AsObject;
|
|
420
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
421
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
422
|
+
static serializeBinaryToWriter(message: ReplaceBatteryRequest, writer: jspb.BinaryWriter): void;
|
|
423
|
+
static deserializeBinary(bytes: Uint8Array): ReplaceBatteryRequest;
|
|
424
|
+
static deserializeBinaryFromReader(message: ReplaceBatteryRequest, reader: jspb.BinaryReader): ReplaceBatteryRequest;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export namespace ReplaceBatteryRequest {
|
|
428
|
+
export type AsObject = {
|
|
429
|
+
id: number,
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
398
433
|
export class Image extends jspb.Message {
|
|
399
434
|
serializeBinary(): Uint8Array;
|
|
400
435
|
toObject(includeInstance?: boolean): Image.AsObject;
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
|
+
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
26
28
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
29
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
30
|
var platform_location_pb = require('./platform.location_pb.js');
|
|
@@ -56,6 +58,7 @@ goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.DeactivateRequest', null,
|
|
|
56
58
|
goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.OpenRequestType', null, global);
|
|
57
59
|
goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.SearchReply', null, global);
|
|
58
60
|
goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest.SearchRequest', null, global);
|
|
61
|
+
goog.exportSymbol('proto.Spic.CabinetProto.ReplaceBatteryRequest', null, global);
|
|
59
62
|
goog.exportSymbol('proto.Spic.CabinetProto.RetrieveRequest', null, global);
|
|
60
63
|
goog.exportSymbol('proto.Spic.CabinetProto.RetrieveRequest.SearchCase', null, global);
|
|
61
64
|
goog.exportSymbol('proto.Spic.CabinetProto.SearchReply', null, global);
|
|
@@ -277,6 +280,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
277
280
|
*/
|
|
278
281
|
proto.Spic.CabinetProto.LocationSearchReply.displayName = 'proto.Spic.CabinetProto.LocationSearchReply';
|
|
279
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Generated by JsPbCodeGenerator.
|
|
285
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
286
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
287
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
288
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
289
|
+
* valid.
|
|
290
|
+
* @extends {jspb.Message}
|
|
291
|
+
* @constructor
|
|
292
|
+
*/
|
|
293
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest = function(opt_data) {
|
|
294
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
295
|
+
};
|
|
296
|
+
goog.inherits(proto.Spic.CabinetProto.ReplaceBatteryRequest, jspb.Message);
|
|
297
|
+
if (goog.DEBUG && !COMPILED) {
|
|
298
|
+
/**
|
|
299
|
+
* @public
|
|
300
|
+
* @override
|
|
301
|
+
*/
|
|
302
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.displayName = 'proto.Spic.CabinetProto.ReplaceBatteryRequest';
|
|
303
|
+
}
|
|
280
304
|
/**
|
|
281
305
|
* Generated by JsPbCodeGenerator.
|
|
282
306
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -749,7 +773,10 @@ proto.Spic.CabinetProto.toObject = function(includeInstance, msg) {
|
|
|
749
773
|
groupId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
750
774
|
clientId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
751
775
|
isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
752
|
-
imageBlob: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
776
|
+
imageBlob: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
777
|
+
batteryPlaced: (f = msg.getBatteryPlaced()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
778
|
+
batteryPercentage: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
779
|
+
communicationTime: jspb.Message.getFieldWithDefault(msg, 17, 0)
|
|
753
780
|
};
|
|
754
781
|
|
|
755
782
|
if (includeInstance) {
|
|
@@ -845,6 +872,19 @@ proto.Spic.CabinetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
845
872
|
var value = /** @type {string} */ (reader.readString());
|
|
846
873
|
msg.setImageBlob(value);
|
|
847
874
|
break;
|
|
875
|
+
case 15:
|
|
876
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
877
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
878
|
+
msg.setBatteryPlaced(value);
|
|
879
|
+
break;
|
|
880
|
+
case 16:
|
|
881
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
882
|
+
msg.setBatteryPercentage(value);
|
|
883
|
+
break;
|
|
884
|
+
case 17:
|
|
885
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
886
|
+
msg.setCommunicationTime(value);
|
|
887
|
+
break;
|
|
848
888
|
default:
|
|
849
889
|
reader.skipField();
|
|
850
890
|
break;
|
|
@@ -973,6 +1013,28 @@ proto.Spic.CabinetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
973
1013
|
f
|
|
974
1014
|
);
|
|
975
1015
|
}
|
|
1016
|
+
f = message.getBatteryPlaced();
|
|
1017
|
+
if (f != null) {
|
|
1018
|
+
writer.writeMessage(
|
|
1019
|
+
15,
|
|
1020
|
+
f,
|
|
1021
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1022
|
+
);
|
|
1023
|
+
}
|
|
1024
|
+
f = message.getBatteryPercentage();
|
|
1025
|
+
if (f !== 0) {
|
|
1026
|
+
writer.writeInt32(
|
|
1027
|
+
16,
|
|
1028
|
+
f
|
|
1029
|
+
);
|
|
1030
|
+
}
|
|
1031
|
+
f = message.getCommunicationTime();
|
|
1032
|
+
if (f !== 0) {
|
|
1033
|
+
writer.writeInt64(
|
|
1034
|
+
17,
|
|
1035
|
+
f
|
|
1036
|
+
);
|
|
1037
|
+
}
|
|
976
1038
|
};
|
|
977
1039
|
|
|
978
1040
|
|
|
@@ -1046,7 +1108,7 @@ proto.Spic.CabinetProto.CreateRequest.toObject = function(includeInstance, msg)
|
|
|
1046
1108
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1047
1109
|
locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1048
1110
|
uid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1049
|
-
image: msg.
|
|
1111
|
+
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
1050
1112
|
extIo1Name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1051
1113
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1052
1114
|
groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
@@ -1100,7 +1162,8 @@ proto.Spic.CabinetProto.CreateRequest.deserializeBinaryFromReader = function(msg
|
|
|
1100
1162
|
msg.setUid(value);
|
|
1101
1163
|
break;
|
|
1102
1164
|
case 4:
|
|
1103
|
-
var value =
|
|
1165
|
+
var value = new google_protobuf_wrappers_pb.BytesValue;
|
|
1166
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
|
|
1104
1167
|
msg.setImage(value);
|
|
1105
1168
|
break;
|
|
1106
1169
|
case 5:
|
|
@@ -1169,11 +1232,12 @@ proto.Spic.CabinetProto.CreateRequest.serializeBinaryToWriter = function(message
|
|
|
1169
1232
|
f
|
|
1170
1233
|
);
|
|
1171
1234
|
}
|
|
1172
|
-
f = message.
|
|
1173
|
-
if (f
|
|
1174
|
-
writer.
|
|
1235
|
+
f = message.getImage();
|
|
1236
|
+
if (f != null) {
|
|
1237
|
+
writer.writeMessage(
|
|
1175
1238
|
4,
|
|
1176
|
-
f
|
|
1239
|
+
f,
|
|
1240
|
+
google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
|
|
1177
1241
|
);
|
|
1178
1242
|
}
|
|
1179
1243
|
f = message.getExtIo1Name();
|
|
@@ -1262,44 +1326,39 @@ proto.Spic.CabinetProto.CreateRequest.prototype.setUid = function(value) {
|
|
|
1262
1326
|
|
|
1263
1327
|
|
|
1264
1328
|
/**
|
|
1265
|
-
* optional
|
|
1266
|
-
* @return {
|
|
1329
|
+
* optional google.protobuf.BytesValue image = 4;
|
|
1330
|
+
* @return {?proto.google.protobuf.BytesValue}
|
|
1267
1331
|
*/
|
|
1268
1332
|
proto.Spic.CabinetProto.CreateRequest.prototype.getImage = function() {
|
|
1269
|
-
return /** @type
|
|
1333
|
+
return /** @type{?proto.google.protobuf.BytesValue} */ (
|
|
1334
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 4));
|
|
1270
1335
|
};
|
|
1271
1336
|
|
|
1272
1337
|
|
|
1273
1338
|
/**
|
|
1274
|
-
*
|
|
1275
|
-
*
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1280
|
-
this.getImage()));
|
|
1339
|
+
* @param {?proto.google.protobuf.BytesValue|undefined} value
|
|
1340
|
+
* @return {!proto.Spic.CabinetProto.CreateRequest} returns this
|
|
1341
|
+
*/
|
|
1342
|
+
proto.Spic.CabinetProto.CreateRequest.prototype.setImage = function(value) {
|
|
1343
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1281
1344
|
};
|
|
1282
1345
|
|
|
1283
1346
|
|
|
1284
1347
|
/**
|
|
1285
|
-
*
|
|
1286
|
-
*
|
|
1287
|
-
* @see http://caniuse.com/Uint8Array
|
|
1288
|
-
* This is a type-conversion wrapper around `getImage()`
|
|
1289
|
-
* @return {!Uint8Array}
|
|
1348
|
+
* Clears the message field making it undefined.
|
|
1349
|
+
* @return {!proto.Spic.CabinetProto.CreateRequest} returns this
|
|
1290
1350
|
*/
|
|
1291
|
-
proto.Spic.CabinetProto.CreateRequest.prototype.
|
|
1292
|
-
return
|
|
1293
|
-
this.getImage()));
|
|
1351
|
+
proto.Spic.CabinetProto.CreateRequest.prototype.clearImage = function() {
|
|
1352
|
+
return this.setImage(undefined);
|
|
1294
1353
|
};
|
|
1295
1354
|
|
|
1296
1355
|
|
|
1297
1356
|
/**
|
|
1298
|
-
*
|
|
1299
|
-
* @return {
|
|
1357
|
+
* Returns whether this field is set.
|
|
1358
|
+
* @return {boolean}
|
|
1300
1359
|
*/
|
|
1301
|
-
proto.Spic.CabinetProto.CreateRequest.prototype.
|
|
1302
|
-
return jspb.Message.
|
|
1360
|
+
proto.Spic.CabinetProto.CreateRequest.prototype.hasImage = function() {
|
|
1361
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1303
1362
|
};
|
|
1304
1363
|
|
|
1305
1364
|
|
|
@@ -1633,7 +1692,7 @@ proto.Spic.CabinetProto.UpdateRequest.toObject = function(includeInstance, msg)
|
|
|
1633
1692
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1634
1693
|
locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1635
1694
|
uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1636
|
-
image: msg.
|
|
1695
|
+
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
1637
1696
|
extIo1Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1638
1697
|
extIo2Name: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1639
1698
|
groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
@@ -1691,7 +1750,8 @@ proto.Spic.CabinetProto.UpdateRequest.deserializeBinaryFromReader = function(msg
|
|
|
1691
1750
|
msg.setUid(value);
|
|
1692
1751
|
break;
|
|
1693
1752
|
case 5:
|
|
1694
|
-
var value =
|
|
1753
|
+
var value = new google_protobuf_wrappers_pb.BytesValue;
|
|
1754
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
|
|
1695
1755
|
msg.setImage(value);
|
|
1696
1756
|
break;
|
|
1697
1757
|
case 6:
|
|
@@ -1767,11 +1827,12 @@ proto.Spic.CabinetProto.UpdateRequest.serializeBinaryToWriter = function(message
|
|
|
1767
1827
|
f
|
|
1768
1828
|
);
|
|
1769
1829
|
}
|
|
1770
|
-
f = message.
|
|
1771
|
-
if (f
|
|
1772
|
-
writer.
|
|
1830
|
+
f = message.getImage();
|
|
1831
|
+
if (f != null) {
|
|
1832
|
+
writer.writeMessage(
|
|
1773
1833
|
5,
|
|
1774
|
-
f
|
|
1834
|
+
f,
|
|
1835
|
+
google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
|
|
1775
1836
|
);
|
|
1776
1837
|
}
|
|
1777
1838
|
f = message.getExtIo1Name();
|
|
@@ -1878,44 +1939,39 @@ proto.Spic.CabinetProto.UpdateRequest.prototype.setUid = function(value) {
|
|
|
1878
1939
|
|
|
1879
1940
|
|
|
1880
1941
|
/**
|
|
1881
|
-
* optional
|
|
1882
|
-
* @return {
|
|
1942
|
+
* optional google.protobuf.BytesValue image = 5;
|
|
1943
|
+
* @return {?proto.google.protobuf.BytesValue}
|
|
1883
1944
|
*/
|
|
1884
1945
|
proto.Spic.CabinetProto.UpdateRequest.prototype.getImage = function() {
|
|
1885
|
-
return /** @type
|
|
1946
|
+
return /** @type{?proto.google.protobuf.BytesValue} */ (
|
|
1947
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 5));
|
|
1886
1948
|
};
|
|
1887
1949
|
|
|
1888
1950
|
|
|
1889
1951
|
/**
|
|
1890
|
-
*
|
|
1891
|
-
*
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1896
|
-
this.getImage()));
|
|
1952
|
+
* @param {?proto.google.protobuf.BytesValue|undefined} value
|
|
1953
|
+
* @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
|
|
1954
|
+
*/
|
|
1955
|
+
proto.Spic.CabinetProto.UpdateRequest.prototype.setImage = function(value) {
|
|
1956
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1897
1957
|
};
|
|
1898
1958
|
|
|
1899
1959
|
|
|
1900
1960
|
/**
|
|
1901
|
-
*
|
|
1902
|
-
*
|
|
1903
|
-
* @see http://caniuse.com/Uint8Array
|
|
1904
|
-
* This is a type-conversion wrapper around `getImage()`
|
|
1905
|
-
* @return {!Uint8Array}
|
|
1961
|
+
* Clears the message field making it undefined.
|
|
1962
|
+
* @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
|
|
1906
1963
|
*/
|
|
1907
|
-
proto.Spic.CabinetProto.UpdateRequest.prototype.
|
|
1908
|
-
return
|
|
1909
|
-
this.getImage()));
|
|
1964
|
+
proto.Spic.CabinetProto.UpdateRequest.prototype.clearImage = function() {
|
|
1965
|
+
return this.setImage(undefined);
|
|
1910
1966
|
};
|
|
1911
1967
|
|
|
1912
1968
|
|
|
1913
1969
|
/**
|
|
1914
|
-
*
|
|
1915
|
-
* @return {
|
|
1970
|
+
* Returns whether this field is set.
|
|
1971
|
+
* @return {boolean}
|
|
1916
1972
|
*/
|
|
1917
|
-
proto.Spic.CabinetProto.UpdateRequest.prototype.
|
|
1918
|
-
return jspb.Message.
|
|
1973
|
+
proto.Spic.CabinetProto.UpdateRequest.prototype.hasImage = function() {
|
|
1974
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1919
1975
|
};
|
|
1920
1976
|
|
|
1921
1977
|
|
|
@@ -3188,6 +3244,136 @@ proto.Spic.CabinetProto.LocationSearchReply.prototype.clearCabinetsList = functi
|
|
|
3188
3244
|
|
|
3189
3245
|
|
|
3190
3246
|
|
|
3247
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3248
|
+
/**
|
|
3249
|
+
* Creates an object representation of this proto.
|
|
3250
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3251
|
+
* Optional fields that are not set will be set to undefined.
|
|
3252
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3253
|
+
* For the list of reserved names please see:
|
|
3254
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3255
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3256
|
+
* JSPB instance for transitional soy proto support:
|
|
3257
|
+
* http://goto/soy-param-migration
|
|
3258
|
+
* @return {!Object}
|
|
3259
|
+
*/
|
|
3260
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3261
|
+
return proto.Spic.CabinetProto.ReplaceBatteryRequest.toObject(opt_includeInstance, this);
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
|
|
3265
|
+
/**
|
|
3266
|
+
* Static version of the {@see toObject} method.
|
|
3267
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3268
|
+
* the JSPB instance for transitional soy proto support:
|
|
3269
|
+
* http://goto/soy-param-migration
|
|
3270
|
+
* @param {!proto.Spic.CabinetProto.ReplaceBatteryRequest} msg The msg instance to transform.
|
|
3271
|
+
* @return {!Object}
|
|
3272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3273
|
+
*/
|
|
3274
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.toObject = function(includeInstance, msg) {
|
|
3275
|
+
var f, obj = {
|
|
3276
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
if (includeInstance) {
|
|
3280
|
+
obj.$jspbMessageInstance = msg;
|
|
3281
|
+
}
|
|
3282
|
+
return obj;
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3289
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3290
|
+
* @return {!proto.Spic.CabinetProto.ReplaceBatteryRequest}
|
|
3291
|
+
*/
|
|
3292
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.deserializeBinary = function(bytes) {
|
|
3293
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3294
|
+
var msg = new proto.Spic.CabinetProto.ReplaceBatteryRequest;
|
|
3295
|
+
return proto.Spic.CabinetProto.ReplaceBatteryRequest.deserializeBinaryFromReader(msg, reader);
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3301
|
+
* given reader into the given message object.
|
|
3302
|
+
* @param {!proto.Spic.CabinetProto.ReplaceBatteryRequest} msg The message object to deserialize into.
|
|
3303
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3304
|
+
* @return {!proto.Spic.CabinetProto.ReplaceBatteryRequest}
|
|
3305
|
+
*/
|
|
3306
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3307
|
+
while (reader.nextField()) {
|
|
3308
|
+
if (reader.isEndGroup()) {
|
|
3309
|
+
break;
|
|
3310
|
+
}
|
|
3311
|
+
var field = reader.getFieldNumber();
|
|
3312
|
+
switch (field) {
|
|
3313
|
+
case 1:
|
|
3314
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3315
|
+
msg.setId(value);
|
|
3316
|
+
break;
|
|
3317
|
+
default:
|
|
3318
|
+
reader.skipField();
|
|
3319
|
+
break;
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
return msg;
|
|
3323
|
+
};
|
|
3324
|
+
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3328
|
+
* @return {!Uint8Array}
|
|
3329
|
+
*/
|
|
3330
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.prototype.serializeBinary = function() {
|
|
3331
|
+
var writer = new jspb.BinaryWriter();
|
|
3332
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.serializeBinaryToWriter(this, writer);
|
|
3333
|
+
return writer.getResultBuffer();
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3339
|
+
* format), writing to the given BinaryWriter.
|
|
3340
|
+
* @param {!proto.Spic.CabinetProto.ReplaceBatteryRequest} message
|
|
3341
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3342
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3343
|
+
*/
|
|
3344
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3345
|
+
var f = undefined;
|
|
3346
|
+
f = message.getId();
|
|
3347
|
+
if (f !== 0) {
|
|
3348
|
+
writer.writeInt64(
|
|
3349
|
+
1,
|
|
3350
|
+
f
|
|
3351
|
+
);
|
|
3352
|
+
}
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* optional int64 id = 1;
|
|
3358
|
+
* @return {number}
|
|
3359
|
+
*/
|
|
3360
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.prototype.getId = function() {
|
|
3361
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
|
|
3365
|
+
/**
|
|
3366
|
+
* @param {number} value
|
|
3367
|
+
* @return {!proto.Spic.CabinetProto.ReplaceBatteryRequest} returns this
|
|
3368
|
+
*/
|
|
3369
|
+
proto.Spic.CabinetProto.ReplaceBatteryRequest.prototype.setId = function(value) {
|
|
3370
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3371
|
+
};
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
|
|
3191
3377
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3192
3378
|
/**
|
|
3193
3379
|
* Creates an object representation of this proto.
|
|
@@ -8966,6 +9152,79 @@ proto.Spic.CabinetProto.prototype.setImageBlob = function(value) {
|
|
|
8966
9152
|
};
|
|
8967
9153
|
|
|
8968
9154
|
|
|
9155
|
+
/**
|
|
9156
|
+
* optional google.protobuf.Timestamp battery_placed = 15;
|
|
9157
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
9158
|
+
*/
|
|
9159
|
+
proto.Spic.CabinetProto.prototype.getBatteryPlaced = function() {
|
|
9160
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
9161
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15));
|
|
9162
|
+
};
|
|
9163
|
+
|
|
9164
|
+
|
|
9165
|
+
/**
|
|
9166
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
9167
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9168
|
+
*/
|
|
9169
|
+
proto.Spic.CabinetProto.prototype.setBatteryPlaced = function(value) {
|
|
9170
|
+
return jspb.Message.setWrapperField(this, 15, value);
|
|
9171
|
+
};
|
|
9172
|
+
|
|
9173
|
+
|
|
9174
|
+
/**
|
|
9175
|
+
* Clears the message field making it undefined.
|
|
9176
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9177
|
+
*/
|
|
9178
|
+
proto.Spic.CabinetProto.prototype.clearBatteryPlaced = function() {
|
|
9179
|
+
return this.setBatteryPlaced(undefined);
|
|
9180
|
+
};
|
|
9181
|
+
|
|
9182
|
+
|
|
9183
|
+
/**
|
|
9184
|
+
* Returns whether this field is set.
|
|
9185
|
+
* @return {boolean}
|
|
9186
|
+
*/
|
|
9187
|
+
proto.Spic.CabinetProto.prototype.hasBatteryPlaced = function() {
|
|
9188
|
+
return jspb.Message.getField(this, 15) != null;
|
|
9189
|
+
};
|
|
9190
|
+
|
|
9191
|
+
|
|
9192
|
+
/**
|
|
9193
|
+
* optional int32 battery_percentage = 16;
|
|
9194
|
+
* @return {number}
|
|
9195
|
+
*/
|
|
9196
|
+
proto.Spic.CabinetProto.prototype.getBatteryPercentage = function() {
|
|
9197
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
9198
|
+
};
|
|
9199
|
+
|
|
9200
|
+
|
|
9201
|
+
/**
|
|
9202
|
+
* @param {number} value
|
|
9203
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9204
|
+
*/
|
|
9205
|
+
proto.Spic.CabinetProto.prototype.setBatteryPercentage = function(value) {
|
|
9206
|
+
return jspb.Message.setProto3IntField(this, 16, value);
|
|
9207
|
+
};
|
|
9208
|
+
|
|
9209
|
+
|
|
9210
|
+
/**
|
|
9211
|
+
* optional int64 communication_time = 17;
|
|
9212
|
+
* @return {number}
|
|
9213
|
+
*/
|
|
9214
|
+
proto.Spic.CabinetProto.prototype.getCommunicationTime = function() {
|
|
9215
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
9216
|
+
};
|
|
9217
|
+
|
|
9218
|
+
|
|
9219
|
+
/**
|
|
9220
|
+
* @param {number} value
|
|
9221
|
+
* @return {!proto.Spic.CabinetProto} returns this
|
|
9222
|
+
*/
|
|
9223
|
+
proto.Spic.CabinetProto.prototype.setCommunicationTime = function(value) {
|
|
9224
|
+
return jspb.Message.setProto3IntField(this, 17, value);
|
|
9225
|
+
};
|
|
9226
|
+
|
|
9227
|
+
|
|
8969
9228
|
|
|
8970
9229
|
|
|
8971
9230
|
|
|
@@ -68,6 +68,15 @@ type CabinetGRPCLocationSearch = {
|
|
|
68
68
|
readonly responseType: typeof spic_cabinet_pb.CabinetProto.LocationSearchReply;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
type CabinetGRPCReplaceBattery = {
|
|
72
|
+
readonly methodName: string;
|
|
73
|
+
readonly service: typeof CabinetGRPC;
|
|
74
|
+
readonly requestStream: false;
|
|
75
|
+
readonly responseStream: false;
|
|
76
|
+
readonly requestType: typeof spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest;
|
|
77
|
+
readonly responseType: typeof spic_cabinet_pb.CabinetProto;
|
|
78
|
+
};
|
|
79
|
+
|
|
71
80
|
type CabinetGRPCSearchStates = {
|
|
72
81
|
readonly methodName: string;
|
|
73
82
|
readonly service: typeof CabinetGRPC;
|
|
@@ -122,6 +131,7 @@ export class CabinetGRPC {
|
|
|
122
131
|
static readonly RetrieveImage: CabinetGRPCRetrieveImage;
|
|
123
132
|
static readonly Search: CabinetGRPCSearch;
|
|
124
133
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
134
|
+
static readonly ReplaceBattery: CabinetGRPCReplaceBattery;
|
|
125
135
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
126
136
|
static readonly SearchEvents: CabinetGRPCSearchEvents;
|
|
127
137
|
static readonly CreateOpenRequest: CabinetGRPCCreateOpenRequest;
|
|
@@ -258,6 +268,15 @@ export class CabinetGRPCClient {
|
|
|
258
268
|
requestMessage: spic_cabinet_pb.CabinetProto.LocationSearchRequest,
|
|
259
269
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.LocationSearchReply|null) => void
|
|
260
270
|
): UnaryResponse;
|
|
271
|
+
replaceBattery(
|
|
272
|
+
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
273
|
+
metadata: grpc.Metadata,
|
|
274
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
275
|
+
): UnaryResponse;
|
|
276
|
+
replaceBattery(
|
|
277
|
+
requestMessage: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
278
|
+
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto|null) => void
|
|
279
|
+
): UnaryResponse;
|
|
261
280
|
searchStates(
|
|
262
281
|
requestMessage: spic_cabinet_pb.CabinetProto.State.SearchRequest,
|
|
263
282
|
metadata: grpc.Metadata,
|
|
@@ -74,6 +74,15 @@ CabinetGRPC.LocationSearch = {
|
|
|
74
74
|
responseType: spic_cabinet_pb.CabinetProto.LocationSearchReply
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
+
CabinetGRPC.ReplaceBattery = {
|
|
78
|
+
methodName: "ReplaceBattery",
|
|
79
|
+
service: CabinetGRPC,
|
|
80
|
+
requestStream: false,
|
|
81
|
+
responseStream: false,
|
|
82
|
+
requestType: spic_cabinet_pb.CabinetProto.ReplaceBatteryRequest,
|
|
83
|
+
responseType: spic_cabinet_pb.CabinetProto
|
|
84
|
+
};
|
|
85
|
+
|
|
77
86
|
CabinetGRPC.SearchStates = {
|
|
78
87
|
methodName: "SearchStates",
|
|
79
88
|
service: CabinetGRPC,
|
|
@@ -343,6 +352,37 @@ CabinetGRPCClient.prototype.locationSearch = function locationSearch(requestMess
|
|
|
343
352
|
};
|
|
344
353
|
};
|
|
345
354
|
|
|
355
|
+
CabinetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessage, metadata, callback) {
|
|
356
|
+
if (arguments.length === 2) {
|
|
357
|
+
callback = arguments[1];
|
|
358
|
+
}
|
|
359
|
+
var client = grpc.unary(CabinetGRPC.ReplaceBattery, {
|
|
360
|
+
request: requestMessage,
|
|
361
|
+
host: this.serviceHost,
|
|
362
|
+
metadata: metadata,
|
|
363
|
+
transport: this.options.transport,
|
|
364
|
+
debug: this.options.debug,
|
|
365
|
+
onEnd: function (response) {
|
|
366
|
+
if (callback) {
|
|
367
|
+
if (response.status !== grpc.Code.OK) {
|
|
368
|
+
var err = new Error(response.statusMessage);
|
|
369
|
+
err.code = response.status;
|
|
370
|
+
err.metadata = response.trailers;
|
|
371
|
+
callback(err, null);
|
|
372
|
+
} else {
|
|
373
|
+
callback(null, response.message);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return {
|
|
379
|
+
cancel: function () {
|
|
380
|
+
callback = null;
|
|
381
|
+
client.close();
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
|
|
346
386
|
CabinetGRPCClient.prototype.searchStates = function searchStates(requestMessage, metadata, callback) {
|
|
347
387
|
if (arguments.length === 2) {
|
|
348
388
|
callback = arguments[1];
|