@googlemaps/places 1.10.0 → 2.0.0
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/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/build/protos/google/geo/type/viewport.proto +1 -1
- package/build/protos/google/maps/places/v1/attribution.proto +1 -1
- package/build/protos/google/maps/places/v1/content_block.proto +1 -1
- package/build/protos/google/maps/places/v1/contextual_content.proto +1 -1
- package/build/protos/google/maps/places/v1/ev_charging.proto +1 -1
- package/build/protos/google/maps/places/v1/fuel_options.proto +1 -1
- package/build/protos/google/maps/places/v1/geometry.proto +1 -1
- package/build/protos/google/maps/places/v1/photo.proto +1 -1
- package/build/protos/google/maps/places/v1/place.proto +18 -4
- package/build/protos/google/maps/places/v1/places_service.proto +1 -1
- package/build/protos/google/maps/places/v1/polyline.proto +1 -1
- package/build/protos/google/maps/places/v1/price_range.proto +1 -1
- package/build/protos/google/maps/places/v1/reference.proto +1 -1
- package/build/protos/google/maps/places/v1/review.proto +1 -1
- package/build/protos/google/maps/places/v1/route_modifiers.proto +1 -1
- package/build/protos/google/maps/places/v1/routing_preference.proto +1 -1
- package/build/protos/google/maps/places/v1/routing_summary.proto +1 -1
- package/build/protos/google/maps/places/v1/travel_mode.proto +1 -1
- package/build/protos/protos.d.ts +420 -0
- package/build/protos/protos.js +1176 -0
- package/build/protos/protos.json +120 -5
- package/build/src/v1/gapic_metadata.json +73 -0
- package/build/src/v1/places_client.d.ts +2 -1
- package/build/src/v1/places_client.js +104 -27
- package/build/src/v1/places_client.js.map +1 -1
- package/build/src/v1/places_proto_list.json +20 -0
- package/package.json +16 -16
package/build/protos/protos.js
CHANGED
|
@@ -1277,6 +1277,1126 @@
|
|
|
1277
1277
|
return Date;
|
|
1278
1278
|
})();
|
|
1279
1279
|
|
|
1280
|
+
type.DateTime = (function() {
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Properties of a DateTime.
|
|
1284
|
+
* @memberof google.type
|
|
1285
|
+
* @interface IDateTime
|
|
1286
|
+
* @property {number|null} [year] DateTime year
|
|
1287
|
+
* @property {number|null} [month] DateTime month
|
|
1288
|
+
* @property {number|null} [day] DateTime day
|
|
1289
|
+
* @property {number|null} [hours] DateTime hours
|
|
1290
|
+
* @property {number|null} [minutes] DateTime minutes
|
|
1291
|
+
* @property {number|null} [seconds] DateTime seconds
|
|
1292
|
+
* @property {number|null} [nanos] DateTime nanos
|
|
1293
|
+
* @property {google.protobuf.IDuration|null} [utcOffset] DateTime utcOffset
|
|
1294
|
+
* @property {google.type.ITimeZone|null} [timeZone] DateTime timeZone
|
|
1295
|
+
*/
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Constructs a new DateTime.
|
|
1299
|
+
* @memberof google.type
|
|
1300
|
+
* @classdesc Represents a DateTime.
|
|
1301
|
+
* @implements IDateTime
|
|
1302
|
+
* @constructor
|
|
1303
|
+
* @param {google.type.IDateTime=} [properties] Properties to set
|
|
1304
|
+
*/
|
|
1305
|
+
function DateTime(properties) {
|
|
1306
|
+
if (properties)
|
|
1307
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1308
|
+
if (properties[keys[i]] != null)
|
|
1309
|
+
this[keys[i]] = properties[keys[i]];
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* DateTime year.
|
|
1314
|
+
* @member {number} year
|
|
1315
|
+
* @memberof google.type.DateTime
|
|
1316
|
+
* @instance
|
|
1317
|
+
*/
|
|
1318
|
+
DateTime.prototype.year = 0;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* DateTime month.
|
|
1322
|
+
* @member {number} month
|
|
1323
|
+
* @memberof google.type.DateTime
|
|
1324
|
+
* @instance
|
|
1325
|
+
*/
|
|
1326
|
+
DateTime.prototype.month = 0;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* DateTime day.
|
|
1330
|
+
* @member {number} day
|
|
1331
|
+
* @memberof google.type.DateTime
|
|
1332
|
+
* @instance
|
|
1333
|
+
*/
|
|
1334
|
+
DateTime.prototype.day = 0;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* DateTime hours.
|
|
1338
|
+
* @member {number} hours
|
|
1339
|
+
* @memberof google.type.DateTime
|
|
1340
|
+
* @instance
|
|
1341
|
+
*/
|
|
1342
|
+
DateTime.prototype.hours = 0;
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* DateTime minutes.
|
|
1346
|
+
* @member {number} minutes
|
|
1347
|
+
* @memberof google.type.DateTime
|
|
1348
|
+
* @instance
|
|
1349
|
+
*/
|
|
1350
|
+
DateTime.prototype.minutes = 0;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* DateTime seconds.
|
|
1354
|
+
* @member {number} seconds
|
|
1355
|
+
* @memberof google.type.DateTime
|
|
1356
|
+
* @instance
|
|
1357
|
+
*/
|
|
1358
|
+
DateTime.prototype.seconds = 0;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* DateTime nanos.
|
|
1362
|
+
* @member {number} nanos
|
|
1363
|
+
* @memberof google.type.DateTime
|
|
1364
|
+
* @instance
|
|
1365
|
+
*/
|
|
1366
|
+
DateTime.prototype.nanos = 0;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* DateTime utcOffset.
|
|
1370
|
+
* @member {google.protobuf.IDuration|null|undefined} utcOffset
|
|
1371
|
+
* @memberof google.type.DateTime
|
|
1372
|
+
* @instance
|
|
1373
|
+
*/
|
|
1374
|
+
DateTime.prototype.utcOffset = null;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* DateTime timeZone.
|
|
1378
|
+
* @member {google.type.ITimeZone|null|undefined} timeZone
|
|
1379
|
+
* @memberof google.type.DateTime
|
|
1380
|
+
* @instance
|
|
1381
|
+
*/
|
|
1382
|
+
DateTime.prototype.timeZone = null;
|
|
1383
|
+
|
|
1384
|
+
// OneOf field names bound to virtual getters and setters
|
|
1385
|
+
var $oneOfFields;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* DateTime timeOffset.
|
|
1389
|
+
* @member {"utcOffset"|"timeZone"|undefined} timeOffset
|
|
1390
|
+
* @memberof google.type.DateTime
|
|
1391
|
+
* @instance
|
|
1392
|
+
*/
|
|
1393
|
+
Object.defineProperty(DateTime.prototype, "timeOffset", {
|
|
1394
|
+
get: $util.oneOfGetter($oneOfFields = ["utcOffset", "timeZone"]),
|
|
1395
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1396
|
+
});
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* Creates a new DateTime instance using the specified properties.
|
|
1400
|
+
* @function create
|
|
1401
|
+
* @memberof google.type.DateTime
|
|
1402
|
+
* @static
|
|
1403
|
+
* @param {google.type.IDateTime=} [properties] Properties to set
|
|
1404
|
+
* @returns {google.type.DateTime} DateTime instance
|
|
1405
|
+
*/
|
|
1406
|
+
DateTime.create = function create(properties) {
|
|
1407
|
+
return new DateTime(properties);
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Encodes the specified DateTime message. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
|
|
1412
|
+
* @function encode
|
|
1413
|
+
* @memberof google.type.DateTime
|
|
1414
|
+
* @static
|
|
1415
|
+
* @param {google.type.IDateTime} message DateTime message or plain object to encode
|
|
1416
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1417
|
+
* @returns {$protobuf.Writer} Writer
|
|
1418
|
+
*/
|
|
1419
|
+
DateTime.encode = function encode(message, writer) {
|
|
1420
|
+
if (!writer)
|
|
1421
|
+
writer = $Writer.create();
|
|
1422
|
+
if (message.year != null && Object.hasOwnProperty.call(message, "year"))
|
|
1423
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.year);
|
|
1424
|
+
if (message.month != null && Object.hasOwnProperty.call(message, "month"))
|
|
1425
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.month);
|
|
1426
|
+
if (message.day != null && Object.hasOwnProperty.call(message, "day"))
|
|
1427
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.day);
|
|
1428
|
+
if (message.hours != null && Object.hasOwnProperty.call(message, "hours"))
|
|
1429
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.hours);
|
|
1430
|
+
if (message.minutes != null && Object.hasOwnProperty.call(message, "minutes"))
|
|
1431
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.minutes);
|
|
1432
|
+
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
1433
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.seconds);
|
|
1434
|
+
if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
|
|
1435
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.nanos);
|
|
1436
|
+
if (message.utcOffset != null && Object.hasOwnProperty.call(message, "utcOffset"))
|
|
1437
|
+
$root.google.protobuf.Duration.encode(message.utcOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
1438
|
+
if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone"))
|
|
1439
|
+
$root.google.type.TimeZone.encode(message.timeZone, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
1440
|
+
return writer;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Encodes the specified DateTime message, length delimited. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
|
|
1445
|
+
* @function encodeDelimited
|
|
1446
|
+
* @memberof google.type.DateTime
|
|
1447
|
+
* @static
|
|
1448
|
+
* @param {google.type.IDateTime} message DateTime message or plain object to encode
|
|
1449
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1450
|
+
* @returns {$protobuf.Writer} Writer
|
|
1451
|
+
*/
|
|
1452
|
+
DateTime.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1453
|
+
return this.encode(message, writer).ldelim();
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Decodes a DateTime message from the specified reader or buffer.
|
|
1458
|
+
* @function decode
|
|
1459
|
+
* @memberof google.type.DateTime
|
|
1460
|
+
* @static
|
|
1461
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1462
|
+
* @param {number} [length] Message length if known beforehand
|
|
1463
|
+
* @returns {google.type.DateTime} DateTime
|
|
1464
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1465
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1466
|
+
*/
|
|
1467
|
+
DateTime.decode = function decode(reader, length) {
|
|
1468
|
+
if (!(reader instanceof $Reader))
|
|
1469
|
+
reader = $Reader.create(reader);
|
|
1470
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.DateTime();
|
|
1471
|
+
while (reader.pos < end) {
|
|
1472
|
+
var tag = reader.uint32();
|
|
1473
|
+
switch (tag >>> 3) {
|
|
1474
|
+
case 1: {
|
|
1475
|
+
message.year = reader.int32();
|
|
1476
|
+
break;
|
|
1477
|
+
}
|
|
1478
|
+
case 2: {
|
|
1479
|
+
message.month = reader.int32();
|
|
1480
|
+
break;
|
|
1481
|
+
}
|
|
1482
|
+
case 3: {
|
|
1483
|
+
message.day = reader.int32();
|
|
1484
|
+
break;
|
|
1485
|
+
}
|
|
1486
|
+
case 4: {
|
|
1487
|
+
message.hours = reader.int32();
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1490
|
+
case 5: {
|
|
1491
|
+
message.minutes = reader.int32();
|
|
1492
|
+
break;
|
|
1493
|
+
}
|
|
1494
|
+
case 6: {
|
|
1495
|
+
message.seconds = reader.int32();
|
|
1496
|
+
break;
|
|
1497
|
+
}
|
|
1498
|
+
case 7: {
|
|
1499
|
+
message.nanos = reader.int32();
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
case 8: {
|
|
1503
|
+
message.utcOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
case 9: {
|
|
1507
|
+
message.timeZone = $root.google.type.TimeZone.decode(reader, reader.uint32());
|
|
1508
|
+
break;
|
|
1509
|
+
}
|
|
1510
|
+
default:
|
|
1511
|
+
reader.skipType(tag & 7);
|
|
1512
|
+
break;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
return message;
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Decodes a DateTime message from the specified reader or buffer, length delimited.
|
|
1520
|
+
* @function decodeDelimited
|
|
1521
|
+
* @memberof google.type.DateTime
|
|
1522
|
+
* @static
|
|
1523
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1524
|
+
* @returns {google.type.DateTime} DateTime
|
|
1525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1527
|
+
*/
|
|
1528
|
+
DateTime.decodeDelimited = function decodeDelimited(reader) {
|
|
1529
|
+
if (!(reader instanceof $Reader))
|
|
1530
|
+
reader = new $Reader(reader);
|
|
1531
|
+
return this.decode(reader, reader.uint32());
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* Verifies a DateTime message.
|
|
1536
|
+
* @function verify
|
|
1537
|
+
* @memberof google.type.DateTime
|
|
1538
|
+
* @static
|
|
1539
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1540
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1541
|
+
*/
|
|
1542
|
+
DateTime.verify = function verify(message) {
|
|
1543
|
+
if (typeof message !== "object" || message === null)
|
|
1544
|
+
return "object expected";
|
|
1545
|
+
var properties = {};
|
|
1546
|
+
if (message.year != null && message.hasOwnProperty("year"))
|
|
1547
|
+
if (!$util.isInteger(message.year))
|
|
1548
|
+
return "year: integer expected";
|
|
1549
|
+
if (message.month != null && message.hasOwnProperty("month"))
|
|
1550
|
+
if (!$util.isInteger(message.month))
|
|
1551
|
+
return "month: integer expected";
|
|
1552
|
+
if (message.day != null && message.hasOwnProperty("day"))
|
|
1553
|
+
if (!$util.isInteger(message.day))
|
|
1554
|
+
return "day: integer expected";
|
|
1555
|
+
if (message.hours != null && message.hasOwnProperty("hours"))
|
|
1556
|
+
if (!$util.isInteger(message.hours))
|
|
1557
|
+
return "hours: integer expected";
|
|
1558
|
+
if (message.minutes != null && message.hasOwnProperty("minutes"))
|
|
1559
|
+
if (!$util.isInteger(message.minutes))
|
|
1560
|
+
return "minutes: integer expected";
|
|
1561
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
1562
|
+
if (!$util.isInteger(message.seconds))
|
|
1563
|
+
return "seconds: integer expected";
|
|
1564
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
1565
|
+
if (!$util.isInteger(message.nanos))
|
|
1566
|
+
return "nanos: integer expected";
|
|
1567
|
+
if (message.utcOffset != null && message.hasOwnProperty("utcOffset")) {
|
|
1568
|
+
properties.timeOffset = 1;
|
|
1569
|
+
{
|
|
1570
|
+
var error = $root.google.protobuf.Duration.verify(message.utcOffset);
|
|
1571
|
+
if (error)
|
|
1572
|
+
return "utcOffset." + error;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
if (message.timeZone != null && message.hasOwnProperty("timeZone")) {
|
|
1576
|
+
if (properties.timeOffset === 1)
|
|
1577
|
+
return "timeOffset: multiple values";
|
|
1578
|
+
properties.timeOffset = 1;
|
|
1579
|
+
{
|
|
1580
|
+
var error = $root.google.type.TimeZone.verify(message.timeZone);
|
|
1581
|
+
if (error)
|
|
1582
|
+
return "timeZone." + error;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
return null;
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Creates a DateTime message from a plain object. Also converts values to their respective internal types.
|
|
1590
|
+
* @function fromObject
|
|
1591
|
+
* @memberof google.type.DateTime
|
|
1592
|
+
* @static
|
|
1593
|
+
* @param {Object.<string,*>} object Plain object
|
|
1594
|
+
* @returns {google.type.DateTime} DateTime
|
|
1595
|
+
*/
|
|
1596
|
+
DateTime.fromObject = function fromObject(object) {
|
|
1597
|
+
if (object instanceof $root.google.type.DateTime)
|
|
1598
|
+
return object;
|
|
1599
|
+
var message = new $root.google.type.DateTime();
|
|
1600
|
+
if (object.year != null)
|
|
1601
|
+
message.year = object.year | 0;
|
|
1602
|
+
if (object.month != null)
|
|
1603
|
+
message.month = object.month | 0;
|
|
1604
|
+
if (object.day != null)
|
|
1605
|
+
message.day = object.day | 0;
|
|
1606
|
+
if (object.hours != null)
|
|
1607
|
+
message.hours = object.hours | 0;
|
|
1608
|
+
if (object.minutes != null)
|
|
1609
|
+
message.minutes = object.minutes | 0;
|
|
1610
|
+
if (object.seconds != null)
|
|
1611
|
+
message.seconds = object.seconds | 0;
|
|
1612
|
+
if (object.nanos != null)
|
|
1613
|
+
message.nanos = object.nanos | 0;
|
|
1614
|
+
if (object.utcOffset != null) {
|
|
1615
|
+
if (typeof object.utcOffset !== "object")
|
|
1616
|
+
throw TypeError(".google.type.DateTime.utcOffset: object expected");
|
|
1617
|
+
message.utcOffset = $root.google.protobuf.Duration.fromObject(object.utcOffset);
|
|
1618
|
+
}
|
|
1619
|
+
if (object.timeZone != null) {
|
|
1620
|
+
if (typeof object.timeZone !== "object")
|
|
1621
|
+
throw TypeError(".google.type.DateTime.timeZone: object expected");
|
|
1622
|
+
message.timeZone = $root.google.type.TimeZone.fromObject(object.timeZone);
|
|
1623
|
+
}
|
|
1624
|
+
return message;
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Creates a plain object from a DateTime message. Also converts values to other types if specified.
|
|
1629
|
+
* @function toObject
|
|
1630
|
+
* @memberof google.type.DateTime
|
|
1631
|
+
* @static
|
|
1632
|
+
* @param {google.type.DateTime} message DateTime
|
|
1633
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1634
|
+
* @returns {Object.<string,*>} Plain object
|
|
1635
|
+
*/
|
|
1636
|
+
DateTime.toObject = function toObject(message, options) {
|
|
1637
|
+
if (!options)
|
|
1638
|
+
options = {};
|
|
1639
|
+
var object = {};
|
|
1640
|
+
if (options.defaults) {
|
|
1641
|
+
object.year = 0;
|
|
1642
|
+
object.month = 0;
|
|
1643
|
+
object.day = 0;
|
|
1644
|
+
object.hours = 0;
|
|
1645
|
+
object.minutes = 0;
|
|
1646
|
+
object.seconds = 0;
|
|
1647
|
+
object.nanos = 0;
|
|
1648
|
+
}
|
|
1649
|
+
if (message.year != null && message.hasOwnProperty("year"))
|
|
1650
|
+
object.year = message.year;
|
|
1651
|
+
if (message.month != null && message.hasOwnProperty("month"))
|
|
1652
|
+
object.month = message.month;
|
|
1653
|
+
if (message.day != null && message.hasOwnProperty("day"))
|
|
1654
|
+
object.day = message.day;
|
|
1655
|
+
if (message.hours != null && message.hasOwnProperty("hours"))
|
|
1656
|
+
object.hours = message.hours;
|
|
1657
|
+
if (message.minutes != null && message.hasOwnProperty("minutes"))
|
|
1658
|
+
object.minutes = message.minutes;
|
|
1659
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
1660
|
+
object.seconds = message.seconds;
|
|
1661
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
1662
|
+
object.nanos = message.nanos;
|
|
1663
|
+
if (message.utcOffset != null && message.hasOwnProperty("utcOffset")) {
|
|
1664
|
+
object.utcOffset = $root.google.protobuf.Duration.toObject(message.utcOffset, options);
|
|
1665
|
+
if (options.oneofs)
|
|
1666
|
+
object.timeOffset = "utcOffset";
|
|
1667
|
+
}
|
|
1668
|
+
if (message.timeZone != null && message.hasOwnProperty("timeZone")) {
|
|
1669
|
+
object.timeZone = $root.google.type.TimeZone.toObject(message.timeZone, options);
|
|
1670
|
+
if (options.oneofs)
|
|
1671
|
+
object.timeOffset = "timeZone";
|
|
1672
|
+
}
|
|
1673
|
+
return object;
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Converts this DateTime to JSON.
|
|
1678
|
+
* @function toJSON
|
|
1679
|
+
* @memberof google.type.DateTime
|
|
1680
|
+
* @instance
|
|
1681
|
+
* @returns {Object.<string,*>} JSON object
|
|
1682
|
+
*/
|
|
1683
|
+
DateTime.prototype.toJSON = function toJSON() {
|
|
1684
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Gets the default type url for DateTime
|
|
1689
|
+
* @function getTypeUrl
|
|
1690
|
+
* @memberof google.type.DateTime
|
|
1691
|
+
* @static
|
|
1692
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1693
|
+
* @returns {string} The default type url
|
|
1694
|
+
*/
|
|
1695
|
+
DateTime.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1696
|
+
if (typeUrlPrefix === undefined) {
|
|
1697
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1698
|
+
}
|
|
1699
|
+
return typeUrlPrefix + "/google.type.DateTime";
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
return DateTime;
|
|
1703
|
+
})();
|
|
1704
|
+
|
|
1705
|
+
type.TimeZone = (function() {
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Properties of a TimeZone.
|
|
1709
|
+
* @memberof google.type
|
|
1710
|
+
* @interface ITimeZone
|
|
1711
|
+
* @property {string|null} [id] TimeZone id
|
|
1712
|
+
* @property {string|null} [version] TimeZone version
|
|
1713
|
+
*/
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Constructs a new TimeZone.
|
|
1717
|
+
* @memberof google.type
|
|
1718
|
+
* @classdesc Represents a TimeZone.
|
|
1719
|
+
* @implements ITimeZone
|
|
1720
|
+
* @constructor
|
|
1721
|
+
* @param {google.type.ITimeZone=} [properties] Properties to set
|
|
1722
|
+
*/
|
|
1723
|
+
function TimeZone(properties) {
|
|
1724
|
+
if (properties)
|
|
1725
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1726
|
+
if (properties[keys[i]] != null)
|
|
1727
|
+
this[keys[i]] = properties[keys[i]];
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* TimeZone id.
|
|
1732
|
+
* @member {string} id
|
|
1733
|
+
* @memberof google.type.TimeZone
|
|
1734
|
+
* @instance
|
|
1735
|
+
*/
|
|
1736
|
+
TimeZone.prototype.id = "";
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* TimeZone version.
|
|
1740
|
+
* @member {string} version
|
|
1741
|
+
* @memberof google.type.TimeZone
|
|
1742
|
+
* @instance
|
|
1743
|
+
*/
|
|
1744
|
+
TimeZone.prototype.version = "";
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Creates a new TimeZone instance using the specified properties.
|
|
1748
|
+
* @function create
|
|
1749
|
+
* @memberof google.type.TimeZone
|
|
1750
|
+
* @static
|
|
1751
|
+
* @param {google.type.ITimeZone=} [properties] Properties to set
|
|
1752
|
+
* @returns {google.type.TimeZone} TimeZone instance
|
|
1753
|
+
*/
|
|
1754
|
+
TimeZone.create = function create(properties) {
|
|
1755
|
+
return new TimeZone(properties);
|
|
1756
|
+
};
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Encodes the specified TimeZone message. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
|
|
1760
|
+
* @function encode
|
|
1761
|
+
* @memberof google.type.TimeZone
|
|
1762
|
+
* @static
|
|
1763
|
+
* @param {google.type.ITimeZone} message TimeZone message or plain object to encode
|
|
1764
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1765
|
+
* @returns {$protobuf.Writer} Writer
|
|
1766
|
+
*/
|
|
1767
|
+
TimeZone.encode = function encode(message, writer) {
|
|
1768
|
+
if (!writer)
|
|
1769
|
+
writer = $Writer.create();
|
|
1770
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
1771
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
1772
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
1773
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
|
|
1774
|
+
return writer;
|
|
1775
|
+
};
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Encodes the specified TimeZone message, length delimited. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
|
|
1779
|
+
* @function encodeDelimited
|
|
1780
|
+
* @memberof google.type.TimeZone
|
|
1781
|
+
* @static
|
|
1782
|
+
* @param {google.type.ITimeZone} message TimeZone message or plain object to encode
|
|
1783
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1784
|
+
* @returns {$protobuf.Writer} Writer
|
|
1785
|
+
*/
|
|
1786
|
+
TimeZone.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1787
|
+
return this.encode(message, writer).ldelim();
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Decodes a TimeZone message from the specified reader or buffer.
|
|
1792
|
+
* @function decode
|
|
1793
|
+
* @memberof google.type.TimeZone
|
|
1794
|
+
* @static
|
|
1795
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1796
|
+
* @param {number} [length] Message length if known beforehand
|
|
1797
|
+
* @returns {google.type.TimeZone} TimeZone
|
|
1798
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1799
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1800
|
+
*/
|
|
1801
|
+
TimeZone.decode = function decode(reader, length) {
|
|
1802
|
+
if (!(reader instanceof $Reader))
|
|
1803
|
+
reader = $Reader.create(reader);
|
|
1804
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.TimeZone();
|
|
1805
|
+
while (reader.pos < end) {
|
|
1806
|
+
var tag = reader.uint32();
|
|
1807
|
+
switch (tag >>> 3) {
|
|
1808
|
+
case 1: {
|
|
1809
|
+
message.id = reader.string();
|
|
1810
|
+
break;
|
|
1811
|
+
}
|
|
1812
|
+
case 2: {
|
|
1813
|
+
message.version = reader.string();
|
|
1814
|
+
break;
|
|
1815
|
+
}
|
|
1816
|
+
default:
|
|
1817
|
+
reader.skipType(tag & 7);
|
|
1818
|
+
break;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
return message;
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Decodes a TimeZone message from the specified reader or buffer, length delimited.
|
|
1826
|
+
* @function decodeDelimited
|
|
1827
|
+
* @memberof google.type.TimeZone
|
|
1828
|
+
* @static
|
|
1829
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1830
|
+
* @returns {google.type.TimeZone} TimeZone
|
|
1831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1833
|
+
*/
|
|
1834
|
+
TimeZone.decodeDelimited = function decodeDelimited(reader) {
|
|
1835
|
+
if (!(reader instanceof $Reader))
|
|
1836
|
+
reader = new $Reader(reader);
|
|
1837
|
+
return this.decode(reader, reader.uint32());
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Verifies a TimeZone message.
|
|
1842
|
+
* @function verify
|
|
1843
|
+
* @memberof google.type.TimeZone
|
|
1844
|
+
* @static
|
|
1845
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1846
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1847
|
+
*/
|
|
1848
|
+
TimeZone.verify = function verify(message) {
|
|
1849
|
+
if (typeof message !== "object" || message === null)
|
|
1850
|
+
return "object expected";
|
|
1851
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1852
|
+
if (!$util.isString(message.id))
|
|
1853
|
+
return "id: string expected";
|
|
1854
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
1855
|
+
if (!$util.isString(message.version))
|
|
1856
|
+
return "version: string expected";
|
|
1857
|
+
return null;
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Creates a TimeZone message from a plain object. Also converts values to their respective internal types.
|
|
1862
|
+
* @function fromObject
|
|
1863
|
+
* @memberof google.type.TimeZone
|
|
1864
|
+
* @static
|
|
1865
|
+
* @param {Object.<string,*>} object Plain object
|
|
1866
|
+
* @returns {google.type.TimeZone} TimeZone
|
|
1867
|
+
*/
|
|
1868
|
+
TimeZone.fromObject = function fromObject(object) {
|
|
1869
|
+
if (object instanceof $root.google.type.TimeZone)
|
|
1870
|
+
return object;
|
|
1871
|
+
var message = new $root.google.type.TimeZone();
|
|
1872
|
+
if (object.id != null)
|
|
1873
|
+
message.id = String(object.id);
|
|
1874
|
+
if (object.version != null)
|
|
1875
|
+
message.version = String(object.version);
|
|
1876
|
+
return message;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Creates a plain object from a TimeZone message. Also converts values to other types if specified.
|
|
1881
|
+
* @function toObject
|
|
1882
|
+
* @memberof google.type.TimeZone
|
|
1883
|
+
* @static
|
|
1884
|
+
* @param {google.type.TimeZone} message TimeZone
|
|
1885
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1886
|
+
* @returns {Object.<string,*>} Plain object
|
|
1887
|
+
*/
|
|
1888
|
+
TimeZone.toObject = function toObject(message, options) {
|
|
1889
|
+
if (!options)
|
|
1890
|
+
options = {};
|
|
1891
|
+
var object = {};
|
|
1892
|
+
if (options.defaults) {
|
|
1893
|
+
object.id = "";
|
|
1894
|
+
object.version = "";
|
|
1895
|
+
}
|
|
1896
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1897
|
+
object.id = message.id;
|
|
1898
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
1899
|
+
object.version = message.version;
|
|
1900
|
+
return object;
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Converts this TimeZone to JSON.
|
|
1905
|
+
* @function toJSON
|
|
1906
|
+
* @memberof google.type.TimeZone
|
|
1907
|
+
* @instance
|
|
1908
|
+
* @returns {Object.<string,*>} JSON object
|
|
1909
|
+
*/
|
|
1910
|
+
TimeZone.prototype.toJSON = function toJSON() {
|
|
1911
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Gets the default type url for TimeZone
|
|
1916
|
+
* @function getTypeUrl
|
|
1917
|
+
* @memberof google.type.TimeZone
|
|
1918
|
+
* @static
|
|
1919
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1920
|
+
* @returns {string} The default type url
|
|
1921
|
+
*/
|
|
1922
|
+
TimeZone.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1923
|
+
if (typeUrlPrefix === undefined) {
|
|
1924
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1925
|
+
}
|
|
1926
|
+
return typeUrlPrefix + "/google.type.TimeZone";
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
return TimeZone;
|
|
1930
|
+
})();
|
|
1931
|
+
|
|
1932
|
+
type.PostalAddress = (function() {
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Properties of a PostalAddress.
|
|
1936
|
+
* @memberof google.type
|
|
1937
|
+
* @interface IPostalAddress
|
|
1938
|
+
* @property {number|null} [revision] PostalAddress revision
|
|
1939
|
+
* @property {string|null} [regionCode] PostalAddress regionCode
|
|
1940
|
+
* @property {string|null} [languageCode] PostalAddress languageCode
|
|
1941
|
+
* @property {string|null} [postalCode] PostalAddress postalCode
|
|
1942
|
+
* @property {string|null} [sortingCode] PostalAddress sortingCode
|
|
1943
|
+
* @property {string|null} [administrativeArea] PostalAddress administrativeArea
|
|
1944
|
+
* @property {string|null} [locality] PostalAddress locality
|
|
1945
|
+
* @property {string|null} [sublocality] PostalAddress sublocality
|
|
1946
|
+
* @property {Array.<string>|null} [addressLines] PostalAddress addressLines
|
|
1947
|
+
* @property {Array.<string>|null} [recipients] PostalAddress recipients
|
|
1948
|
+
* @property {string|null} [organization] PostalAddress organization
|
|
1949
|
+
*/
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* Constructs a new PostalAddress.
|
|
1953
|
+
* @memberof google.type
|
|
1954
|
+
* @classdesc Represents a PostalAddress.
|
|
1955
|
+
* @implements IPostalAddress
|
|
1956
|
+
* @constructor
|
|
1957
|
+
* @param {google.type.IPostalAddress=} [properties] Properties to set
|
|
1958
|
+
*/
|
|
1959
|
+
function PostalAddress(properties) {
|
|
1960
|
+
this.addressLines = [];
|
|
1961
|
+
this.recipients = [];
|
|
1962
|
+
if (properties)
|
|
1963
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1964
|
+
if (properties[keys[i]] != null)
|
|
1965
|
+
this[keys[i]] = properties[keys[i]];
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* PostalAddress revision.
|
|
1970
|
+
* @member {number} revision
|
|
1971
|
+
* @memberof google.type.PostalAddress
|
|
1972
|
+
* @instance
|
|
1973
|
+
*/
|
|
1974
|
+
PostalAddress.prototype.revision = 0;
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* PostalAddress regionCode.
|
|
1978
|
+
* @member {string} regionCode
|
|
1979
|
+
* @memberof google.type.PostalAddress
|
|
1980
|
+
* @instance
|
|
1981
|
+
*/
|
|
1982
|
+
PostalAddress.prototype.regionCode = "";
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* PostalAddress languageCode.
|
|
1986
|
+
* @member {string} languageCode
|
|
1987
|
+
* @memberof google.type.PostalAddress
|
|
1988
|
+
* @instance
|
|
1989
|
+
*/
|
|
1990
|
+
PostalAddress.prototype.languageCode = "";
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* PostalAddress postalCode.
|
|
1994
|
+
* @member {string} postalCode
|
|
1995
|
+
* @memberof google.type.PostalAddress
|
|
1996
|
+
* @instance
|
|
1997
|
+
*/
|
|
1998
|
+
PostalAddress.prototype.postalCode = "";
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* PostalAddress sortingCode.
|
|
2002
|
+
* @member {string} sortingCode
|
|
2003
|
+
* @memberof google.type.PostalAddress
|
|
2004
|
+
* @instance
|
|
2005
|
+
*/
|
|
2006
|
+
PostalAddress.prototype.sortingCode = "";
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* PostalAddress administrativeArea.
|
|
2010
|
+
* @member {string} administrativeArea
|
|
2011
|
+
* @memberof google.type.PostalAddress
|
|
2012
|
+
* @instance
|
|
2013
|
+
*/
|
|
2014
|
+
PostalAddress.prototype.administrativeArea = "";
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* PostalAddress locality.
|
|
2018
|
+
* @member {string} locality
|
|
2019
|
+
* @memberof google.type.PostalAddress
|
|
2020
|
+
* @instance
|
|
2021
|
+
*/
|
|
2022
|
+
PostalAddress.prototype.locality = "";
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* PostalAddress sublocality.
|
|
2026
|
+
* @member {string} sublocality
|
|
2027
|
+
* @memberof google.type.PostalAddress
|
|
2028
|
+
* @instance
|
|
2029
|
+
*/
|
|
2030
|
+
PostalAddress.prototype.sublocality = "";
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* PostalAddress addressLines.
|
|
2034
|
+
* @member {Array.<string>} addressLines
|
|
2035
|
+
* @memberof google.type.PostalAddress
|
|
2036
|
+
* @instance
|
|
2037
|
+
*/
|
|
2038
|
+
PostalAddress.prototype.addressLines = $util.emptyArray;
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* PostalAddress recipients.
|
|
2042
|
+
* @member {Array.<string>} recipients
|
|
2043
|
+
* @memberof google.type.PostalAddress
|
|
2044
|
+
* @instance
|
|
2045
|
+
*/
|
|
2046
|
+
PostalAddress.prototype.recipients = $util.emptyArray;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* PostalAddress organization.
|
|
2050
|
+
* @member {string} organization
|
|
2051
|
+
* @memberof google.type.PostalAddress
|
|
2052
|
+
* @instance
|
|
2053
|
+
*/
|
|
2054
|
+
PostalAddress.prototype.organization = "";
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Creates a new PostalAddress instance using the specified properties.
|
|
2058
|
+
* @function create
|
|
2059
|
+
* @memberof google.type.PostalAddress
|
|
2060
|
+
* @static
|
|
2061
|
+
* @param {google.type.IPostalAddress=} [properties] Properties to set
|
|
2062
|
+
* @returns {google.type.PostalAddress} PostalAddress instance
|
|
2063
|
+
*/
|
|
2064
|
+
PostalAddress.create = function create(properties) {
|
|
2065
|
+
return new PostalAddress(properties);
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Encodes the specified PostalAddress message. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
|
|
2070
|
+
* @function encode
|
|
2071
|
+
* @memberof google.type.PostalAddress
|
|
2072
|
+
* @static
|
|
2073
|
+
* @param {google.type.IPostalAddress} message PostalAddress message or plain object to encode
|
|
2074
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2075
|
+
* @returns {$protobuf.Writer} Writer
|
|
2076
|
+
*/
|
|
2077
|
+
PostalAddress.encode = function encode(message, writer) {
|
|
2078
|
+
if (!writer)
|
|
2079
|
+
writer = $Writer.create();
|
|
2080
|
+
if (message.revision != null && Object.hasOwnProperty.call(message, "revision"))
|
|
2081
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.revision);
|
|
2082
|
+
if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
|
|
2083
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.regionCode);
|
|
2084
|
+
if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
|
|
2085
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode);
|
|
2086
|
+
if (message.postalCode != null && Object.hasOwnProperty.call(message, "postalCode"))
|
|
2087
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.postalCode);
|
|
2088
|
+
if (message.sortingCode != null && Object.hasOwnProperty.call(message, "sortingCode"))
|
|
2089
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.sortingCode);
|
|
2090
|
+
if (message.administrativeArea != null && Object.hasOwnProperty.call(message, "administrativeArea"))
|
|
2091
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.administrativeArea);
|
|
2092
|
+
if (message.locality != null && Object.hasOwnProperty.call(message, "locality"))
|
|
2093
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.locality);
|
|
2094
|
+
if (message.sublocality != null && Object.hasOwnProperty.call(message, "sublocality"))
|
|
2095
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.sublocality);
|
|
2096
|
+
if (message.addressLines != null && message.addressLines.length)
|
|
2097
|
+
for (var i = 0; i < message.addressLines.length; ++i)
|
|
2098
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.addressLines[i]);
|
|
2099
|
+
if (message.recipients != null && message.recipients.length)
|
|
2100
|
+
for (var i = 0; i < message.recipients.length; ++i)
|
|
2101
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.recipients[i]);
|
|
2102
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
2103
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.organization);
|
|
2104
|
+
return writer;
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* Encodes the specified PostalAddress message, length delimited. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
|
|
2109
|
+
* @function encodeDelimited
|
|
2110
|
+
* @memberof google.type.PostalAddress
|
|
2111
|
+
* @static
|
|
2112
|
+
* @param {google.type.IPostalAddress} message PostalAddress message or plain object to encode
|
|
2113
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2114
|
+
* @returns {$protobuf.Writer} Writer
|
|
2115
|
+
*/
|
|
2116
|
+
PostalAddress.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2117
|
+
return this.encode(message, writer).ldelim();
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* Decodes a PostalAddress message from the specified reader or buffer.
|
|
2122
|
+
* @function decode
|
|
2123
|
+
* @memberof google.type.PostalAddress
|
|
2124
|
+
* @static
|
|
2125
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2126
|
+
* @param {number} [length] Message length if known beforehand
|
|
2127
|
+
* @returns {google.type.PostalAddress} PostalAddress
|
|
2128
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2129
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2130
|
+
*/
|
|
2131
|
+
PostalAddress.decode = function decode(reader, length) {
|
|
2132
|
+
if (!(reader instanceof $Reader))
|
|
2133
|
+
reader = $Reader.create(reader);
|
|
2134
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.type.PostalAddress();
|
|
2135
|
+
while (reader.pos < end) {
|
|
2136
|
+
var tag = reader.uint32();
|
|
2137
|
+
switch (tag >>> 3) {
|
|
2138
|
+
case 1: {
|
|
2139
|
+
message.revision = reader.int32();
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
2142
|
+
case 2: {
|
|
2143
|
+
message.regionCode = reader.string();
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
2146
|
+
case 3: {
|
|
2147
|
+
message.languageCode = reader.string();
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
case 4: {
|
|
2151
|
+
message.postalCode = reader.string();
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
case 5: {
|
|
2155
|
+
message.sortingCode = reader.string();
|
|
2156
|
+
break;
|
|
2157
|
+
}
|
|
2158
|
+
case 6: {
|
|
2159
|
+
message.administrativeArea = reader.string();
|
|
2160
|
+
break;
|
|
2161
|
+
}
|
|
2162
|
+
case 7: {
|
|
2163
|
+
message.locality = reader.string();
|
|
2164
|
+
break;
|
|
2165
|
+
}
|
|
2166
|
+
case 8: {
|
|
2167
|
+
message.sublocality = reader.string();
|
|
2168
|
+
break;
|
|
2169
|
+
}
|
|
2170
|
+
case 9: {
|
|
2171
|
+
if (!(message.addressLines && message.addressLines.length))
|
|
2172
|
+
message.addressLines = [];
|
|
2173
|
+
message.addressLines.push(reader.string());
|
|
2174
|
+
break;
|
|
2175
|
+
}
|
|
2176
|
+
case 10: {
|
|
2177
|
+
if (!(message.recipients && message.recipients.length))
|
|
2178
|
+
message.recipients = [];
|
|
2179
|
+
message.recipients.push(reader.string());
|
|
2180
|
+
break;
|
|
2181
|
+
}
|
|
2182
|
+
case 11: {
|
|
2183
|
+
message.organization = reader.string();
|
|
2184
|
+
break;
|
|
2185
|
+
}
|
|
2186
|
+
default:
|
|
2187
|
+
reader.skipType(tag & 7);
|
|
2188
|
+
break;
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
return message;
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* Decodes a PostalAddress message from the specified reader or buffer, length delimited.
|
|
2196
|
+
* @function decodeDelimited
|
|
2197
|
+
* @memberof google.type.PostalAddress
|
|
2198
|
+
* @static
|
|
2199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2200
|
+
* @returns {google.type.PostalAddress} PostalAddress
|
|
2201
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2202
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2203
|
+
*/
|
|
2204
|
+
PostalAddress.decodeDelimited = function decodeDelimited(reader) {
|
|
2205
|
+
if (!(reader instanceof $Reader))
|
|
2206
|
+
reader = new $Reader(reader);
|
|
2207
|
+
return this.decode(reader, reader.uint32());
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* Verifies a PostalAddress message.
|
|
2212
|
+
* @function verify
|
|
2213
|
+
* @memberof google.type.PostalAddress
|
|
2214
|
+
* @static
|
|
2215
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2216
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2217
|
+
*/
|
|
2218
|
+
PostalAddress.verify = function verify(message) {
|
|
2219
|
+
if (typeof message !== "object" || message === null)
|
|
2220
|
+
return "object expected";
|
|
2221
|
+
if (message.revision != null && message.hasOwnProperty("revision"))
|
|
2222
|
+
if (!$util.isInteger(message.revision))
|
|
2223
|
+
return "revision: integer expected";
|
|
2224
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
|
2225
|
+
if (!$util.isString(message.regionCode))
|
|
2226
|
+
return "regionCode: string expected";
|
|
2227
|
+
if (message.languageCode != null && message.hasOwnProperty("languageCode"))
|
|
2228
|
+
if (!$util.isString(message.languageCode))
|
|
2229
|
+
return "languageCode: string expected";
|
|
2230
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
2231
|
+
if (!$util.isString(message.postalCode))
|
|
2232
|
+
return "postalCode: string expected";
|
|
2233
|
+
if (message.sortingCode != null && message.hasOwnProperty("sortingCode"))
|
|
2234
|
+
if (!$util.isString(message.sortingCode))
|
|
2235
|
+
return "sortingCode: string expected";
|
|
2236
|
+
if (message.administrativeArea != null && message.hasOwnProperty("administrativeArea"))
|
|
2237
|
+
if (!$util.isString(message.administrativeArea))
|
|
2238
|
+
return "administrativeArea: string expected";
|
|
2239
|
+
if (message.locality != null && message.hasOwnProperty("locality"))
|
|
2240
|
+
if (!$util.isString(message.locality))
|
|
2241
|
+
return "locality: string expected";
|
|
2242
|
+
if (message.sublocality != null && message.hasOwnProperty("sublocality"))
|
|
2243
|
+
if (!$util.isString(message.sublocality))
|
|
2244
|
+
return "sublocality: string expected";
|
|
2245
|
+
if (message.addressLines != null && message.hasOwnProperty("addressLines")) {
|
|
2246
|
+
if (!Array.isArray(message.addressLines))
|
|
2247
|
+
return "addressLines: array expected";
|
|
2248
|
+
for (var i = 0; i < message.addressLines.length; ++i)
|
|
2249
|
+
if (!$util.isString(message.addressLines[i]))
|
|
2250
|
+
return "addressLines: string[] expected";
|
|
2251
|
+
}
|
|
2252
|
+
if (message.recipients != null && message.hasOwnProperty("recipients")) {
|
|
2253
|
+
if (!Array.isArray(message.recipients))
|
|
2254
|
+
return "recipients: array expected";
|
|
2255
|
+
for (var i = 0; i < message.recipients.length; ++i)
|
|
2256
|
+
if (!$util.isString(message.recipients[i]))
|
|
2257
|
+
return "recipients: string[] expected";
|
|
2258
|
+
}
|
|
2259
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
2260
|
+
if (!$util.isString(message.organization))
|
|
2261
|
+
return "organization: string expected";
|
|
2262
|
+
return null;
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Creates a PostalAddress message from a plain object. Also converts values to their respective internal types.
|
|
2267
|
+
* @function fromObject
|
|
2268
|
+
* @memberof google.type.PostalAddress
|
|
2269
|
+
* @static
|
|
2270
|
+
* @param {Object.<string,*>} object Plain object
|
|
2271
|
+
* @returns {google.type.PostalAddress} PostalAddress
|
|
2272
|
+
*/
|
|
2273
|
+
PostalAddress.fromObject = function fromObject(object) {
|
|
2274
|
+
if (object instanceof $root.google.type.PostalAddress)
|
|
2275
|
+
return object;
|
|
2276
|
+
var message = new $root.google.type.PostalAddress();
|
|
2277
|
+
if (object.revision != null)
|
|
2278
|
+
message.revision = object.revision | 0;
|
|
2279
|
+
if (object.regionCode != null)
|
|
2280
|
+
message.regionCode = String(object.regionCode);
|
|
2281
|
+
if (object.languageCode != null)
|
|
2282
|
+
message.languageCode = String(object.languageCode);
|
|
2283
|
+
if (object.postalCode != null)
|
|
2284
|
+
message.postalCode = String(object.postalCode);
|
|
2285
|
+
if (object.sortingCode != null)
|
|
2286
|
+
message.sortingCode = String(object.sortingCode);
|
|
2287
|
+
if (object.administrativeArea != null)
|
|
2288
|
+
message.administrativeArea = String(object.administrativeArea);
|
|
2289
|
+
if (object.locality != null)
|
|
2290
|
+
message.locality = String(object.locality);
|
|
2291
|
+
if (object.sublocality != null)
|
|
2292
|
+
message.sublocality = String(object.sublocality);
|
|
2293
|
+
if (object.addressLines) {
|
|
2294
|
+
if (!Array.isArray(object.addressLines))
|
|
2295
|
+
throw TypeError(".google.type.PostalAddress.addressLines: array expected");
|
|
2296
|
+
message.addressLines = [];
|
|
2297
|
+
for (var i = 0; i < object.addressLines.length; ++i)
|
|
2298
|
+
message.addressLines[i] = String(object.addressLines[i]);
|
|
2299
|
+
}
|
|
2300
|
+
if (object.recipients) {
|
|
2301
|
+
if (!Array.isArray(object.recipients))
|
|
2302
|
+
throw TypeError(".google.type.PostalAddress.recipients: array expected");
|
|
2303
|
+
message.recipients = [];
|
|
2304
|
+
for (var i = 0; i < object.recipients.length; ++i)
|
|
2305
|
+
message.recipients[i] = String(object.recipients[i]);
|
|
2306
|
+
}
|
|
2307
|
+
if (object.organization != null)
|
|
2308
|
+
message.organization = String(object.organization);
|
|
2309
|
+
return message;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Creates a plain object from a PostalAddress message. Also converts values to other types if specified.
|
|
2314
|
+
* @function toObject
|
|
2315
|
+
* @memberof google.type.PostalAddress
|
|
2316
|
+
* @static
|
|
2317
|
+
* @param {google.type.PostalAddress} message PostalAddress
|
|
2318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2319
|
+
* @returns {Object.<string,*>} Plain object
|
|
2320
|
+
*/
|
|
2321
|
+
PostalAddress.toObject = function toObject(message, options) {
|
|
2322
|
+
if (!options)
|
|
2323
|
+
options = {};
|
|
2324
|
+
var object = {};
|
|
2325
|
+
if (options.arrays || options.defaults) {
|
|
2326
|
+
object.addressLines = [];
|
|
2327
|
+
object.recipients = [];
|
|
2328
|
+
}
|
|
2329
|
+
if (options.defaults) {
|
|
2330
|
+
object.revision = 0;
|
|
2331
|
+
object.regionCode = "";
|
|
2332
|
+
object.languageCode = "";
|
|
2333
|
+
object.postalCode = "";
|
|
2334
|
+
object.sortingCode = "";
|
|
2335
|
+
object.administrativeArea = "";
|
|
2336
|
+
object.locality = "";
|
|
2337
|
+
object.sublocality = "";
|
|
2338
|
+
object.organization = "";
|
|
2339
|
+
}
|
|
2340
|
+
if (message.revision != null && message.hasOwnProperty("revision"))
|
|
2341
|
+
object.revision = message.revision;
|
|
2342
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
|
2343
|
+
object.regionCode = message.regionCode;
|
|
2344
|
+
if (message.languageCode != null && message.hasOwnProperty("languageCode"))
|
|
2345
|
+
object.languageCode = message.languageCode;
|
|
2346
|
+
if (message.postalCode != null && message.hasOwnProperty("postalCode"))
|
|
2347
|
+
object.postalCode = message.postalCode;
|
|
2348
|
+
if (message.sortingCode != null && message.hasOwnProperty("sortingCode"))
|
|
2349
|
+
object.sortingCode = message.sortingCode;
|
|
2350
|
+
if (message.administrativeArea != null && message.hasOwnProperty("administrativeArea"))
|
|
2351
|
+
object.administrativeArea = message.administrativeArea;
|
|
2352
|
+
if (message.locality != null && message.hasOwnProperty("locality"))
|
|
2353
|
+
object.locality = message.locality;
|
|
2354
|
+
if (message.sublocality != null && message.hasOwnProperty("sublocality"))
|
|
2355
|
+
object.sublocality = message.sublocality;
|
|
2356
|
+
if (message.addressLines && message.addressLines.length) {
|
|
2357
|
+
object.addressLines = [];
|
|
2358
|
+
for (var j = 0; j < message.addressLines.length; ++j)
|
|
2359
|
+
object.addressLines[j] = message.addressLines[j];
|
|
2360
|
+
}
|
|
2361
|
+
if (message.recipients && message.recipients.length) {
|
|
2362
|
+
object.recipients = [];
|
|
2363
|
+
for (var j = 0; j < message.recipients.length; ++j)
|
|
2364
|
+
object.recipients[j] = message.recipients[j];
|
|
2365
|
+
}
|
|
2366
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
2367
|
+
object.organization = message.organization;
|
|
2368
|
+
return object;
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
/**
|
|
2372
|
+
* Converts this PostalAddress to JSON.
|
|
2373
|
+
* @function toJSON
|
|
2374
|
+
* @memberof google.type.PostalAddress
|
|
2375
|
+
* @instance
|
|
2376
|
+
* @returns {Object.<string,*>} JSON object
|
|
2377
|
+
*/
|
|
2378
|
+
PostalAddress.prototype.toJSON = function toJSON() {
|
|
2379
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* Gets the default type url for PostalAddress
|
|
2384
|
+
* @function getTypeUrl
|
|
2385
|
+
* @memberof google.type.PostalAddress
|
|
2386
|
+
* @static
|
|
2387
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2388
|
+
* @returns {string} The default type url
|
|
2389
|
+
*/
|
|
2390
|
+
PostalAddress.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2391
|
+
if (typeUrlPrefix === undefined) {
|
|
2392
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2393
|
+
}
|
|
2394
|
+
return typeUrlPrefix + "/google.type.PostalAddress";
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
return PostalAddress;
|
|
2398
|
+
})();
|
|
2399
|
+
|
|
1280
2400
|
return type;
|
|
1281
2401
|
})();
|
|
1282
2402
|
|
|
@@ -5875,6 +6995,7 @@
|
|
|
5875
6995
|
* @property {string|null} [internationalPhoneNumber] Place internationalPhoneNumber
|
|
5876
6996
|
* @property {string|null} [formattedAddress] Place formattedAddress
|
|
5877
6997
|
* @property {string|null} [shortFormattedAddress] Place shortFormattedAddress
|
|
6998
|
+
* @property {google.type.IPostalAddress|null} [postalAddress] Place postalAddress
|
|
5878
6999
|
* @property {Array.<google.maps.places.v1.Place.IAddressComponent>|null} [addressComponents] Place addressComponents
|
|
5879
7000
|
* @property {google.maps.places.v1.Place.IPlusCode|null} [plusCode] Place plusCode
|
|
5880
7001
|
* @property {google.type.ILatLng|null} [location] Place location
|
|
@@ -5885,6 +7006,7 @@
|
|
|
5885
7006
|
* @property {Array.<google.maps.places.v1.IReview>|null} [reviews] Place reviews
|
|
5886
7007
|
* @property {google.maps.places.v1.Place.IOpeningHours|null} [regularOpeningHours] Place regularOpeningHours
|
|
5887
7008
|
* @property {number|null} [utcOffsetMinutes] Place utcOffsetMinutes
|
|
7009
|
+
* @property {google.type.ITimeZone|null} [timeZone] Place timeZone
|
|
5888
7010
|
* @property {Array.<google.maps.places.v1.IPhoto>|null} [photos] Place photos
|
|
5889
7011
|
* @property {string|null} [adrFormatAddress] Place adrFormatAddress
|
|
5890
7012
|
* @property {google.maps.places.v1.Place.BusinessStatus|null} [businessStatus] Place businessStatus
|
|
@@ -6037,6 +7159,14 @@
|
|
|
6037
7159
|
*/
|
|
6038
7160
|
Place.prototype.shortFormattedAddress = "";
|
|
6039
7161
|
|
|
7162
|
+
/**
|
|
7163
|
+
* Place postalAddress.
|
|
7164
|
+
* @member {google.type.IPostalAddress|null|undefined} postalAddress
|
|
7165
|
+
* @memberof google.maps.places.v1.Place
|
|
7166
|
+
* @instance
|
|
7167
|
+
*/
|
|
7168
|
+
Place.prototype.postalAddress = null;
|
|
7169
|
+
|
|
6040
7170
|
/**
|
|
6041
7171
|
* Place addressComponents.
|
|
6042
7172
|
* @member {Array.<google.maps.places.v1.Place.IAddressComponent>} addressComponents
|
|
@@ -6117,6 +7247,14 @@
|
|
|
6117
7247
|
*/
|
|
6118
7248
|
Place.prototype.utcOffsetMinutes = null;
|
|
6119
7249
|
|
|
7250
|
+
/**
|
|
7251
|
+
* Place timeZone.
|
|
7252
|
+
* @member {google.type.ITimeZone|null|undefined} timeZone
|
|
7253
|
+
* @memberof google.maps.places.v1.Place
|
|
7254
|
+
* @instance
|
|
7255
|
+
*/
|
|
7256
|
+
Place.prototype.timeZone = null;
|
|
7257
|
+
|
|
6120
7258
|
/**
|
|
6121
7259
|
* Place photos.
|
|
6122
7260
|
* @member {Array.<google.maps.places.v1.IPhoto>} photos
|
|
@@ -6950,6 +8088,10 @@
|
|
|
6950
8088
|
writer.uint32(/* id 83, wireType 0 =*/664).bool(message.pureServiceAreaBusiness);
|
|
6951
8089
|
if (message.priceRange != null && Object.hasOwnProperty.call(message, "priceRange"))
|
|
6952
8090
|
$root.google.maps.places.v1.PriceRange.encode(message.priceRange, writer.uint32(/* id 86, wireType 2 =*/690).fork()).ldelim();
|
|
8091
|
+
if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone"))
|
|
8092
|
+
$root.google.type.TimeZone.encode(message.timeZone, writer.uint32(/* id 88, wireType 2 =*/706).fork()).ldelim();
|
|
8093
|
+
if (message.postalAddress != null && Object.hasOwnProperty.call(message, "postalAddress"))
|
|
8094
|
+
$root.google.type.PostalAddress.encode(message.postalAddress, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
|
|
6953
8095
|
return writer;
|
|
6954
8096
|
};
|
|
6955
8097
|
|
|
@@ -7026,6 +8168,10 @@
|
|
|
7026
8168
|
message.shortFormattedAddress = reader.string();
|
|
7027
8169
|
break;
|
|
7028
8170
|
}
|
|
8171
|
+
case 90: {
|
|
8172
|
+
message.postalAddress = $root.google.type.PostalAddress.decode(reader, reader.uint32());
|
|
8173
|
+
break;
|
|
8174
|
+
}
|
|
7029
8175
|
case 10: {
|
|
7030
8176
|
if (!(message.addressComponents && message.addressComponents.length))
|
|
7031
8177
|
message.addressComponents = [];
|
|
@@ -7070,6 +8216,10 @@
|
|
|
7070
8216
|
message.utcOffsetMinutes = reader.int32();
|
|
7071
8217
|
break;
|
|
7072
8218
|
}
|
|
8219
|
+
case 88: {
|
|
8220
|
+
message.timeZone = $root.google.type.TimeZone.decode(reader, reader.uint32());
|
|
8221
|
+
break;
|
|
8222
|
+
}
|
|
7073
8223
|
case 54: {
|
|
7074
8224
|
if (!(message.photos && message.photos.length))
|
|
7075
8225
|
message.photos = [];
|
|
@@ -7340,6 +8490,11 @@
|
|
|
7340
8490
|
if (message.shortFormattedAddress != null && message.hasOwnProperty("shortFormattedAddress"))
|
|
7341
8491
|
if (!$util.isString(message.shortFormattedAddress))
|
|
7342
8492
|
return "shortFormattedAddress: string expected";
|
|
8493
|
+
if (message.postalAddress != null && message.hasOwnProperty("postalAddress")) {
|
|
8494
|
+
var error = $root.google.type.PostalAddress.verify(message.postalAddress);
|
|
8495
|
+
if (error)
|
|
8496
|
+
return "postalAddress." + error;
|
|
8497
|
+
}
|
|
7343
8498
|
if (message.addressComponents != null && message.hasOwnProperty("addressComponents")) {
|
|
7344
8499
|
if (!Array.isArray(message.addressComponents))
|
|
7345
8500
|
return "addressComponents: array expected";
|
|
@@ -7392,6 +8547,11 @@
|
|
|
7392
8547
|
if (!$util.isInteger(message.utcOffsetMinutes))
|
|
7393
8548
|
return "utcOffsetMinutes: integer expected";
|
|
7394
8549
|
}
|
|
8550
|
+
if (message.timeZone != null && message.hasOwnProperty("timeZone")) {
|
|
8551
|
+
var error = $root.google.type.TimeZone.verify(message.timeZone);
|
|
8552
|
+
if (error)
|
|
8553
|
+
return "timeZone." + error;
|
|
8554
|
+
}
|
|
7395
8555
|
if (message.photos != null && message.hasOwnProperty("photos")) {
|
|
7396
8556
|
if (!Array.isArray(message.photos))
|
|
7397
8557
|
return "photos: array expected";
|
|
@@ -7701,6 +8861,11 @@
|
|
|
7701
8861
|
message.formattedAddress = String(object.formattedAddress);
|
|
7702
8862
|
if (object.shortFormattedAddress != null)
|
|
7703
8863
|
message.shortFormattedAddress = String(object.shortFormattedAddress);
|
|
8864
|
+
if (object.postalAddress != null) {
|
|
8865
|
+
if (typeof object.postalAddress !== "object")
|
|
8866
|
+
throw TypeError(".google.maps.places.v1.Place.postalAddress: object expected");
|
|
8867
|
+
message.postalAddress = $root.google.type.PostalAddress.fromObject(object.postalAddress);
|
|
8868
|
+
}
|
|
7704
8869
|
if (object.addressComponents) {
|
|
7705
8870
|
if (!Array.isArray(object.addressComponents))
|
|
7706
8871
|
throw TypeError(".google.maps.places.v1.Place.addressComponents: array expected");
|
|
@@ -7749,6 +8914,11 @@
|
|
|
7749
8914
|
}
|
|
7750
8915
|
if (object.utcOffsetMinutes != null)
|
|
7751
8916
|
message.utcOffsetMinutes = object.utcOffsetMinutes | 0;
|
|
8917
|
+
if (object.timeZone != null) {
|
|
8918
|
+
if (typeof object.timeZone !== "object")
|
|
8919
|
+
throw TypeError(".google.maps.places.v1.Place.timeZone: object expected");
|
|
8920
|
+
message.timeZone = $root.google.type.TimeZone.fromObject(object.timeZone);
|
|
8921
|
+
}
|
|
7752
8922
|
if (object.photos) {
|
|
7753
8923
|
if (!Array.isArray(object.photos))
|
|
7754
8924
|
throw TypeError(".google.maps.places.v1.Place.photos: array expected");
|
|
@@ -8029,6 +9199,8 @@
|
|
|
8029
9199
|
object.generativeSummary = null;
|
|
8030
9200
|
object.areaSummary = null;
|
|
8031
9201
|
object.priceRange = null;
|
|
9202
|
+
object.timeZone = null;
|
|
9203
|
+
object.postalAddress = null;
|
|
8032
9204
|
}
|
|
8033
9205
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
8034
9206
|
object.name = message.name;
|
|
@@ -8270,6 +9442,10 @@
|
|
|
8270
9442
|
}
|
|
8271
9443
|
if (message.priceRange != null && message.hasOwnProperty("priceRange"))
|
|
8272
9444
|
object.priceRange = $root.google.maps.places.v1.PriceRange.toObject(message.priceRange, options);
|
|
9445
|
+
if (message.timeZone != null && message.hasOwnProperty("timeZone"))
|
|
9446
|
+
object.timeZone = $root.google.type.TimeZone.toObject(message.timeZone, options);
|
|
9447
|
+
if (message.postalAddress != null && message.hasOwnProperty("postalAddress"))
|
|
9448
|
+
object.postalAddress = $root.google.type.PostalAddress.toObject(message.postalAddress, options);
|
|
8273
9449
|
return object;
|
|
8274
9450
|
};
|
|
8275
9451
|
|