@fonoster/sdk 0.15.20 → 0.15.21

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.
@@ -76,6 +76,7 @@ goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateWorkspaceResponse', nul
76
76
  goog.exportSymbol('proto.fonoster.identity.v1beta2.User', null, global);
77
77
  goog.exportSymbol('proto.fonoster.identity.v1beta2.VerifyCodeRequest', null, global);
78
78
  goog.exportSymbol('proto.fonoster.identity.v1beta2.Workspace', null, global);
79
+ goog.exportSymbol('proto.fonoster.identity.v1beta2.Workspace.Owner', null, global);
79
80
  goog.exportSymbol('proto.fonoster.identity.v1beta2.WorkspaceMember', null, global);
80
81
  /**
81
82
  * Generated by JsPbCodeGenerator.
@@ -98,6 +99,27 @@ if (goog.DEBUG && !COMPILED) {
98
99
  */
99
100
  proto.fonoster.identity.v1beta2.Workspace.displayName = 'proto.fonoster.identity.v1beta2.Workspace';
100
101
  }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.fonoster.identity.v1beta2.Workspace.Owner = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
+ };
115
+ goog.inherits(proto.fonoster.identity.v1beta2.Workspace.Owner, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.fonoster.identity.v1beta2.Workspace.Owner.displayName = 'proto.fonoster.identity.v1beta2.Workspace.Owner';
122
+ }
101
123
  /**
102
124
  * Generated by JsPbCodeGenerator.
103
125
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1206,7 +1228,8 @@ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1206
1228
  ownerRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
1207
1229
  accessKeyId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1208
1230
  createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
1209
- updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0)
1231
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
1232
+ owner: (f = msg.getOwner()) && proto.fonoster.identity.v1beta2.Workspace.Owner.toObject(includeInstance, f)
1210
1233
  };
1211
1234
 
1212
1235
  if (includeInstance) {
@@ -1267,6 +1290,11 @@ proto.fonoster.identity.v1beta2.Workspace.deserializeBinaryFromReader = function
1267
1290
  var value = /** @type {number} */ (reader.readInt32());
1268
1291
  msg.setUpdatedAt(value);
1269
1292
  break;
1293
+ case 7:
1294
+ var value = new proto.fonoster.identity.v1beta2.Workspace.Owner;
1295
+ reader.readMessage(value,proto.fonoster.identity.v1beta2.Workspace.Owner.deserializeBinaryFromReader);
1296
+ msg.setOwner(value);
1297
+ break;
1270
1298
  default:
1271
1299
  reader.skipField();
1272
1300
  break;
@@ -1338,6 +1366,204 @@ proto.fonoster.identity.v1beta2.Workspace.serializeBinaryToWriter = function(mes
1338
1366
  f
1339
1367
  );
1340
1368
  }
