@aceplus/smartace-api 2.11.0-alpha.2 → 2.11.0-alpha.3

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.11.0-alpha.2",
8
+ "version": "2.11.0-alpha.3",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -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
- getImage(): Uint8Array | string;
76
- getImage_asU8(): Uint8Array;
77
- getImage_asB64(): string;
78
- setImage(value: Uint8Array | string): void;
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: Uint8Array | string,
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
- getImage(): Uint8Array | string;
193
- getImage_asU8(): Uint8Array;
194
- getImage_asB64(): string;
195
- setImage(value: Uint8Array | string): void;
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: Uint8Array | string,
219
+ image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
219
220
  phone: string,
220
221
  pb_public: boolean,
221
222
  }
@@ -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.getImage_asB64(),
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 = /** @type {!Uint8Array} */ (reader.readBytes());
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.getImage_asU8();
654
- if (f.length > 0) {
655
- writer.writeBytes(
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 bytes image = 3;
743
- * @return {!(string|Uint8Array)}
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 {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
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
- * optional bytes image = 3;
752
- * This is a type-conversion wrapper around `getImage()`
753
- * @return {string}
754
- */
755
- proto.Platform.ClientProto.CreateRequest.prototype.getImage_asB64 = function() {
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
- * optional bytes image = 3;
763
- * Note that Uint8Array is not supported on all browsers.
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.getImage_asU8 = function() {
769
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
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
- * @param {!(string|Uint8Array)} value
776
- * @return {!proto.Platform.ClientProto.CreateRequest} returns this
774
+ * Returns whether this field is set.
775
+ * @return {boolean}
777
776
  */
778
- proto.Platform.ClientProto.CreateRequest.prototype.setImage = function(value) {
779
- return jspb.Message.setProto3BytesField(this, 3, value);
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.getImage_asB64(),
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 = /** @type {!Uint8Array} */ (reader.readBytes());
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.getImage_asU8();
1467
- if (f.length > 0) {
1468
- writer.writeBytes(
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 bytes image = 4;
1546
- * @return {!(string|Uint8Array)}
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 {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
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
- * optional bytes image = 4;
1555
- * This is a type-conversion wrapper around `getImage()`
1556
- * @return {string}
1557
- */
1558
- proto.Platform.ClientProto.UpdateRequest.prototype.getImage_asB64 = function() {
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
- * optional bytes image = 4;
1566
- * Note that Uint8Array is not supported on all browsers.
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.getImage_asU8 = function() {
1572
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
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
- * @param {!(string|Uint8Array)} value
1579
- * @return {!proto.Platform.ClientProto.UpdateRequest} returns this
1574
+ * Returns whether this field is set.
1575
+ * @return {boolean}
1580
1576
  */
1581
- proto.Platform.ClientProto.UpdateRequest.prototype.setImage = function(value) {
1582
- return jspb.Message.setProto3BytesField(this, 4, value);
1577
+ proto.Platform.ClientProto.UpdateRequest.prototype.hasImage = function() {
1578
+ return jspb.Message.getField(this, 4) != null;
1583
1579
  };
1584
1580
 
1585
1581
 
@@ -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";
@@ -93,10 +94,10 @@ export namespace CabinetProto {
93
94
  getUid(): string;
94
95
  setUid(value: string): void;
95
96
 
96
- getImage(): Uint8Array | string;
97
- getImage_asU8(): Uint8Array;
98
- getImage_asB64(): string;
99
- setImage(value: Uint8Array | string): void;
97
+ hasImage(): boolean;
98
+ clearImage(): void;
99
+ getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
100
+ setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
100
101
 
101
102
  getExtIo1Name(): string;
102
103
  setExtIo1Name(value: string): void;
@@ -125,7 +126,7 @@ export namespace CabinetProto {
125
126
  name: string,
126
127
  locationId: number,
127
128
  uid: string,
128
- image: Uint8Array | string,
129
+ image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
129
130
  extIo1Name: string,
130
131
  extIo2Name: string,
131
132
  groupId: string,
@@ -181,10 +182,10 @@ export namespace CabinetProto {
181
182
  getUid(): string;
182
183
  setUid(value: string): void;
183
184
 
184
- getImage(): Uint8Array | string;
185
- getImage_asU8(): Uint8Array;
186
- getImage_asB64(): string;
187
- setImage(value: Uint8Array | string): void;
185
+ hasImage(): boolean;
186
+ clearImage(): void;
187
+ getImage(): google_protobuf_wrappers_pb.BytesValue | undefined;
188
+ setImage(value?: google_protobuf_wrappers_pb.BytesValue): void;
188
189
 
189
190
  getExtIo1Name(): string;
190
191
  setExtIo1Name(value: string): void;
@@ -214,7 +215,7 @@ export namespace CabinetProto {
214
215
  name: string,
215
216
  locationId: number,
216
217
  uid: string,
217
- image: Uint8Array | string,
218
+ image?: google_protobuf_wrappers_pb.BytesValue.AsObject,
218
219
  extIo1Name: string,
219
220
  extIo2Name: string,
220
221
  groupId: string,
@@ -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');
@@ -1046,7 +1048,7 @@ proto.Spic.CabinetProto.CreateRequest.toObject = function(includeInstance, msg)
1046
1048
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1047
1049
  locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
1048
1050
  uid: jspb.Message.getFieldWithDefault(msg, 3, ""),
1049
- image: msg.getImage_asB64(),
1051
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
1050
1052
  extIo1Name: jspb.Message.getFieldWithDefault(msg, 5, ""),
1051
1053
  extIo2Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
1052
1054
  groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
@@ -1100,7 +1102,8 @@ proto.Spic.CabinetProto.CreateRequest.deserializeBinaryFromReader = function(msg
1100
1102
  msg.setUid(value);
1101
1103
  break;
1102
1104
  case 4:
1103
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
1105
+ var value = new google_protobuf_wrappers_pb.BytesValue;
1106
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
1104
1107
  msg.setImage(value);
1105
1108
  break;
1106
1109
  case 5:
@@ -1169,11 +1172,12 @@ proto.Spic.CabinetProto.CreateRequest.serializeBinaryToWriter = function(message
1169
1172
  f
1170
1173
  );
1171
1174
  }
1172
- f = message.getImage_asU8();
1173
- if (f.length > 0) {
1174
- writer.writeBytes(
1175
+ f = message.getImage();
1176
+ if (f != null) {
1177
+ writer.writeMessage(
1175
1178
  4,
1176
- f
1179
+ f,
1180
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
1177
1181
  );
1178
1182
  }
1179
1183
  f = message.getExtIo1Name();
@@ -1262,44 +1266,39 @@ proto.Spic.CabinetProto.CreateRequest.prototype.setUid = function(value) {
1262
1266
 
1263
1267
 
1264
1268
  /**
1265
- * optional bytes image = 4;
1266
- * @return {!(string|Uint8Array)}
1269
+ * optional google.protobuf.BytesValue image = 4;
1270
+ * @return {?proto.google.protobuf.BytesValue}
1267
1271
  */
1268
1272
  proto.Spic.CabinetProto.CreateRequest.prototype.getImage = function() {
1269
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1273
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1274
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 4));
1270
1275
  };
1271
1276
 
1272
1277
 
1273
1278
  /**
1274
- * optional bytes image = 4;
1275
- * This is a type-conversion wrapper around `getImage()`
1276
- * @return {string}
1277
- */
1278
- proto.Spic.CabinetProto.CreateRequest.prototype.getImage_asB64 = function() {
1279
- return /** @type {string} */ (jspb.Message.bytesAsB64(
1280
- this.getImage()));
1279
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1280
+ * @return {!proto.Spic.CabinetProto.CreateRequest} returns this
1281
+ */
1282
+ proto.Spic.CabinetProto.CreateRequest.prototype.setImage = function(value) {
1283
+ return jspb.Message.setWrapperField(this, 4, value);
1281
1284
  };
1282
1285
 
1283
1286
 
1284
1287
  /**
1285
- * optional bytes image = 4;
1286
- * Note that Uint8Array is not supported on all browsers.
1287
- * @see http://caniuse.com/Uint8Array
1288
- * This is a type-conversion wrapper around `getImage()`
1289
- * @return {!Uint8Array}
1288
+ * Clears the message field making it undefined.
1289
+ * @return {!proto.Spic.CabinetProto.CreateRequest} returns this
1290
1290
  */
1291
- proto.Spic.CabinetProto.CreateRequest.prototype.getImage_asU8 = function() {
1292
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1293
- this.getImage()));
1291
+ proto.Spic.CabinetProto.CreateRequest.prototype.clearImage = function() {
1292
+ return this.setImage(undefined);
1294
1293
  };
1295
1294
 
1296
1295
 
1297
1296
  /**
1298
- * @param {!(string|Uint8Array)} value
1299
- * @return {!proto.Spic.CabinetProto.CreateRequest} returns this
1297
+ * Returns whether this field is set.
1298
+ * @return {boolean}
1300
1299
  */
1301
- proto.Spic.CabinetProto.CreateRequest.prototype.setImage = function(value) {
1302
- return jspb.Message.setProto3BytesField(this, 4, value);
1300
+ proto.Spic.CabinetProto.CreateRequest.prototype.hasImage = function() {
1301
+ return jspb.Message.getField(this, 4) != null;
1303
1302
  };
1304
1303
 
1305
1304
 
@@ -1633,7 +1632,7 @@ proto.Spic.CabinetProto.UpdateRequest.toObject = function(includeInstance, msg)
1633
1632
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1634
1633
  locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
1635
1634
  uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
1636
- image: msg.getImage_asB64(),
1635
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
1637
1636
  extIo1Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
1638
1637
  extIo2Name: jspb.Message.getFieldWithDefault(msg, 7, ""),
1639
1638
  groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
@@ -1691,7 +1690,8 @@ proto.Spic.CabinetProto.UpdateRequest.deserializeBinaryFromReader = function(msg
1691
1690
  msg.setUid(value);
1692
1691
  break;
1693
1692
  case 5:
1694
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
1693
+ var value = new google_protobuf_wrappers_pb.BytesValue;
1694
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
1695
1695
  msg.setImage(value);
1696
1696
  break;
1697
1697
  case 6:
@@ -1767,11 +1767,12 @@ proto.Spic.CabinetProto.UpdateRequest.serializeBinaryToWriter = function(message
1767
1767
  f
1768
1768
  );
1769
1769
  }
1770
- f = message.getImage_asU8();
1771
- if (f.length > 0) {
1772
- writer.writeBytes(
1770
+ f = message.getImage();
1771
+ if (f != null) {
1772
+ writer.writeMessage(
1773
1773
  5,
1774
- f
1774
+ f,
1775
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
1775
1776
  );
1776
1777
  }
1777
1778
  f = message.getExtIo1Name();
@@ -1878,44 +1879,39 @@ proto.Spic.CabinetProto.UpdateRequest.prototype.setUid = function(value) {
1878
1879
 
1879
1880
 
1880
1881
  /**
1881
- * optional bytes image = 5;
1882
- * @return {!(string|Uint8Array)}
1882
+ * optional google.protobuf.BytesValue image = 5;
1883
+ * @return {?proto.google.protobuf.BytesValue}
1883
1884
  */
1884
1885
  proto.Spic.CabinetProto.UpdateRequest.prototype.getImage = function() {
1885
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1886
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1887
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 5));
1886
1888
  };
1887
1889
 
1888
1890
 
1889
1891
  /**
1890
- * optional bytes image = 5;
1891
- * This is a type-conversion wrapper around `getImage()`
1892
- * @return {string}
1893
- */
1894
- proto.Spic.CabinetProto.UpdateRequest.prototype.getImage_asB64 = function() {
1895
- return /** @type {string} */ (jspb.Message.bytesAsB64(
1896
- this.getImage()));
1892
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1893
+ * @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
1894
+ */
1895
+ proto.Spic.CabinetProto.UpdateRequest.prototype.setImage = function(value) {
1896
+ return jspb.Message.setWrapperField(this, 5, value);
1897
1897
  };
1898
1898
 
1899
1899
 
1900
1900
  /**
1901
- * optional bytes image = 5;
1902
- * Note that Uint8Array is not supported on all browsers.
1903
- * @see http://caniuse.com/Uint8Array
1904
- * This is a type-conversion wrapper around `getImage()`
1905
- * @return {!Uint8Array}
1901
+ * Clears the message field making it undefined.
1902
+ * @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
1906
1903
  */
1907
- proto.Spic.CabinetProto.UpdateRequest.prototype.getImage_asU8 = function() {
1908
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1909
- this.getImage()));
1904
+ proto.Spic.CabinetProto.UpdateRequest.prototype.clearImage = function() {
1905
+ return this.setImage(undefined);
1910
1906
  };
1911
1907
 
1912
1908
 
1913
1909
  /**
1914
- * @param {!(string|Uint8Array)} value
1915
- * @return {!proto.Spic.CabinetProto.UpdateRequest} returns this
1910
+ * Returns whether this field is set.
1911
+ * @return {boolean}
1916
1912
  */
1917
- proto.Spic.CabinetProto.UpdateRequest.prototype.setImage = function(value) {
1918
- return jspb.Message.setProto3BytesField(this, 5, value);
1913
+ proto.Spic.CabinetProto.UpdateRequest.prototype.hasImage = function() {
1914
+ return jspb.Message.getField(this, 5) != null;
1919
1915
  };
1920
1916
 
1921
1917