@googlemaps/places 1.7.0 → 1.9.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 +14 -0
- package/build/protos/google/maps/places/v1/attribution.proto +0 -1
- package/build/protos/google/maps/places/v1/content_block.proto +0 -1
- package/build/protos/google/maps/places/v1/contextual_content.proto +0 -1
- package/build/protos/google/maps/places/v1/ev_charging.proto +0 -1
- package/build/protos/google/maps/places/v1/fuel_options.proto +7 -2
- package/build/protos/google/maps/places/v1/geometry.proto +0 -1
- package/build/protos/google/maps/places/v1/photo.proto +0 -1
- package/build/protos/google/maps/places/v1/place.proto +39 -3
- package/build/protos/google/maps/places/v1/places_service.proto +22 -3
- package/build/protos/google/maps/places/v1/polyline.proto +0 -1
- package/build/protos/google/maps/places/v1/price_range.proto +39 -0
- package/build/protos/google/maps/places/v1/reference.proto +0 -1
- package/build/protos/google/maps/places/v1/review.proto +0 -1
- package/build/protos/google/maps/places/v1/route_modifiers.proto +0 -1
- package/build/protos/google/maps/places/v1/routing_preference.proto +0 -1
- package/build/protos/google/maps/places/v1/routing_summary.proto +9 -2
- package/build/protos/google/maps/places/v1/travel_mode.proto +0 -1
- package/build/protos/protos.d.ts +260 -1
- package/build/protos/protos.js +717 -2
- package/build/protos/protos.json +76 -1
- package/build/src/index.js +1 -1
- package/build/src/v1/index.js +1 -1
- package/build/src/v1/places_client.d.ts +16 -0
- package/build/src/v1/places_client.js +1 -1
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +2 -2
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -5358,6 +5358,7 @@
|
|
|
5358
5358
|
return "type: enum value expected";
|
|
5359
5359
|
case 0:
|
|
5360
5360
|
case 1:
|
|
5361
|
+
case 19:
|
|
5361
5362
|
case 2:
|
|
5362
5363
|
case 3:
|
|
5363
5364
|
case 4:
|
|
@@ -5372,6 +5373,7 @@
|
|
|
5372
5373
|
case 13:
|
|
5373
5374
|
case 14:
|
|
5374
5375
|
case 15:
|
|
5376
|
+
case 20:
|
|
5375
5377
|
case 16:
|
|
5376
5378
|
case 17:
|
|
5377
5379
|
case 18:
|
|
@@ -5417,6 +5419,10 @@
|
|
|
5417
5419
|
case 1:
|
|
5418
5420
|
message.type = 1;
|
|
5419
5421
|
break;
|
|
5422
|
+
case "DIESEL_PLUS":
|
|
5423
|
+
case 19:
|
|
5424
|
+
message.type = 19;
|
|
5425
|
+
break;
|
|
5420
5426
|
case "REGULAR_UNLEADED":
|
|
5421
5427
|
case 2:
|
|
5422
5428
|
message.type = 2;
|
|
@@ -5473,6 +5479,10 @@
|
|
|
5473
5479
|
case 15:
|
|
5474
5480
|
message.type = 15;
|
|
5475
5481
|
break;
|
|
5482
|
+
case "E100":
|
|
5483
|
+
case 20:
|
|
5484
|
+
message.type = 20;
|
|
5485
|
+
break;
|
|
5476
5486
|
case "METHANE":
|
|
5477
5487
|
case 16:
|
|
5478
5488
|
message.type = 16;
|
|
@@ -5558,6 +5568,7 @@
|
|
|
5558
5568
|
* @enum {number}
|
|
5559
5569
|
* @property {number} FUEL_TYPE_UNSPECIFIED=0 FUEL_TYPE_UNSPECIFIED value
|
|
5560
5570
|
* @property {number} DIESEL=1 DIESEL value
|
|
5571
|
+
* @property {number} DIESEL_PLUS=19 DIESEL_PLUS value
|
|
5561
5572
|
* @property {number} REGULAR_UNLEADED=2 REGULAR_UNLEADED value
|
|
5562
5573
|
* @property {number} MIDGRADE=3 MIDGRADE value
|
|
5563
5574
|
* @property {number} PREMIUM=4 PREMIUM value
|
|
@@ -5572,6 +5583,7 @@
|
|
|
5572
5583
|
* @property {number} LPG=13 LPG value
|
|
5573
5584
|
* @property {number} E80=14 E80 value
|
|
5574
5585
|
* @property {number} E85=15 E85 value
|
|
5586
|
+
* @property {number} E100=20 E100 value
|
|
5575
5587
|
* @property {number} METHANE=16 METHANE value
|
|
5576
5588
|
* @property {number} BIO_DIESEL=17 BIO_DIESEL value
|
|
5577
5589
|
* @property {number} TRUCK_DIESEL=18 TRUCK_DIESEL value
|
|
@@ -5580,6 +5592,7 @@
|
|
|
5580
5592
|
var valuesById = {}, values = Object.create(valuesById);
|
|
5581
5593
|
values[valuesById[0] = "FUEL_TYPE_UNSPECIFIED"] = 0;
|
|
5582
5594
|
values[valuesById[1] = "DIESEL"] = 1;
|
|
5595
|
+
values[valuesById[19] = "DIESEL_PLUS"] = 19;
|
|
5583
5596
|
values[valuesById[2] = "REGULAR_UNLEADED"] = 2;
|
|
5584
5597
|
values[valuesById[3] = "MIDGRADE"] = 3;
|
|
5585
5598
|
values[valuesById[4] = "PREMIUM"] = 4;
|
|
@@ -5594,6 +5607,7 @@
|
|
|
5594
5607
|
values[valuesById[13] = "LPG"] = 13;
|
|
5595
5608
|
values[valuesById[14] = "E80"] = 14;
|
|
5596
5609
|
values[valuesById[15] = "E85"] = 15;
|
|
5610
|
+
values[valuesById[20] = "E100"] = 20;
|
|
5597
5611
|
values[valuesById[16] = "METHANE"] = 16;
|
|
5598
5612
|
values[valuesById[17] = "BIO_DIESEL"] = 17;
|
|
5599
5613
|
values[valuesById[18] = "TRUCK_DIESEL"] = 18;
|
|
@@ -5907,6 +5921,9 @@
|
|
|
5907
5921
|
* @property {google.maps.places.v1.IEVChargeOptions|null} [evChargeOptions] Place evChargeOptions
|
|
5908
5922
|
* @property {google.maps.places.v1.Place.IGenerativeSummary|null} [generativeSummary] Place generativeSummary
|
|
5909
5923
|
* @property {google.maps.places.v1.Place.IAreaSummary|null} [areaSummary] Place areaSummary
|
|
5924
|
+
* @property {Array.<google.maps.places.v1.Place.IContainingPlace>|null} [containingPlaces] Place containingPlaces
|
|
5925
|
+
* @property {boolean|null} [pureServiceAreaBusiness] Place pureServiceAreaBusiness
|
|
5926
|
+
* @property {google.maps.places.v1.IPriceRange|null} [priceRange] Place priceRange
|
|
5910
5927
|
*/
|
|
5911
5928
|
|
|
5912
5929
|
/**
|
|
@@ -5926,6 +5943,7 @@
|
|
|
5926
5943
|
this.currentSecondaryOpeningHours = [];
|
|
5927
5944
|
this.regularSecondaryOpeningHours = [];
|
|
5928
5945
|
this.subDestinations = [];
|
|
5946
|
+
this.containingPlaces = [];
|
|
5929
5947
|
if (properties)
|
|
5930
5948
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5931
5949
|
if (properties[keys[i]] != null)
|
|
@@ -6436,6 +6454,30 @@
|
|
|
6436
6454
|
*/
|
|
6437
6455
|
Place.prototype.areaSummary = null;
|
|
6438
6456
|
|
|
6457
|
+
/**
|
|
6458
|
+
* Place containingPlaces.
|
|
6459
|
+
* @member {Array.<google.maps.places.v1.Place.IContainingPlace>} containingPlaces
|
|
6460
|
+
* @memberof google.maps.places.v1.Place
|
|
6461
|
+
* @instance
|
|
6462
|
+
*/
|
|
6463
|
+
Place.prototype.containingPlaces = $util.emptyArray;
|
|
6464
|
+
|
|
6465
|
+
/**
|
|
6466
|
+
* Place pureServiceAreaBusiness.
|
|
6467
|
+
* @member {boolean|null|undefined} pureServiceAreaBusiness
|
|
6468
|
+
* @memberof google.maps.places.v1.Place
|
|
6469
|
+
* @instance
|
|
6470
|
+
*/
|
|
6471
|
+
Place.prototype.pureServiceAreaBusiness = null;
|
|
6472
|
+
|
|
6473
|
+
/**
|
|
6474
|
+
* Place priceRange.
|
|
6475
|
+
* @member {google.maps.places.v1.IPriceRange|null|undefined} priceRange
|
|
6476
|
+
* @memberof google.maps.places.v1.Place
|
|
6477
|
+
* @instance
|
|
6478
|
+
*/
|
|
6479
|
+
Place.prototype.priceRange = null;
|
|
6480
|
+
|
|
6439
6481
|
// OneOf field names bound to virtual getters and setters
|
|
6440
6482
|
var $oneOfFields;
|
|
6441
6483
|
|
|
@@ -6725,6 +6767,17 @@
|
|
|
6725
6767
|
set: $util.oneOfSetter($oneOfFields)
|
|
6726
6768
|
});
|
|
6727
6769
|
|
|
6770
|
+
/**
|
|
6771
|
+
* Place _pureServiceAreaBusiness.
|
|
6772
|
+
* @member {"pureServiceAreaBusiness"|undefined} _pureServiceAreaBusiness
|
|
6773
|
+
* @memberof google.maps.places.v1.Place
|
|
6774
|
+
* @instance
|
|
6775
|
+
*/
|
|
6776
|
+
Object.defineProperty(Place.prototype, "_pureServiceAreaBusiness", {
|
|
6777
|
+
get: $util.oneOfGetter($oneOfFields = ["pureServiceAreaBusiness"]),
|
|
6778
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6779
|
+
});
|
|
6780
|
+
|
|
6728
6781
|
/**
|
|
6729
6782
|
* Creates a new Place instance using the specified properties.
|
|
6730
6783
|
* @function create
|
|
@@ -6883,6 +6936,13 @@
|
|
|
6883
6936
|
$root.google.maps.places.v1.Place.GenerativeSummary.encode(message.generativeSummary, writer.uint32(/* id 80, wireType 2 =*/642).fork()).ldelim();
|
|
6884
6937
|
if (message.areaSummary != null && Object.hasOwnProperty.call(message, "areaSummary"))
|
|
6885
6938
|
$root.google.maps.places.v1.Place.AreaSummary.encode(message.areaSummary, writer.uint32(/* id 81, wireType 2 =*/650).fork()).ldelim();
|
|
6939
|
+
if (message.containingPlaces != null && message.containingPlaces.length)
|
|
6940
|
+
for (var i = 0; i < message.containingPlaces.length; ++i)
|
|
6941
|
+
$root.google.maps.places.v1.Place.ContainingPlace.encode(message.containingPlaces[i], writer.uint32(/* id 82, wireType 2 =*/658).fork()).ldelim();
|
|
6942
|
+
if (message.pureServiceAreaBusiness != null && Object.hasOwnProperty.call(message, "pureServiceAreaBusiness"))
|
|
6943
|
+
writer.uint32(/* id 83, wireType 0 =*/664).bool(message.pureServiceAreaBusiness);
|
|
6944
|
+
if (message.priceRange != null && Object.hasOwnProperty.call(message, "priceRange"))
|
|
6945
|
+
$root.google.maps.places.v1.PriceRange.encode(message.priceRange, writer.uint32(/* id 86, wireType 2 =*/690).fork()).ldelim();
|
|
6886
6946
|
return writer;
|
|
6887
6947
|
};
|
|
6888
6948
|
|
|
@@ -7185,6 +7245,20 @@
|
|
|
7185
7245
|
message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.decode(reader, reader.uint32());
|
|
7186
7246
|
break;
|
|
7187
7247
|
}
|
|
7248
|
+
case 82: {
|
|
7249
|
+
if (!(message.containingPlaces && message.containingPlaces.length))
|
|
7250
|
+
message.containingPlaces = [];
|
|
7251
|
+
message.containingPlaces.push($root.google.maps.places.v1.Place.ContainingPlace.decode(reader, reader.uint32()));
|
|
7252
|
+
break;
|
|
7253
|
+
}
|
|
7254
|
+
case 83: {
|
|
7255
|
+
message.pureServiceAreaBusiness = reader.bool();
|
|
7256
|
+
break;
|
|
7257
|
+
}
|
|
7258
|
+
case 86: {
|
|
7259
|
+
message.priceRange = $root.google.maps.places.v1.PriceRange.decode(reader, reader.uint32());
|
|
7260
|
+
break;
|
|
7261
|
+
}
|
|
7188
7262
|
default:
|
|
7189
7263
|
reader.skipType(tag & 7);
|
|
7190
7264
|
break;
|
|
@@ -7555,6 +7629,25 @@
|
|
|
7555
7629
|
if (error)
|
|
7556
7630
|
return "areaSummary." + error;
|
|
7557
7631
|
}
|
|
7632
|
+
if (message.containingPlaces != null && message.hasOwnProperty("containingPlaces")) {
|
|
7633
|
+
if (!Array.isArray(message.containingPlaces))
|
|
7634
|
+
return "containingPlaces: array expected";
|
|
7635
|
+
for (var i = 0; i < message.containingPlaces.length; ++i) {
|
|
7636
|
+
var error = $root.google.maps.places.v1.Place.ContainingPlace.verify(message.containingPlaces[i]);
|
|
7637
|
+
if (error)
|
|
7638
|
+
return "containingPlaces." + error;
|
|
7639
|
+
}
|
|
7640
|
+
}
|
|
7641
|
+
if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) {
|
|
7642
|
+
properties._pureServiceAreaBusiness = 1;
|
|
7643
|
+
if (typeof message.pureServiceAreaBusiness !== "boolean")
|
|
7644
|
+
return "pureServiceAreaBusiness: boolean expected";
|
|
7645
|
+
}
|
|
7646
|
+
if (message.priceRange != null && message.hasOwnProperty("priceRange")) {
|
|
7647
|
+
var error = $root.google.maps.places.v1.PriceRange.verify(message.priceRange);
|
|
7648
|
+
if (error)
|
|
7649
|
+
return "priceRange." + error;
|
|
7650
|
+
}
|
|
7558
7651
|
return null;
|
|
7559
7652
|
};
|
|
7560
7653
|
|
|
@@ -7854,6 +7947,23 @@
|
|
|
7854
7947
|
throw TypeError(".google.maps.places.v1.Place.areaSummary: object expected");
|
|
7855
7948
|
message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.fromObject(object.areaSummary);
|
|
7856
7949
|
}
|
|
7950
|
+
if (object.containingPlaces) {
|
|
7951
|
+
if (!Array.isArray(object.containingPlaces))
|
|
7952
|
+
throw TypeError(".google.maps.places.v1.Place.containingPlaces: array expected");
|
|
7953
|
+
message.containingPlaces = [];
|
|
7954
|
+
for (var i = 0; i < object.containingPlaces.length; ++i) {
|
|
7955
|
+
if (typeof object.containingPlaces[i] !== "object")
|
|
7956
|
+
throw TypeError(".google.maps.places.v1.Place.containingPlaces: object expected");
|
|
7957
|
+
message.containingPlaces[i] = $root.google.maps.places.v1.Place.ContainingPlace.fromObject(object.containingPlaces[i]);
|
|
7958
|
+
}
|
|
7959
|
+
}
|
|
7960
|
+
if (object.pureServiceAreaBusiness != null)
|
|
7961
|
+
message.pureServiceAreaBusiness = Boolean(object.pureServiceAreaBusiness);
|
|
7962
|
+
if (object.priceRange != null) {
|
|
7963
|
+
if (typeof object.priceRange !== "object")
|
|
7964
|
+
throw TypeError(".google.maps.places.v1.Place.priceRange: object expected");
|
|
7965
|
+
message.priceRange = $root.google.maps.places.v1.PriceRange.fromObject(object.priceRange);
|
|
7966
|
+
}
|
|
7857
7967
|
return message;
|
|
7858
7968
|
};
|
|
7859
7969
|
|
|
@@ -7879,6 +7989,7 @@
|
|
|
7879
7989
|
object.reviews = [];
|
|
7880
7990
|
object.photos = [];
|
|
7881
7991
|
object.subDestinations = [];
|
|
7992
|
+
object.containingPlaces = [];
|
|
7882
7993
|
}
|
|
7883
7994
|
if (options.defaults) {
|
|
7884
7995
|
object.name = "";
|
|
@@ -7910,6 +8021,7 @@
|
|
|
7910
8021
|
object.evChargeOptions = null;
|
|
7911
8022
|
object.generativeSummary = null;
|
|
7912
8023
|
object.areaSummary = null;
|
|
8024
|
+
object.priceRange = null;
|
|
7913
8025
|
}
|
|
7914
8026
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
7915
8027
|
object.name = message.name;
|
|
@@ -8139,6 +8251,18 @@
|
|
|
8139
8251
|
object.generativeSummary = $root.google.maps.places.v1.Place.GenerativeSummary.toObject(message.generativeSummary, options);
|
|
8140
8252
|
if (message.areaSummary != null && message.hasOwnProperty("areaSummary"))
|
|
8141
8253
|
object.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.toObject(message.areaSummary, options);
|
|
8254
|
+
if (message.containingPlaces && message.containingPlaces.length) {
|
|
8255
|
+
object.containingPlaces = [];
|
|
8256
|
+
for (var j = 0; j < message.containingPlaces.length; ++j)
|
|
8257
|
+
object.containingPlaces[j] = $root.google.maps.places.v1.Place.ContainingPlace.toObject(message.containingPlaces[j], options);
|
|
8258
|
+
}
|
|
8259
|
+
if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) {
|
|
8260
|
+
object.pureServiceAreaBusiness = message.pureServiceAreaBusiness;
|
|
8261
|
+
if (options.oneofs)
|
|
8262
|
+
object._pureServiceAreaBusiness = "pureServiceAreaBusiness";
|
|
8263
|
+
}
|
|
8264
|
+
if (message.priceRange != null && message.hasOwnProperty("priceRange"))
|
|
8265
|
+
object.priceRange = $root.google.maps.places.v1.PriceRange.toObject(message.priceRange, options);
|
|
8142
8266
|
return object;
|
|
8143
8267
|
};
|
|
8144
8268
|
|
|
@@ -8696,6 +8820,8 @@
|
|
|
8696
8820
|
* @property {Array.<string>|null} [weekdayDescriptions] OpeningHours weekdayDescriptions
|
|
8697
8821
|
* @property {google.maps.places.v1.Place.OpeningHours.SecondaryHoursType|null} [secondaryHoursType] OpeningHours secondaryHoursType
|
|
8698
8822
|
* @property {Array.<google.maps.places.v1.Place.OpeningHours.ISpecialDay>|null} [specialDays] OpeningHours specialDays
|
|
8823
|
+
* @property {google.protobuf.ITimestamp|null} [nextOpenTime] OpeningHours nextOpenTime
|
|
8824
|
+
* @property {google.protobuf.ITimestamp|null} [nextCloseTime] OpeningHours nextCloseTime
|
|
8699
8825
|
*/
|
|
8700
8826
|
|
|
8701
8827
|
/**
|
|
@@ -8756,6 +8882,22 @@
|
|
|
8756
8882
|
*/
|
|
8757
8883
|
OpeningHours.prototype.specialDays = $util.emptyArray;
|
|
8758
8884
|
|
|
8885
|
+
/**
|
|
8886
|
+
* OpeningHours nextOpenTime.
|
|
8887
|
+
* @member {google.protobuf.ITimestamp|null|undefined} nextOpenTime
|
|
8888
|
+
* @memberof google.maps.places.v1.Place.OpeningHours
|
|
8889
|
+
* @instance
|
|
8890
|
+
*/
|
|
8891
|
+
OpeningHours.prototype.nextOpenTime = null;
|
|
8892
|
+
|
|
8893
|
+
/**
|
|
8894
|
+
* OpeningHours nextCloseTime.
|
|
8895
|
+
* @member {google.protobuf.ITimestamp|null|undefined} nextCloseTime
|
|
8896
|
+
* @memberof google.maps.places.v1.Place.OpeningHours
|
|
8897
|
+
* @instance
|
|
8898
|
+
*/
|
|
8899
|
+
OpeningHours.prototype.nextCloseTime = null;
|
|
8900
|
+
|
|
8759
8901
|
// OneOf field names bound to virtual getters and setters
|
|
8760
8902
|
var $oneOfFields;
|
|
8761
8903
|
|
|
@@ -8807,6 +8949,10 @@
|
|
|
8807
8949
|
if (message.specialDays != null && message.specialDays.length)
|
|
8808
8950
|
for (var i = 0; i < message.specialDays.length; ++i)
|
|
8809
8951
|
$root.google.maps.places.v1.Place.OpeningHours.SpecialDay.encode(message.specialDays[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
8952
|
+
if (message.nextOpenTime != null && Object.hasOwnProperty.call(message, "nextOpenTime"))
|
|
8953
|
+
$root.google.protobuf.Timestamp.encode(message.nextOpenTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
8954
|
+
if (message.nextCloseTime != null && Object.hasOwnProperty.call(message, "nextCloseTime"))
|
|
8955
|
+
$root.google.protobuf.Timestamp.encode(message.nextCloseTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
8810
8956
|
return writer;
|
|
8811
8957
|
};
|
|
8812
8958
|
|
|
@@ -8867,6 +9013,14 @@
|
|
|
8867
9013
|
message.specialDays.push($root.google.maps.places.v1.Place.OpeningHours.SpecialDay.decode(reader, reader.uint32()));
|
|
8868
9014
|
break;
|
|
8869
9015
|
}
|
|
9016
|
+
case 6: {
|
|
9017
|
+
message.nextOpenTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
9018
|
+
break;
|
|
9019
|
+
}
|
|
9020
|
+
case 7: {
|
|
9021
|
+
message.nextCloseTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
9022
|
+
break;
|
|
9023
|
+
}
|
|
8870
9024
|
default:
|
|
8871
9025
|
reader.skipType(tag & 7);
|
|
8872
9026
|
break;
|
|
@@ -8953,6 +9107,16 @@
|
|
|
8953
9107
|
return "specialDays." + error;
|
|
8954
9108
|
}
|
|
8955
9109
|
}
|
|
9110
|
+
if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime")) {
|
|
9111
|
+
var error = $root.google.protobuf.Timestamp.verify(message.nextOpenTime);
|
|
9112
|
+
if (error)
|
|
9113
|
+
return "nextOpenTime." + error;
|
|
9114
|
+
}
|
|
9115
|
+
if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime")) {
|
|
9116
|
+
var error = $root.google.protobuf.Timestamp.verify(message.nextCloseTime);
|
|
9117
|
+
if (error)
|
|
9118
|
+
return "nextCloseTime." + error;
|
|
9119
|
+
}
|
|
8956
9120
|
return null;
|
|
8957
9121
|
};
|
|
8958
9122
|
|
|
@@ -9061,6 +9225,16 @@
|
|
|
9061
9225
|
message.specialDays[i] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.fromObject(object.specialDays[i]);
|
|
9062
9226
|
}
|
|
9063
9227
|
}
|
|
9228
|
+
if (object.nextOpenTime != null) {
|
|
9229
|
+
if (typeof object.nextOpenTime !== "object")
|
|
9230
|
+
throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextOpenTime: object expected");
|
|
9231
|
+
message.nextOpenTime = $root.google.protobuf.Timestamp.fromObject(object.nextOpenTime);
|
|
9232
|
+
}
|
|
9233
|
+
if (object.nextCloseTime != null) {
|
|
9234
|
+
if (typeof object.nextCloseTime !== "object")
|
|
9235
|
+
throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextCloseTime: object expected");
|
|
9236
|
+
message.nextCloseTime = $root.google.protobuf.Timestamp.fromObject(object.nextCloseTime);
|
|
9237
|
+
}
|
|
9064
9238
|
return message;
|
|
9065
9239
|
};
|
|
9066
9240
|
|
|
@@ -9082,8 +9256,11 @@
|
|
|
9082
9256
|
object.weekdayDescriptions = [];
|
|
9083
9257
|
object.specialDays = [];
|
|
9084
9258
|
}
|
|
9085
|
-
if (options.defaults)
|
|
9259
|
+
if (options.defaults) {
|
|
9086
9260
|
object.secondaryHoursType = options.enums === String ? "SECONDARY_HOURS_TYPE_UNSPECIFIED" : 0;
|
|
9261
|
+
object.nextOpenTime = null;
|
|
9262
|
+
object.nextCloseTime = null;
|
|
9263
|
+
}
|
|
9087
9264
|
if (message.openNow != null && message.hasOwnProperty("openNow")) {
|
|
9088
9265
|
object.openNow = message.openNow;
|
|
9089
9266
|
if (options.oneofs)
|
|
@@ -9106,6 +9283,10 @@
|
|
|
9106
9283
|
for (var j = 0; j < message.specialDays.length; ++j)
|
|
9107
9284
|
object.specialDays[j] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.toObject(message.specialDays[j], options);
|
|
9108
9285
|
}
|
|
9286
|
+
if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime"))
|
|
9287
|
+
object.nextOpenTime = $root.google.protobuf.Timestamp.toObject(message.nextOpenTime, options);
|
|
9288
|
+
if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime"))
|
|
9289
|
+
object.nextCloseTime = $root.google.protobuf.Timestamp.toObject(message.nextCloseTime, options);
|
|
9109
9290
|
return object;
|
|
9110
9291
|
};
|
|
9111
9292
|
|
|
@@ -12051,6 +12232,233 @@
|
|
|
12051
12232
|
return AreaSummary;
|
|
12052
12233
|
})();
|
|
12053
12234
|
|
|
12235
|
+
Place.ContainingPlace = (function() {
|
|
12236
|
+
|
|
12237
|
+
/**
|
|
12238
|
+
* Properties of a ContainingPlace.
|
|
12239
|
+
* @memberof google.maps.places.v1.Place
|
|
12240
|
+
* @interface IContainingPlace
|
|
12241
|
+
* @property {string|null} [name] ContainingPlace name
|
|
12242
|
+
* @property {string|null} [id] ContainingPlace id
|
|
12243
|
+
*/
|
|
12244
|
+
|
|
12245
|
+
/**
|
|
12246
|
+
* Constructs a new ContainingPlace.
|
|
12247
|
+
* @memberof google.maps.places.v1.Place
|
|
12248
|
+
* @classdesc Represents a ContainingPlace.
|
|
12249
|
+
* @implements IContainingPlace
|
|
12250
|
+
* @constructor
|
|
12251
|
+
* @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set
|
|
12252
|
+
*/
|
|
12253
|
+
function ContainingPlace(properties) {
|
|
12254
|
+
if (properties)
|
|
12255
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12256
|
+
if (properties[keys[i]] != null)
|
|
12257
|
+
this[keys[i]] = properties[keys[i]];
|
|
12258
|
+
}
|
|
12259
|
+
|
|
12260
|
+
/**
|
|
12261
|
+
* ContainingPlace name.
|
|
12262
|
+
* @member {string} name
|
|
12263
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12264
|
+
* @instance
|
|
12265
|
+
*/
|
|
12266
|
+
ContainingPlace.prototype.name = "";
|
|
12267
|
+
|
|
12268
|
+
/**
|
|
12269
|
+
* ContainingPlace id.
|
|
12270
|
+
* @member {string} id
|
|
12271
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12272
|
+
* @instance
|
|
12273
|
+
*/
|
|
12274
|
+
ContainingPlace.prototype.id = "";
|
|
12275
|
+
|
|
12276
|
+
/**
|
|
12277
|
+
* Creates a new ContainingPlace instance using the specified properties.
|
|
12278
|
+
* @function create
|
|
12279
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12280
|
+
* @static
|
|
12281
|
+
* @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set
|
|
12282
|
+
* @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace instance
|
|
12283
|
+
*/
|
|
12284
|
+
ContainingPlace.create = function create(properties) {
|
|
12285
|
+
return new ContainingPlace(properties);
|
|
12286
|
+
};
|
|
12287
|
+
|
|
12288
|
+
/**
|
|
12289
|
+
* Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
|
|
12290
|
+
* @function encode
|
|
12291
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12292
|
+
* @static
|
|
12293
|
+
* @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode
|
|
12294
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12295
|
+
* @returns {$protobuf.Writer} Writer
|
|
12296
|
+
*/
|
|
12297
|
+
ContainingPlace.encode = function encode(message, writer) {
|
|
12298
|
+
if (!writer)
|
|
12299
|
+
writer = $Writer.create();
|
|
12300
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
12301
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
12302
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
12303
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
|
|
12304
|
+
return writer;
|
|
12305
|
+
};
|
|
12306
|
+
|
|
12307
|
+
/**
|
|
12308
|
+
* Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
|
|
12309
|
+
* @function encodeDelimited
|
|
12310
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12311
|
+
* @static
|
|
12312
|
+
* @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode
|
|
12313
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12314
|
+
* @returns {$protobuf.Writer} Writer
|
|
12315
|
+
*/
|
|
12316
|
+
ContainingPlace.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12317
|
+
return this.encode(message, writer).ldelim();
|
|
12318
|
+
};
|
|
12319
|
+
|
|
12320
|
+
/**
|
|
12321
|
+
* Decodes a ContainingPlace message from the specified reader or buffer.
|
|
12322
|
+
* @function decode
|
|
12323
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12324
|
+
* @static
|
|
12325
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12326
|
+
* @param {number} [length] Message length if known beforehand
|
|
12327
|
+
* @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
|
|
12328
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12329
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12330
|
+
*/
|
|
12331
|
+
ContainingPlace.decode = function decode(reader, length) {
|
|
12332
|
+
if (!(reader instanceof $Reader))
|
|
12333
|
+
reader = $Reader.create(reader);
|
|
12334
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ContainingPlace();
|
|
12335
|
+
while (reader.pos < end) {
|
|
12336
|
+
var tag = reader.uint32();
|
|
12337
|
+
switch (tag >>> 3) {
|
|
12338
|
+
case 1: {
|
|
12339
|
+
message.name = reader.string();
|
|
12340
|
+
break;
|
|
12341
|
+
}
|
|
12342
|
+
case 2: {
|
|
12343
|
+
message.id = reader.string();
|
|
12344
|
+
break;
|
|
12345
|
+
}
|
|
12346
|
+
default:
|
|
12347
|
+
reader.skipType(tag & 7);
|
|
12348
|
+
break;
|
|
12349
|
+
}
|
|
12350
|
+
}
|
|
12351
|
+
return message;
|
|
12352
|
+
};
|
|
12353
|
+
|
|
12354
|
+
/**
|
|
12355
|
+
* Decodes a ContainingPlace message from the specified reader or buffer, length delimited.
|
|
12356
|
+
* @function decodeDelimited
|
|
12357
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12358
|
+
* @static
|
|
12359
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12360
|
+
* @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
|
|
12361
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12362
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12363
|
+
*/
|
|
12364
|
+
ContainingPlace.decodeDelimited = function decodeDelimited(reader) {
|
|
12365
|
+
if (!(reader instanceof $Reader))
|
|
12366
|
+
reader = new $Reader(reader);
|
|
12367
|
+
return this.decode(reader, reader.uint32());
|
|
12368
|
+
};
|
|
12369
|
+
|
|
12370
|
+
/**
|
|
12371
|
+
* Verifies a ContainingPlace message.
|
|
12372
|
+
* @function verify
|
|
12373
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12374
|
+
* @static
|
|
12375
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12376
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12377
|
+
*/
|
|
12378
|
+
ContainingPlace.verify = function verify(message) {
|
|
12379
|
+
if (typeof message !== "object" || message === null)
|
|
12380
|
+
return "object expected";
|
|
12381
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12382
|
+
if (!$util.isString(message.name))
|
|
12383
|
+
return "name: string expected";
|
|
12384
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
12385
|
+
if (!$util.isString(message.id))
|
|
12386
|
+
return "id: string expected";
|
|
12387
|
+
return null;
|
|
12388
|
+
};
|
|
12389
|
+
|
|
12390
|
+
/**
|
|
12391
|
+
* Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types.
|
|
12392
|
+
* @function fromObject
|
|
12393
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12394
|
+
* @static
|
|
12395
|
+
* @param {Object.<string,*>} object Plain object
|
|
12396
|
+
* @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
|
|
12397
|
+
*/
|
|
12398
|
+
ContainingPlace.fromObject = function fromObject(object) {
|
|
12399
|
+
if (object instanceof $root.google.maps.places.v1.Place.ContainingPlace)
|
|
12400
|
+
return object;
|
|
12401
|
+
var message = new $root.google.maps.places.v1.Place.ContainingPlace();
|
|
12402
|
+
if (object.name != null)
|
|
12403
|
+
message.name = String(object.name);
|
|
12404
|
+
if (object.id != null)
|
|
12405
|
+
message.id = String(object.id);
|
|
12406
|
+
return message;
|
|
12407
|
+
};
|
|
12408
|
+
|
|
12409
|
+
/**
|
|
12410
|
+
* Creates a plain object from a ContainingPlace message. Also converts values to other types if specified.
|
|
12411
|
+
* @function toObject
|
|
12412
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12413
|
+
* @static
|
|
12414
|
+
* @param {google.maps.places.v1.Place.ContainingPlace} message ContainingPlace
|
|
12415
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12416
|
+
* @returns {Object.<string,*>} Plain object
|
|
12417
|
+
*/
|
|
12418
|
+
ContainingPlace.toObject = function toObject(message, options) {
|
|
12419
|
+
if (!options)
|
|
12420
|
+
options = {};
|
|
12421
|
+
var object = {};
|
|
12422
|
+
if (options.defaults) {
|
|
12423
|
+
object.name = "";
|
|
12424
|
+
object.id = "";
|
|
12425
|
+
}
|
|
12426
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12427
|
+
object.name = message.name;
|
|
12428
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
12429
|
+
object.id = message.id;
|
|
12430
|
+
return object;
|
|
12431
|
+
};
|
|
12432
|
+
|
|
12433
|
+
/**
|
|
12434
|
+
* Converts this ContainingPlace to JSON.
|
|
12435
|
+
* @function toJSON
|
|
12436
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12437
|
+
* @instance
|
|
12438
|
+
* @returns {Object.<string,*>} JSON object
|
|
12439
|
+
*/
|
|
12440
|
+
ContainingPlace.prototype.toJSON = function toJSON() {
|
|
12441
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12442
|
+
};
|
|
12443
|
+
|
|
12444
|
+
/**
|
|
12445
|
+
* Gets the default type url for ContainingPlace
|
|
12446
|
+
* @function getTypeUrl
|
|
12447
|
+
* @memberof google.maps.places.v1.Place.ContainingPlace
|
|
12448
|
+
* @static
|
|
12449
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12450
|
+
* @returns {string} The default type url
|
|
12451
|
+
*/
|
|
12452
|
+
ContainingPlace.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12453
|
+
if (typeUrlPrefix === undefined) {
|
|
12454
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
12455
|
+
}
|
|
12456
|
+
return typeUrlPrefix + "/google.maps.places.v1.Place.ContainingPlace";
|
|
12457
|
+
};
|
|
12458
|
+
|
|
12459
|
+
return ContainingPlace;
|
|
12460
|
+
})();
|
|
12461
|
+
|
|
12054
12462
|
return Place;
|
|
12055
12463
|
})();
|
|
12056
12464
|
|
|
@@ -12076,6 +12484,243 @@
|
|
|
12076
12484
|
return values;
|
|
12077
12485
|
})();
|
|
12078
12486
|
|
|
12487
|
+
v1.PriceRange = (function() {
|
|
12488
|
+
|
|
12489
|
+
/**
|
|
12490
|
+
* Properties of a PriceRange.
|
|
12491
|
+
* @memberof google.maps.places.v1
|
|
12492
|
+
* @interface IPriceRange
|
|
12493
|
+
* @property {google.type.IMoney|null} [startPrice] PriceRange startPrice
|
|
12494
|
+
* @property {google.type.IMoney|null} [endPrice] PriceRange endPrice
|
|
12495
|
+
*/
|
|
12496
|
+
|
|
12497
|
+
/**
|
|
12498
|
+
* Constructs a new PriceRange.
|
|
12499
|
+
* @memberof google.maps.places.v1
|
|
12500
|
+
* @classdesc Represents a PriceRange.
|
|
12501
|
+
* @implements IPriceRange
|
|
12502
|
+
* @constructor
|
|
12503
|
+
* @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set
|
|
12504
|
+
*/
|
|
12505
|
+
function PriceRange(properties) {
|
|
12506
|
+
if (properties)
|
|
12507
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12508
|
+
if (properties[keys[i]] != null)
|
|
12509
|
+
this[keys[i]] = properties[keys[i]];
|
|
12510
|
+
}
|
|
12511
|
+
|
|
12512
|
+
/**
|
|
12513
|
+
* PriceRange startPrice.
|
|
12514
|
+
* @member {google.type.IMoney|null|undefined} startPrice
|
|
12515
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12516
|
+
* @instance
|
|
12517
|
+
*/
|
|
12518
|
+
PriceRange.prototype.startPrice = null;
|
|
12519
|
+
|
|
12520
|
+
/**
|
|
12521
|
+
* PriceRange endPrice.
|
|
12522
|
+
* @member {google.type.IMoney|null|undefined} endPrice
|
|
12523
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12524
|
+
* @instance
|
|
12525
|
+
*/
|
|
12526
|
+
PriceRange.prototype.endPrice = null;
|
|
12527
|
+
|
|
12528
|
+
/**
|
|
12529
|
+
* Creates a new PriceRange instance using the specified properties.
|
|
12530
|
+
* @function create
|
|
12531
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12532
|
+
* @static
|
|
12533
|
+
* @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set
|
|
12534
|
+
* @returns {google.maps.places.v1.PriceRange} PriceRange instance
|
|
12535
|
+
*/
|
|
12536
|
+
PriceRange.create = function create(properties) {
|
|
12537
|
+
return new PriceRange(properties);
|
|
12538
|
+
};
|
|
12539
|
+
|
|
12540
|
+
/**
|
|
12541
|
+
* Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
|
|
12542
|
+
* @function encode
|
|
12543
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12544
|
+
* @static
|
|
12545
|
+
* @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode
|
|
12546
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12547
|
+
* @returns {$protobuf.Writer} Writer
|
|
12548
|
+
*/
|
|
12549
|
+
PriceRange.encode = function encode(message, writer) {
|
|
12550
|
+
if (!writer)
|
|
12551
|
+
writer = $Writer.create();
|
|
12552
|
+
if (message.startPrice != null && Object.hasOwnProperty.call(message, "startPrice"))
|
|
12553
|
+
$root.google.type.Money.encode(message.startPrice, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12554
|
+
if (message.endPrice != null && Object.hasOwnProperty.call(message, "endPrice"))
|
|
12555
|
+
$root.google.type.Money.encode(message.endPrice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
12556
|
+
return writer;
|
|
12557
|
+
};
|
|
12558
|
+
|
|
12559
|
+
/**
|
|
12560
|
+
* Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
|
|
12561
|
+
* @function encodeDelimited
|
|
12562
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12563
|
+
* @static
|
|
12564
|
+
* @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode
|
|
12565
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12566
|
+
* @returns {$protobuf.Writer} Writer
|
|
12567
|
+
*/
|
|
12568
|
+
PriceRange.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12569
|
+
return this.encode(message, writer).ldelim();
|
|
12570
|
+
};
|
|
12571
|
+
|
|
12572
|
+
/**
|
|
12573
|
+
* Decodes a PriceRange message from the specified reader or buffer.
|
|
12574
|
+
* @function decode
|
|
12575
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12576
|
+
* @static
|
|
12577
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12578
|
+
* @param {number} [length] Message length if known beforehand
|
|
12579
|
+
* @returns {google.maps.places.v1.PriceRange} PriceRange
|
|
12580
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12581
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12582
|
+
*/
|
|
12583
|
+
PriceRange.decode = function decode(reader, length) {
|
|
12584
|
+
if (!(reader instanceof $Reader))
|
|
12585
|
+
reader = $Reader.create(reader);
|
|
12586
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.PriceRange();
|
|
12587
|
+
while (reader.pos < end) {
|
|
12588
|
+
var tag = reader.uint32();
|
|
12589
|
+
switch (tag >>> 3) {
|
|
12590
|
+
case 1: {
|
|
12591
|
+
message.startPrice = $root.google.type.Money.decode(reader, reader.uint32());
|
|
12592
|
+
break;
|
|
12593
|
+
}
|
|
12594
|
+
case 2: {
|
|
12595
|
+
message.endPrice = $root.google.type.Money.decode(reader, reader.uint32());
|
|
12596
|
+
break;
|
|
12597
|
+
}
|
|
12598
|
+
default:
|
|
12599
|
+
reader.skipType(tag & 7);
|
|
12600
|
+
break;
|
|
12601
|
+
}
|
|
12602
|
+
}
|
|
12603
|
+
return message;
|
|
12604
|
+
};
|
|
12605
|
+
|
|
12606
|
+
/**
|
|
12607
|
+
* Decodes a PriceRange message from the specified reader or buffer, length delimited.
|
|
12608
|
+
* @function decodeDelimited
|
|
12609
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12610
|
+
* @static
|
|
12611
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12612
|
+
* @returns {google.maps.places.v1.PriceRange} PriceRange
|
|
12613
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12614
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12615
|
+
*/
|
|
12616
|
+
PriceRange.decodeDelimited = function decodeDelimited(reader) {
|
|
12617
|
+
if (!(reader instanceof $Reader))
|
|
12618
|
+
reader = new $Reader(reader);
|
|
12619
|
+
return this.decode(reader, reader.uint32());
|
|
12620
|
+
};
|
|
12621
|
+
|
|
12622
|
+
/**
|
|
12623
|
+
* Verifies a PriceRange message.
|
|
12624
|
+
* @function verify
|
|
12625
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12626
|
+
* @static
|
|
12627
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12628
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12629
|
+
*/
|
|
12630
|
+
PriceRange.verify = function verify(message) {
|
|
12631
|
+
if (typeof message !== "object" || message === null)
|
|
12632
|
+
return "object expected";
|
|
12633
|
+
if (message.startPrice != null && message.hasOwnProperty("startPrice")) {
|
|
12634
|
+
var error = $root.google.type.Money.verify(message.startPrice);
|
|
12635
|
+
if (error)
|
|
12636
|
+
return "startPrice." + error;
|
|
12637
|
+
}
|
|
12638
|
+
if (message.endPrice != null && message.hasOwnProperty("endPrice")) {
|
|
12639
|
+
var error = $root.google.type.Money.verify(message.endPrice);
|
|
12640
|
+
if (error)
|
|
12641
|
+
return "endPrice." + error;
|
|
12642
|
+
}
|
|
12643
|
+
return null;
|
|
12644
|
+
};
|
|
12645
|
+
|
|
12646
|
+
/**
|
|
12647
|
+
* Creates a PriceRange message from a plain object. Also converts values to their respective internal types.
|
|
12648
|
+
* @function fromObject
|
|
12649
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12650
|
+
* @static
|
|
12651
|
+
* @param {Object.<string,*>} object Plain object
|
|
12652
|
+
* @returns {google.maps.places.v1.PriceRange} PriceRange
|
|
12653
|
+
*/
|
|
12654
|
+
PriceRange.fromObject = function fromObject(object) {
|
|
12655
|
+
if (object instanceof $root.google.maps.places.v1.PriceRange)
|
|
12656
|
+
return object;
|
|
12657
|
+
var message = new $root.google.maps.places.v1.PriceRange();
|
|
12658
|
+
if (object.startPrice != null) {
|
|
12659
|
+
if (typeof object.startPrice !== "object")
|
|
12660
|
+
throw TypeError(".google.maps.places.v1.PriceRange.startPrice: object expected");
|
|
12661
|
+
message.startPrice = $root.google.type.Money.fromObject(object.startPrice);
|
|
12662
|
+
}
|
|
12663
|
+
if (object.endPrice != null) {
|
|
12664
|
+
if (typeof object.endPrice !== "object")
|
|
12665
|
+
throw TypeError(".google.maps.places.v1.PriceRange.endPrice: object expected");
|
|
12666
|
+
message.endPrice = $root.google.type.Money.fromObject(object.endPrice);
|
|
12667
|
+
}
|
|
12668
|
+
return message;
|
|
12669
|
+
};
|
|
12670
|
+
|
|
12671
|
+
/**
|
|
12672
|
+
* Creates a plain object from a PriceRange message. Also converts values to other types if specified.
|
|
12673
|
+
* @function toObject
|
|
12674
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12675
|
+
* @static
|
|
12676
|
+
* @param {google.maps.places.v1.PriceRange} message PriceRange
|
|
12677
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12678
|
+
* @returns {Object.<string,*>} Plain object
|
|
12679
|
+
*/
|
|
12680
|
+
PriceRange.toObject = function toObject(message, options) {
|
|
12681
|
+
if (!options)
|
|
12682
|
+
options = {};
|
|
12683
|
+
var object = {};
|
|
12684
|
+
if (options.defaults) {
|
|
12685
|
+
object.startPrice = null;
|
|
12686
|
+
object.endPrice = null;
|
|
12687
|
+
}
|
|
12688
|
+
if (message.startPrice != null && message.hasOwnProperty("startPrice"))
|
|
12689
|
+
object.startPrice = $root.google.type.Money.toObject(message.startPrice, options);
|
|
12690
|
+
if (message.endPrice != null && message.hasOwnProperty("endPrice"))
|
|
12691
|
+
object.endPrice = $root.google.type.Money.toObject(message.endPrice, options);
|
|
12692
|
+
return object;
|
|
12693
|
+
};
|
|
12694
|
+
|
|
12695
|
+
/**
|
|
12696
|
+
* Converts this PriceRange to JSON.
|
|
12697
|
+
* @function toJSON
|
|
12698
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12699
|
+
* @instance
|
|
12700
|
+
* @returns {Object.<string,*>} JSON object
|
|
12701
|
+
*/
|
|
12702
|
+
PriceRange.prototype.toJSON = function toJSON() {
|
|
12703
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12704
|
+
};
|
|
12705
|
+
|
|
12706
|
+
/**
|
|
12707
|
+
* Gets the default type url for PriceRange
|
|
12708
|
+
* @function getTypeUrl
|
|
12709
|
+
* @memberof google.maps.places.v1.PriceRange
|
|
12710
|
+
* @static
|
|
12711
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12712
|
+
* @returns {string} The default type url
|
|
12713
|
+
*/
|
|
12714
|
+
PriceRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12715
|
+
if (typeUrlPrefix === undefined) {
|
|
12716
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
12717
|
+
}
|
|
12718
|
+
return typeUrlPrefix + "/google.maps.places.v1.PriceRange";
|
|
12719
|
+
};
|
|
12720
|
+
|
|
12721
|
+
return PriceRange;
|
|
12722
|
+
})();
|
|
12723
|
+
|
|
12079
12724
|
v1.Places = (function() {
|
|
12080
12725
|
|
|
12081
12726
|
/**
|
|
@@ -13666,6 +14311,7 @@
|
|
|
13666
14311
|
* @property {google.maps.places.v1.SearchTextRequest.IEVOptions|null} [evOptions] SearchTextRequest evOptions
|
|
13667
14312
|
* @property {google.maps.places.v1.IRoutingParameters|null} [routingParameters] SearchTextRequest routingParameters
|
|
13668
14313
|
* @property {google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null} [searchAlongRouteParameters] SearchTextRequest searchAlongRouteParameters
|
|
14314
|
+
* @property {boolean|null} [includePureServiceAreaBusinesses] SearchTextRequest includePureServiceAreaBusinesses
|
|
13669
14315
|
*/
|
|
13670
14316
|
|
|
13671
14317
|
/**
|
|
@@ -13804,6 +14450,14 @@
|
|
|
13804
14450
|
*/
|
|
13805
14451
|
SearchTextRequest.prototype.searchAlongRouteParameters = null;
|
|
13806
14452
|
|
|
14453
|
+
/**
|
|
14454
|
+
* SearchTextRequest includePureServiceAreaBusinesses.
|
|
14455
|
+
* @member {boolean} includePureServiceAreaBusinesses
|
|
14456
|
+
* @memberof google.maps.places.v1.SearchTextRequest
|
|
14457
|
+
* @instance
|
|
14458
|
+
*/
|
|
14459
|
+
SearchTextRequest.prototype.includePureServiceAreaBusinesses = false;
|
|
14460
|
+
|
|
13807
14461
|
/**
|
|
13808
14462
|
* Creates a new SearchTextRequest instance using the specified properties.
|
|
13809
14463
|
* @function create
|
|
@@ -13862,6 +14516,8 @@
|
|
|
13862
14516
|
$root.google.maps.places.v1.RoutingParameters.encode(message.routingParameters, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
13863
14517
|
if (message.searchAlongRouteParameters != null && Object.hasOwnProperty.call(message, "searchAlongRouteParameters"))
|
|
13864
14518
|
$root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.encode(message.searchAlongRouteParameters, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
14519
|
+
if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses"))
|
|
14520
|
+
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.includePureServiceAreaBusinesses);
|
|
13865
14521
|
return writer;
|
|
13866
14522
|
};
|
|
13867
14523
|
|
|
@@ -13963,6 +14619,10 @@
|
|
|
13963
14619
|
message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.decode(reader, reader.uint32());
|
|
13964
14620
|
break;
|
|
13965
14621
|
}
|
|
14622
|
+
case 20: {
|
|
14623
|
+
message.includePureServiceAreaBusinesses = reader.bool();
|
|
14624
|
+
break;
|
|
14625
|
+
}
|
|
13966
14626
|
default:
|
|
13967
14627
|
reader.skipType(tag & 7);
|
|
13968
14628
|
break;
|
|
@@ -14072,6 +14732,9 @@
|
|
|
14072
14732
|
if (error)
|
|
14073
14733
|
return "searchAlongRouteParameters." + error;
|
|
14074
14734
|
}
|
|
14735
|
+
if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
|
|
14736
|
+
if (typeof message.includePureServiceAreaBusinesses !== "boolean")
|
|
14737
|
+
return "includePureServiceAreaBusinesses: boolean expected";
|
|
14075
14738
|
return null;
|
|
14076
14739
|
};
|
|
14077
14740
|
|
|
@@ -14185,6 +14848,8 @@
|
|
|
14185
14848
|
throw TypeError(".google.maps.places.v1.SearchTextRequest.searchAlongRouteParameters: object expected");
|
|
14186
14849
|
message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.fromObject(object.searchAlongRouteParameters);
|
|
14187
14850
|
}
|
|
14851
|
+
if (object.includePureServiceAreaBusinesses != null)
|
|
14852
|
+
message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses);
|
|
14188
14853
|
return message;
|
|
14189
14854
|
};
|
|
14190
14855
|
|
|
@@ -14218,6 +14883,7 @@
|
|
|
14218
14883
|
object.evOptions = null;
|
|
14219
14884
|
object.routingParameters = null;
|
|
14220
14885
|
object.searchAlongRouteParameters = null;
|
|
14886
|
+
object.includePureServiceAreaBusinesses = false;
|
|
14221
14887
|
}
|
|
14222
14888
|
if (message.textQuery != null && message.hasOwnProperty("textQuery"))
|
|
14223
14889
|
object.textQuery = message.textQuery;
|
|
@@ -14252,6 +14918,8 @@
|
|
|
14252
14918
|
object.routingParameters = $root.google.maps.places.v1.RoutingParameters.toObject(message.routingParameters, options);
|
|
14253
14919
|
if (message.searchAlongRouteParameters != null && message.hasOwnProperty("searchAlongRouteParameters"))
|
|
14254
14920
|
object.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.toObject(message.searchAlongRouteParameters, options);
|
|
14921
|
+
if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
|
|
14922
|
+
object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses;
|
|
14255
14923
|
return object;
|
|
14256
14924
|
};
|
|
14257
14925
|
|
|
@@ -16410,6 +17078,7 @@
|
|
|
16410
17078
|
* @property {number|null} [inputOffset] AutocompletePlacesRequest inputOffset
|
|
16411
17079
|
* @property {boolean|null} [includeQueryPredictions] AutocompletePlacesRequest includeQueryPredictions
|
|
16412
17080
|
* @property {string|null} [sessionToken] AutocompletePlacesRequest sessionToken
|
|
17081
|
+
* @property {boolean|null} [includePureServiceAreaBusinesses] AutocompletePlacesRequest includePureServiceAreaBusinesses
|
|
16413
17082
|
*/
|
|
16414
17083
|
|
|
16415
17084
|
/**
|
|
@@ -16517,6 +17186,14 @@
|
|
|
16517
17186
|
*/
|
|
16518
17187
|
AutocompletePlacesRequest.prototype.sessionToken = "";
|
|
16519
17188
|
|
|
17189
|
+
/**
|
|
17190
|
+
* AutocompletePlacesRequest includePureServiceAreaBusinesses.
|
|
17191
|
+
* @member {boolean} includePureServiceAreaBusinesses
|
|
17192
|
+
* @memberof google.maps.places.v1.AutocompletePlacesRequest
|
|
17193
|
+
* @instance
|
|
17194
|
+
*/
|
|
17195
|
+
AutocompletePlacesRequest.prototype.includePureServiceAreaBusinesses = false;
|
|
17196
|
+
|
|
16520
17197
|
/**
|
|
16521
17198
|
* Creates a new AutocompletePlacesRequest instance using the specified properties.
|
|
16522
17199
|
* @function create
|
|
@@ -16565,6 +17242,8 @@
|
|
|
16565
17242
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.includeQueryPredictions);
|
|
16566
17243
|
if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken"))
|
|
16567
17244
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.sessionToken);
|
|
17245
|
+
if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses"))
|
|
17246
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.includePureServiceAreaBusinesses);
|
|
16568
17247
|
return writer;
|
|
16569
17248
|
};
|
|
16570
17249
|
|
|
@@ -16647,6 +17326,10 @@
|
|
|
16647
17326
|
message.sessionToken = reader.string();
|
|
16648
17327
|
break;
|
|
16649
17328
|
}
|
|
17329
|
+
case 12: {
|
|
17330
|
+
message.includePureServiceAreaBusinesses = reader.bool();
|
|
17331
|
+
break;
|
|
17332
|
+
}
|
|
16650
17333
|
default:
|
|
16651
17334
|
reader.skipType(tag & 7);
|
|
16652
17335
|
break;
|
|
@@ -16729,6 +17412,9 @@
|
|
|
16729
17412
|
if (message.sessionToken != null && message.hasOwnProperty("sessionToken"))
|
|
16730
17413
|
if (!$util.isString(message.sessionToken))
|
|
16731
17414
|
return "sessionToken: string expected";
|
|
17415
|
+
if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
|
|
17416
|
+
if (typeof message.includePureServiceAreaBusinesses !== "boolean")
|
|
17417
|
+
return "includePureServiceAreaBusinesses: boolean expected";
|
|
16732
17418
|
return null;
|
|
16733
17419
|
};
|
|
16734
17420
|
|
|
@@ -16785,6 +17471,8 @@
|
|
|
16785
17471
|
message.includeQueryPredictions = Boolean(object.includeQueryPredictions);
|
|
16786
17472
|
if (object.sessionToken != null)
|
|
16787
17473
|
message.sessionToken = String(object.sessionToken);
|
|
17474
|
+
if (object.includePureServiceAreaBusinesses != null)
|
|
17475
|
+
message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses);
|
|
16788
17476
|
return message;
|
|
16789
17477
|
};
|
|
16790
17478
|
|
|
@@ -16815,6 +17503,7 @@
|
|
|
16815
17503
|
object.inputOffset = 0;
|
|
16816
17504
|
object.includeQueryPredictions = false;
|
|
16817
17505
|
object.sessionToken = "";
|
|
17506
|
+
object.includePureServiceAreaBusinesses = false;
|
|
16818
17507
|
}
|
|
16819
17508
|
if (message.input != null && message.hasOwnProperty("input"))
|
|
16820
17509
|
object.input = message.input;
|
|
@@ -16844,6 +17533,8 @@
|
|
|
16844
17533
|
object.includeQueryPredictions = message.includeQueryPredictions;
|
|
16845
17534
|
if (message.sessionToken != null && message.hasOwnProperty("sessionToken"))
|
|
16846
17535
|
object.sessionToken = message.sessionToken;
|
|
17536
|
+
if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
|
|
17537
|
+
object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses;
|
|
16847
17538
|
return object;
|
|
16848
17539
|
};
|
|
16849
17540
|
|
|
@@ -19700,6 +20391,7 @@
|
|
|
19700
20391
|
* @memberof google.maps.places.v1
|
|
19701
20392
|
* @interface IRoutingSummary
|
|
19702
20393
|
* @property {Array.<google.maps.places.v1.RoutingSummary.ILeg>|null} [legs] RoutingSummary legs
|
|
20394
|
+
* @property {string|null} [directionsUri] RoutingSummary directionsUri
|
|
19703
20395
|
*/
|
|
19704
20396
|
|
|
19705
20397
|
/**
|
|
@@ -19726,6 +20418,14 @@
|
|
|
19726
20418
|
*/
|
|
19727
20419
|
RoutingSummary.prototype.legs = $util.emptyArray;
|
|
19728
20420
|
|
|
20421
|
+
/**
|
|
20422
|
+
* RoutingSummary directionsUri.
|
|
20423
|
+
* @member {string} directionsUri
|
|
20424
|
+
* @memberof google.maps.places.v1.RoutingSummary
|
|
20425
|
+
* @instance
|
|
20426
|
+
*/
|
|
20427
|
+
RoutingSummary.prototype.directionsUri = "";
|
|
20428
|
+
|
|
19729
20429
|
/**
|
|
19730
20430
|
* Creates a new RoutingSummary instance using the specified properties.
|
|
19731
20431
|
* @function create
|
|
@@ -19753,6 +20453,8 @@
|
|
|
19753
20453
|
if (message.legs != null && message.legs.length)
|
|
19754
20454
|
for (var i = 0; i < message.legs.length; ++i)
|
|
19755
20455
|
$root.google.maps.places.v1.RoutingSummary.Leg.encode(message.legs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
20456
|
+
if (message.directionsUri != null && Object.hasOwnProperty.call(message, "directionsUri"))
|
|
20457
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.directionsUri);
|
|
19756
20458
|
return writer;
|
|
19757
20459
|
};
|
|
19758
20460
|
|
|
@@ -19793,6 +20495,10 @@
|
|
|
19793
20495
|
message.legs.push($root.google.maps.places.v1.RoutingSummary.Leg.decode(reader, reader.uint32()));
|
|
19794
20496
|
break;
|
|
19795
20497
|
}
|
|
20498
|
+
case 2: {
|
|
20499
|
+
message.directionsUri = reader.string();
|
|
20500
|
+
break;
|
|
20501
|
+
}
|
|
19796
20502
|
default:
|
|
19797
20503
|
reader.skipType(tag & 7);
|
|
19798
20504
|
break;
|
|
@@ -19837,6 +20543,9 @@
|
|
|
19837
20543
|
return "legs." + error;
|
|
19838
20544
|
}
|
|
19839
20545
|
}
|
|
20546
|
+
if (message.directionsUri != null && message.hasOwnProperty("directionsUri"))
|
|
20547
|
+
if (!$util.isString(message.directionsUri))
|
|
20548
|
+
return "directionsUri: string expected";
|
|
19840
20549
|
return null;
|
|
19841
20550
|
};
|
|
19842
20551
|
|
|
@@ -19862,6 +20571,8 @@
|
|
|
19862
20571
|
message.legs[i] = $root.google.maps.places.v1.RoutingSummary.Leg.fromObject(object.legs[i]);
|
|
19863
20572
|
}
|
|
19864
20573
|
}
|
|
20574
|
+
if (object.directionsUri != null)
|
|
20575
|
+
message.directionsUri = String(object.directionsUri);
|
|
19865
20576
|
return message;
|
|
19866
20577
|
};
|
|
19867
20578
|
|
|
@@ -19880,11 +20591,15 @@
|
|
|
19880
20591
|
var object = {};
|
|
19881
20592
|
if (options.arrays || options.defaults)
|
|
19882
20593
|
object.legs = [];
|
|
20594
|
+
if (options.defaults)
|
|
20595
|
+
object.directionsUri = "";
|
|
19883
20596
|
if (message.legs && message.legs.length) {
|
|
19884
20597
|
object.legs = [];
|
|
19885
20598
|
for (var j = 0; j < message.legs.length; ++j)
|
|
19886
20599
|
object.legs[j] = $root.google.maps.places.v1.RoutingSummary.Leg.toObject(message.legs[j], options);
|
|
19887
20600
|
}
|
|
20601
|
+
if (message.directionsUri != null && message.hasOwnProperty("directionsUri"))
|
|
20602
|
+
object.directionsUri = message.directionsUri;
|
|
19888
20603
|
return object;
|
|
19889
20604
|
};
|
|
19890
20605
|
|