1369
+ f = message.getOwner();
1370
+ if (f != null) {
1371
+ writer.writeMessage(
1372
+ 7,
1373
+ f,
1374
+ proto.fonoster.identity.v1beta2.Workspace.Owner.serializeBinaryToWriter
1375
+ );
1376
+ }
1377
+ };
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1384
+ /**
1385
+ * Creates an object representation of this proto.
1386
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1387
+ * Optional fields that are not set will be set to undefined.
1388
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1389
+ * For the list of reserved names please see:
1390
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1391
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1392
+ * JSPB instance for transitional soy proto support:
1393
+ * http://goto/soy-param-migration
1394
+ * @return {!Object}
1395
+ */
1396
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.toObject = function(opt_includeInstance) {
1397
+ return proto.fonoster.identity.v1beta2.Workspace.Owner.toObject(opt_includeInstance, this);
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Static version of the {@see toObject} method.
1403
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1404
+ * the JSPB instance for transitional soy proto support:
1405
+ * http://goto/soy-param-migration
1406
+ * @param {!proto.fonoster.identity.v1beta2.Workspace.Owner} msg The msg instance to transform.
1407
+ * @return {!Object}
1408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1409
+ */
1410
+ proto.fonoster.identity.v1beta2.Workspace.Owner.toObject = function(includeInstance, msg) {
1411
+ var f, obj = {
1412
+ ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
1413
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1414
+ email: jspb.Message.getFieldWithDefault(msg, 3, "")
1415
+ };
1416
+
1417
+ if (includeInstance) {
1418
+ obj.$jspbMessageInstance = msg;
1419
+ }
1420
+ return obj;
1421
+ };
1422
+ }
1423
+
1424
+
1425
+ /**
1426
+ * Deserializes binary data (in protobuf wire format).
1427
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1428
+ * @return {!proto.fonoster.identity.v1beta2.Workspace.Owner}
1429
+ */
1430
+ proto.fonoster.identity.v1beta2.Workspace.Owner.deserializeBinary = function(bytes) {
1431
+ var reader = new jspb.BinaryReader(bytes);
1432
+ var msg = new proto.fonoster.identity.v1beta2.Workspace.Owner;
1433
+ return proto.fonoster.identity.v1beta2.Workspace.Owner.deserializeBinaryFromReader(msg, reader);
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * Deserializes binary data (in protobuf wire format) from the
1439
+ * given reader into the given message object.
1440
+ * @param {!proto.fonoster.identity.v1beta2.Workspace.Owner} msg The message object to deserialize into.
1441
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1442
+ * @return {!proto.fonoster.identity.v1beta2.Workspace.Owner}
1443
+ */
1444
+ proto.fonoster.identity.v1beta2.Workspace.Owner.deserializeBinaryFromReader = function(msg, reader) {
1445
+ while (reader.nextField()) {
1446
+ if (reader.isEndGroup()) {
1447
+ break;
1448
+ }
1449
+ var field = reader.getFieldNumber();
1450
+ switch (field) {
1451
+ case 1:
1452
+ var value = /** @type {string} */ (reader.readString());
1453
+ msg.setRef(value);
1454
+ break;
1455
+ case 2:
1456
+ var value = /** @type {string} */ (reader.readString());
1457
+ msg.setName(value);
1458
+ break;
1459
+ case 3:
1460
+ var value = /** @type {string} */ (reader.readString());
1461
+ msg.setEmail(value);
1462
+ break;
1463
+ default:
1464
+ reader.skipField();
1465
+ break;
1466
+ }
1467
+ }
1468
+ return msg;
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * Serializes the message to binary data (in protobuf wire format).
1474
+ * @return {!Uint8Array}
1475
+ */
1476
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.serializeBinary = function() {
1477
+ var writer = new jspb.BinaryWriter();
1478
+ proto.fonoster.identity.v1beta2.Workspace.Owner.serializeBinaryToWriter(this, writer);
1479
+ return writer.getResultBuffer();
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * Serializes the given message to binary data (in protobuf wire
1485
+ * format), writing to the given BinaryWriter.
1486
+ * @param {!proto.fonoster.identity.v1beta2.Workspace.Owner} message
1487
+ * @param {!jspb.BinaryWriter} writer
1488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1489
+ */
1490
+ proto.fonoster.identity.v1beta2.Workspace.Owner.serializeBinaryToWriter = function(message, writer) {
1491
+ var f = undefined;
1492
+ f = message.getRef();
1493
+ if (f.length > 0) {
1494
+ writer.writeString(
1495
+ 1,
1496
+ f
1497
+ );
1498
+ }
1499
+ f = message.getName();
1500
+ if (f.length > 0) {
1501
+ writer.writeString(
1502
+ 2,
1503
+ f
1504
+ );
1505
+ }
1506
+ f = message.getEmail();
1507
+ if (f.length > 0) {
1508
+ writer.writeString(
1509
+ 3,
1510
+ f
1511
+ );
1512
+ }
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * optional string ref = 1;
1518
+ * @return {string}
1519
+ */
1520
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.getRef = function() {
1521
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * @param {string} value
1527
+ * @return {!proto.fonoster.identity.v1beta2.Workspace.Owner} returns this
1528
+ */
1529
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.setRef = function(value) {
1530
+ return jspb.Message.setProto3StringField(this, 1, value);
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * optional string name = 2;
1536
+ * @return {string}
1537
+ */
1538
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.getName = function() {
1539
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1540
+ };
1541
+
1542
+
1543
+ /**
1544
+ * @param {string} value
1545
+ * @return {!proto.fonoster.identity.v1beta2.Workspace.Owner} returns this
1546
+ */
1547
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.setName = function(value) {
1548
+ return jspb.Message.setProto3StringField(this, 2, value);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * optional string email = 3;
1554
+ * @return {string}
1555
+ */
1556
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.getEmail = function() {
1557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * @param {string} value
1563
+ * @return {!proto.fonoster.identity.v1beta2.Workspace.Owner} returns this
1564
+ */
1565
+ proto.fonoster.identity.v1beta2.Workspace.Owner.prototype.setEmail = function(value) {
1566
+ return jspb.Message.setProto3StringField(this, 3, value);
1341
1567
  };
1342
1568
 
1343
1569
 
@@ -1449,6 +1675,43 @@ proto.fonoster.identity.v1beta2.Workspace.prototype.setUpdatedAt = function(valu
1449
1675
  };
1450
1676
 
1451
1677
 
1678
+ /**
1679
+ * optional Owner owner = 7;
1680
+ * @return {?proto.fonoster.identity.v1beta2.Workspace.Owner}
1681
+ */
1682
+ proto.fonoster.identity.v1beta2.Workspace.prototype.getOwner = function() {
1683
+ return /** @type{?proto.fonoster.identity.v1beta2.Workspace.Owner} */ (
1684
+ jspb.Message.getWrapperField(this, proto.fonoster.identity.v1beta2.Workspace.Owner, 7));
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * @param {?proto.fonoster.identity.v1beta2.Workspace.Owner|undefined} value
1690
+ * @return {!proto.fonoster.identity.v1beta2.Workspace} returns this
1691
+ */
1692
+ proto.fonoster.identity.v1beta2.Workspace.prototype.setOwner = function(value) {
1693
+ return jspb.Message.setWrapperField(this, 7, value);
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * Clears the message field making it undefined.
1699
+ * @return {!proto.fonoster.identity.v1beta2.Workspace} returns this
1700
+ */
1701
+ proto.fonoster.identity.v1beta2.Workspace.prototype.clearOwner = function() {
1702
+ return this.setOwner(undefined);
1703
+ };
1704
+
1705
+
1706
+ /**
1707
+ * Returns whether this field is set.
1708
+ * @return {boolean}
1709
+ */
1710
+ proto.fonoster.identity.v1beta2.Workspace.prototype.hasOwner = function() {
1711
+ return jspb.Message.getField(this, 7) != null;
1712
+ };
1713
+
1714
+
1452
1715
 
1453
1716
 
1454
1717