@googlemaps/places 1.7.0 → 1.8.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.
@@ -5907,6 +5907,9 @@
5907
5907
  * @property {google.maps.places.v1.IEVChargeOptions|null} [evChargeOptions] Place evChargeOptions
5908
5908
  * @property {google.maps.places.v1.Place.IGenerativeSummary|null} [generativeSummary] Place generativeSummary
5909
5909
  * @property {google.maps.places.v1.Place.IAreaSummary|null} [areaSummary] Place areaSummary
5910
+ * @property {Array.<google.maps.places.v1.Place.IContainingPlace>|null} [containingPlaces] Place containingPlaces
5911
+ * @property {boolean|null} [pureServiceAreaBusiness] Place pureServiceAreaBusiness
5912
+ * @property {google.maps.places.v1.IPriceRange|null} [priceRange] Place priceRange
5910
5913
  */
5911
5914
 
5912
5915
  /**
@@ -5926,6 +5929,7 @@
5926
5929
  this.currentSecondaryOpeningHours = [];
5927
5930
  this.regularSecondaryOpeningHours = [];
5928
5931
  this.subDestinations = [];
5932
+ this.containingPlaces = [];
5929
5933
  if (properties)
5930
5934
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
5931
5935
  if (properties[keys[i]] != null)
@@ -6436,6 +6440,30 @@
6436
6440
  */
6437
6441
  Place.prototype.areaSummary = null;
6438
6442
 
6443
+ /**
6444
+ * Place containingPlaces.
6445
+ * @member {Array.<google.maps.places.v1.Place.IContainingPlace>} containingPlaces
6446
+ * @memberof google.maps.places.v1.Place
6447
+ * @instance
6448
+ */
6449
+ Place.prototype.containingPlaces = $util.emptyArray;
6450
+
6451
+ /**
6452
+ * Place pureServiceAreaBusiness.
6453
+ * @member {boolean|null|undefined} pureServiceAreaBusiness
6454
+ * @memberof google.maps.places.v1.Place
6455
+ * @instance
6456
+ */
6457
+ Place.prototype.pureServiceAreaBusiness = null;
6458
+
6459
+ /**
6460
+ * Place priceRange.
6461
+ * @member {google.maps.places.v1.IPriceRange|null|undefined} priceRange
6462
+ * @memberof google.maps.places.v1.Place
6463
+ * @instance
6464
+ */
6465
+ Place.prototype.priceRange = null;
6466
+
6439
6467
  // OneOf field names bound to virtual getters and setters
6440
6468
  var $oneOfFields;
6441
6469
 
@@ -6725,6 +6753,17 @@
6725
6753
  set: $util.oneOfSetter($oneOfFields)
6726
6754
  });
6727
6755
 
6756
+ /**
6757
+ * Place _pureServiceAreaBusiness.
6758
+ * @member {"pureServiceAreaBusiness"|undefined} _pureServiceAreaBusiness
6759
+ * @memberof google.maps.places.v1.Place
6760
+ * @instance
6761
+ */
6762
+ Object.defineProperty(Place.prototype, "_pureServiceAreaBusiness", {
6763
+ get: $util.oneOfGetter($oneOfFields = ["pureServiceAreaBusiness"]),
6764
+ set: $util.oneOfSetter($oneOfFields)
6765
+ });
6766
+
6728
6767
  /**
6729
6768
  * Creates a new Place instance using the specified properties.
6730
6769
  * @function create
@@ -6883,6 +6922,13 @@
6883
6922
  $root.google.maps.places.v1.Place.GenerativeSummary.encode(message.generativeSummary, writer.uint32(/* id 80, wireType 2 =*/642).fork()).ldelim();
6884
6923
  if (message.areaSummary != null && Object.hasOwnProperty.call(message, "areaSummary"))
6885
6924
  $root.google.maps.places.v1.Place.AreaSummary.encode(message.areaSummary, writer.uint32(/* id 81, wireType 2 =*/650).fork()).ldelim();
6925
+ if (message.containingPlaces != null && message.containingPlaces.length)
6926
+ for (var i = 0; i < message.containingPlaces.length; ++i)
6927
+ $root.google.maps.places.v1.Place.ContainingPlace.encode(message.containingPlaces[i], writer.uint32(/* id 82, wireType 2 =*/658).fork()).ldelim();
6928
+ if (message.pureServiceAreaBusiness != null && Object.hasOwnProperty.call(message, "pureServiceAreaBusiness"))
6929
+ writer.uint32(/* id 83, wireType 0 =*/664).bool(message.pureServiceAreaBusiness);
6930
+ if (message.priceRange != null && Object.hasOwnProperty.call(message, "priceRange"))
6931
+ $root.google.maps.places.v1.PriceRange.encode(message.priceRange, writer.uint32(/* id 86, wireType 2 =*/690).fork()).ldelim();
6886
6932
  return writer;
6887
6933
  };
6888
6934
 
@@ -7185,6 +7231,20 @@
7185
7231
  message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.decode(reader, reader.uint32());
7186
7232
  break;
7187
7233
  }
7234
+ case 82: {
7235
+ if (!(message.containingPlaces && message.containingPlaces.length))
7236
+ message.containingPlaces = [];
7237
+ message.containingPlaces.push($root.google.maps.places.v1.Place.ContainingPlace.decode(reader, reader.uint32()));
7238
+ break;
7239
+ }
7240
+ case 83: {
7241
+ message.pureServiceAreaBusiness = reader.bool();
7242
+ break;
7243
+ }
7244
+ case 86: {
7245
+ message.priceRange = $root.google.maps.places.v1.PriceRange.decode(reader, reader.uint32());
7246
+ break;
7247
+ }
7188
7248
  default:
7189
7249
  reader.skipType(tag & 7);
7190
7250
  break;
@@ -7555,6 +7615,25 @@
7555
7615
  if (error)
7556
7616
  return "areaSummary." + error;
7557
7617
  }
7618
+ if (message.containingPlaces != null && message.hasOwnProperty("containingPlaces")) {
7619
+ if (!Array.isArray(message.containingPlaces))
7620
+ return "containingPlaces: array expected";
7621
+ for (var i = 0; i < message.containingPlaces.length; ++i) {
7622
+ var error = $root.google.maps.places.v1.Place.ContainingPlace.verify(message.containingPlaces[i]);
7623
+ if (error)
7624
+ return "containingPlaces." + error;
7625
+ }
7626
+ }
7627
+ if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) {
7628
+ properties._pureServiceAreaBusiness = 1;
7629
+ if (typeof message.pureServiceAreaBusiness !== "boolean")
7630
+ return "pureServiceAreaBusiness: boolean expected";
7631
+ }
7632
+ if (message.priceRange != null && message.hasOwnProperty("priceRange")) {
7633
+ var error = $root.google.maps.places.v1.PriceRange.verify(message.priceRange);
7634
+ if (error)
7635
+ return "priceRange." + error;
7636
+ }
7558
7637
  return null;
7559
7638
  };
7560
7639
 
@@ -7854,6 +7933,23 @@
7854
7933
  throw TypeError(".google.maps.places.v1.Place.areaSummary: object expected");
7855
7934
  message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.fromObject(object.areaSummary);
7856
7935
  }
7936
+ if (object.containingPlaces) {
7937
+ if (!Array.isArray(object.containingPlaces))
7938
+ throw TypeError(".google.maps.places.v1.Place.containingPlaces: array expected");
7939
+ message.containingPlaces = [];
7940
+ for (var i = 0; i < object.containingPlaces.length; ++i) {
7941
+ if (typeof object.containingPlaces[i] !== "object")
7942
+ throw TypeError(".google.maps.places.v1.Place.containingPlaces: object expected");
7943
+ message.containingPlaces[i] = $root.google.maps.places.v1.Place.ContainingPlace.fromObject(object.containingPlaces[i]);
7944
+ }
7945
+ }
7946
+ if (object.pureServiceAreaBusiness != null)
7947
+ message.pureServiceAreaBusiness = Boolean(object.pureServiceAreaBusiness);
7948
+ if (object.priceRange != null) {
7949
+ if (typeof object.priceRange !== "object")
7950
+ throw TypeError(".google.maps.places.v1.Place.priceRange: object expected");
7951
+ message.priceRange = $root.google.maps.places.v1.PriceRange.fromObject(object.priceRange);
7952
+ }
7857
7953
  return message;
7858
7954
  };
7859
7955
 
@@ -7879,6 +7975,7 @@
7879
7975
  object.reviews = [];
7880
7976
  object.photos = [];
7881
7977
  object.subDestinations = [];
7978
+ object.containingPlaces = [];
7882
7979
  }
7883
7980
  if (options.defaults) {
7884
7981
  object.name = "";
@@ -7910,6 +8007,7 @@
7910
8007
  object.evChargeOptions = null;
7911
8008
  object.generativeSummary = null;
7912
8009
  object.areaSummary = null;
8010
+ object.priceRange = null;
7913
8011
  }
7914
8012
  if (message.name != null && message.hasOwnProperty("name"))
7915
8013
  object.name = message.name;
@@ -8139,6 +8237,18 @@
8139
8237
  object.generativeSummary = $root.google.maps.places.v1.Place.GenerativeSummary.toObject(message.generativeSummary, options);
8140
8238
  if (message.areaSummary != null && message.hasOwnProperty("areaSummary"))
8141
8239
  object.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.toObject(message.areaSummary, options);
8240
+ if (message.containingPlaces && message.containingPlaces.length) {
8241
+ object.containingPlaces = [];
8242
+ for (var j = 0; j < message.containingPlaces.length; ++j)
8243
+ object.containingPlaces[j] = $root.google.maps.places.v1.Place.ContainingPlace.toObject(message.containingPlaces[j], options);
8244
+ }
8245
+ if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) {
8246
+ object.pureServiceAreaBusiness = message.pureServiceAreaBusiness;
8247
+ if (options.oneofs)
8248
+ object._pureServiceAreaBusiness = "pureServiceAreaBusiness";
8249
+ }
8250
+ if (message.priceRange != null && message.hasOwnProperty("priceRange"))
8251
+ object.priceRange = $root.google.maps.places.v1.PriceRange.toObject(message.priceRange, options);
8142
8252
  return object;
8143
8253
  };
8144
8254
 
@@ -8696,6 +8806,8 @@
8696
8806
  * @property {Array.<string>|null} [weekdayDescriptions] OpeningHours weekdayDescriptions
8697
8807
  * @property {google.maps.places.v1.Place.OpeningHours.SecondaryHoursType|null} [secondaryHoursType] OpeningHours secondaryHoursType
8698
8808
  * @property {Array.<google.maps.places.v1.Place.OpeningHours.ISpecialDay>|null} [specialDays] OpeningHours specialDays
8809
+ * @property {google.protobuf.ITimestamp|null} [nextOpenTime] OpeningHours nextOpenTime
8810
+ * @property {google.protobuf.ITimestamp|null} [nextCloseTime] OpeningHours nextCloseTime
8699
8811
  */
8700
8812
 
8701
8813
  /**
@@ -8756,6 +8868,22 @@
8756
8868
  */
8757
8869
  OpeningHours.prototype.specialDays = $util.emptyArray;
8758
8870
 
8871
+ /**
8872
+ * OpeningHours nextOpenTime.
8873
+ * @member {google.protobuf.ITimestamp|null|undefined} nextOpenTime
8874
+ * @memberof google.maps.places.v1.Place.OpeningHours
8875
+ * @instance
8876
+ */
8877
+ OpeningHours.prototype.nextOpenTime = null;
8878
+
8879
+ /**
8880
+ * OpeningHours nextCloseTime.
8881
+ * @member {google.protobuf.ITimestamp|null|undefined} nextCloseTime
8882
+ * @memberof google.maps.places.v1.Place.OpeningHours
8883
+ * @instance
8884
+ */
8885
+ OpeningHours.prototype.nextCloseTime = null;
8886
+
8759
8887
  // OneOf field names bound to virtual getters and setters
8760
8888
  var $oneOfFields;
8761
8889
 
@@ -8807,6 +8935,10 @@
8807
8935
  if (message.specialDays != null && message.specialDays.length)
8808
8936
  for (var i = 0; i < message.specialDays.length; ++i)
8809
8937
  $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.encode(message.specialDays[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
8938
+ if (message.nextOpenTime != null && Object.hasOwnProperty.call(message, "nextOpenTime"))
8939
+ $root.google.protobuf.Timestamp.encode(message.nextOpenTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
8940
+ if (message.nextCloseTime != null && Object.hasOwnProperty.call(message, "nextCloseTime"))
8941
+ $root.google.protobuf.Timestamp.encode(message.nextCloseTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
8810
8942
  return writer;
8811
8943
  };
8812
8944
 
@@ -8867,6 +8999,14 @@
8867
8999
  message.specialDays.push($root.google.maps.places.v1.Place.OpeningHours.SpecialDay.decode(reader, reader.uint32()));
8868
9000
  break;
8869
9001
  }
9002
+ case 6: {
9003
+ message.nextOpenTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
9004
+ break;
9005
+ }
9006
+ case 7: {
9007
+ message.nextCloseTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
9008
+ break;
9009
+ }
8870
9010
  default:
8871
9011
  reader.skipType(tag & 7);
8872
9012
  break;
@@ -8953,6 +9093,16 @@
8953
9093
  return "specialDays." + error;
8954
9094
  }
8955
9095
  }
9096
+ if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime")) {
9097
+ var error = $root.google.protobuf.Timestamp.verify(message.nextOpenTime);
9098
+ if (error)
9099
+ return "nextOpenTime." + error;
9100
+ }
9101
+ if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime")) {
9102
+ var error = $root.google.protobuf.Timestamp.verify(message.nextCloseTime);
9103
+ if (error)
9104
+ return "nextCloseTime." + error;
9105
+ }
8956
9106
  return null;
8957
9107
  };
8958
9108
 
@@ -9061,6 +9211,16 @@
9061
9211
  message.specialDays[i] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.fromObject(object.specialDays[i]);
9062
9212
  }
9063
9213
  }
9214
+ if (object.nextOpenTime != null) {
9215
+ if (typeof object.nextOpenTime !== "object")
9216
+ throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextOpenTime: object expected");
9217
+ message.nextOpenTime = $root.google.protobuf.Timestamp.fromObject(object.nextOpenTime);
9218
+ }
9219
+ if (object.nextCloseTime != null) {
9220
+ if (typeof object.nextCloseTime !== "object")
9221
+ throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextCloseTime: object expected");
9222
+ message.nextCloseTime = $root.google.protobuf.Timestamp.fromObject(object.nextCloseTime);
9223
+ }
9064
9224
  return message;
9065
9225
  };
9066
9226
 
@@ -9082,8 +9242,11 @@
9082
9242
  object.weekdayDescriptions = [];
9083
9243
  object.specialDays = [];
9084
9244
  }
9085
- if (options.defaults)
9245
+ if (options.defaults) {
9086
9246
  object.secondaryHoursType = options.enums === String ? "SECONDARY_HOURS_TYPE_UNSPECIFIED" : 0;
9247
+ object.nextOpenTime = null;
9248
+ object.nextCloseTime = null;
9249
+ }
9087
9250
  if (message.openNow != null && message.hasOwnProperty("openNow")) {
9088
9251
  object.openNow = message.openNow;
9089
9252
  if (options.oneofs)
@@ -9106,6 +9269,10 @@
9106
9269
  for (var j = 0; j < message.specialDays.length; ++j)
9107
9270
  object.specialDays[j] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.toObject(message.specialDays[j], options);
9108
9271
  }
9272
+ if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime"))
9273
+ object.nextOpenTime = $root.google.protobuf.Timestamp.toObject(message.nextOpenTime, options);
9274
+ if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime"))
9275
+ object.nextCloseTime = $root.google.protobuf.Timestamp.toObject(message.nextCloseTime, options);
9109
9276
  return object;
9110
9277
  };
9111
9278
 
@@ -12051,6 +12218,233 @@
12051
12218
  return AreaSummary;
12052
12219
  })();
12053
12220
 
12221
+ Place.ContainingPlace = (function() {
12222
+
12223
+ /**
12224
+ * Properties of a ContainingPlace.
12225
+ * @memberof google.maps.places.v1.Place
12226
+ * @interface IContainingPlace
12227
+ * @property {string|null} [name] ContainingPlace name
12228
+ * @property {string|null} [id] ContainingPlace id
12229
+ */
12230
+
12231
+ /**
12232
+ * Constructs a new ContainingPlace.
12233
+ * @memberof google.maps.places.v1.Place
12234
+ * @classdesc Represents a ContainingPlace.
12235
+ * @implements IContainingPlace
12236
+ * @constructor
12237
+ * @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set
12238
+ */
12239
+ function ContainingPlace(properties) {
12240
+ if (properties)
12241
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12242
+ if (properties[keys[i]] != null)
12243
+ this[keys[i]] = properties[keys[i]];
12244
+ }
12245
+
12246
+ /**
12247
+ * ContainingPlace name.
12248
+ * @member {string} name
12249
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12250
+ * @instance
12251
+ */
12252
+ ContainingPlace.prototype.name = "";
12253
+
12254
+ /**
12255
+ * ContainingPlace id.
12256
+ * @member {string} id
12257
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12258
+ * @instance
12259
+ */
12260
+ ContainingPlace.prototype.id = "";
12261
+
12262
+ /**
12263
+ * Creates a new ContainingPlace instance using the specified properties.
12264
+ * @function create
12265
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12266
+ * @static
12267
+ * @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set
12268
+ * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace instance
12269
+ */
12270
+ ContainingPlace.create = function create(properties) {
12271
+ return new ContainingPlace(properties);
12272
+ };
12273
+
12274
+ /**
12275
+ * Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
12276
+ * @function encode
12277
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12278
+ * @static
12279
+ * @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode
12280
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12281
+ * @returns {$protobuf.Writer} Writer
12282
+ */
12283
+ ContainingPlace.encode = function encode(message, writer) {
12284
+ if (!writer)
12285
+ writer = $Writer.create();
12286
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
12287
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
12288
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
12289
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
12290
+ return writer;
12291
+ };
12292
+
12293
+ /**
12294
+ * Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
12295
+ * @function encodeDelimited
12296
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12297
+ * @static
12298
+ * @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode
12299
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12300
+ * @returns {$protobuf.Writer} Writer
12301
+ */
12302
+ ContainingPlace.encodeDelimited = function encodeDelimited(message, writer) {
12303
+ return this.encode(message, writer).ldelim();
12304
+ };
12305
+
12306
+ /**
12307
+ * Decodes a ContainingPlace message from the specified reader or buffer.
12308
+ * @function decode
12309
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12310
+ * @static
12311
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12312
+ * @param {number} [length] Message length if known beforehand
12313
+ * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
12314
+ * @throws {Error} If the payload is not a reader or valid buffer
12315
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12316
+ */
12317
+ ContainingPlace.decode = function decode(reader, length) {
12318
+ if (!(reader instanceof $Reader))
12319
+ reader = $Reader.create(reader);
12320
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ContainingPlace();
12321
+ while (reader.pos < end) {
12322
+ var tag = reader.uint32();
12323
+ switch (tag >>> 3) {
12324
+ case 1: {
12325
+ message.name = reader.string();
12326
+ break;
12327
+ }
12328
+ case 2: {
12329
+ message.id = reader.string();
12330
+ break;
12331
+ }
12332
+ default:
12333
+ reader.skipType(tag & 7);
12334
+ break;
12335
+ }
12336
+ }
12337
+ return message;
12338
+ };
12339
+
12340
+ /**
12341
+ * Decodes a ContainingPlace message from the specified reader or buffer, length delimited.
12342
+ * @function decodeDelimited
12343
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12344
+ * @static
12345
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12346
+ * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
12347
+ * @throws {Error} If the payload is not a reader or valid buffer
12348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12349
+ */
12350
+ ContainingPlace.decodeDelimited = function decodeDelimited(reader) {
12351
+ if (!(reader instanceof $Reader))
12352
+ reader = new $Reader(reader);
12353
+ return this.decode(reader, reader.uint32());
12354
+ };
12355
+
12356
+ /**
12357
+ * Verifies a ContainingPlace message.
12358
+ * @function verify
12359
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12360
+ * @static
12361
+ * @param {Object.<string,*>} message Plain object to verify
12362
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12363
+ */
12364
+ ContainingPlace.verify = function verify(message) {
12365
+ if (typeof message !== "object" || message === null)
12366
+ return "object expected";
12367
+ if (message.name != null && message.hasOwnProperty("name"))
12368
+ if (!$util.isString(message.name))
12369
+ return "name: string expected";
12370
+ if (message.id != null && message.hasOwnProperty("id"))
12371
+ if (!$util.isString(message.id))
12372
+ return "id: string expected";
12373
+ return null;
12374
+ };
12375
+
12376
+ /**
12377
+ * Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types.
12378
+ * @function fromObject
12379
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12380
+ * @static
12381
+ * @param {Object.<string,*>} object Plain object
12382
+ * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace
12383
+ */
12384
+ ContainingPlace.fromObject = function fromObject(object) {
12385
+ if (object instanceof $root.google.maps.places.v1.Place.ContainingPlace)
12386
+ return object;
12387
+ var message = new $root.google.maps.places.v1.Place.ContainingPlace();
12388
+ if (object.name != null)
12389
+ message.name = String(object.name);
12390
+ if (object.id != null)
12391
+ message.id = String(object.id);
12392
+ return message;
12393
+ };
12394
+
12395
+ /**
12396
+ * Creates a plain object from a ContainingPlace message. Also converts values to other types if specified.
12397
+ * @function toObject
12398
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12399
+ * @static
12400
+ * @param {google.maps.places.v1.Place.ContainingPlace} message ContainingPlace
12401
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12402
+ * @returns {Object.<string,*>} Plain object
12403
+ */
12404
+ ContainingPlace.toObject = function toObject(message, options) {
12405
+ if (!options)
12406
+ options = {};
12407
+ var object = {};
12408
+ if (options.defaults) {
12409
+ object.name = "";
12410
+ object.id = "";
12411
+ }
12412
+ if (message.name != null && message.hasOwnProperty("name"))
12413
+ object.name = message.name;
12414
+ if (message.id != null && message.hasOwnProperty("id"))
12415
+ object.id = message.id;
12416
+ return object;
12417
+ };
12418
+
12419
+ /**
12420
+ * Converts this ContainingPlace to JSON.
12421
+ * @function toJSON
12422
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12423
+ * @instance
12424
+ * @returns {Object.<string,*>} JSON object
12425
+ */
12426
+ ContainingPlace.prototype.toJSON = function toJSON() {
12427
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12428
+ };
12429
+
12430
+ /**
12431
+ * Gets the default type url for ContainingPlace
12432
+ * @function getTypeUrl
12433
+ * @memberof google.maps.places.v1.Place.ContainingPlace
12434
+ * @static
12435
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12436
+ * @returns {string} The default type url
12437
+ */
12438
+ ContainingPlace.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12439
+ if (typeUrlPrefix === undefined) {
12440
+ typeUrlPrefix = "type.googleapis.com";
12441
+ }
12442
+ return typeUrlPrefix + "/google.maps.places.v1.Place.ContainingPlace";
12443
+ };
12444
+
12445
+ return ContainingPlace;
12446
+ })();
12447
+
12054
12448
  return Place;
12055
12449
  })();
12056
12450
 
@@ -12076,6 +12470,243 @@
12076
12470
  return values;
12077
12471
  })();
12078
12472
 
12473
+ v1.PriceRange = (function() {
12474
+
12475
+ /**
12476
+ * Properties of a PriceRange.
12477
+ * @memberof google.maps.places.v1
12478
+ * @interface IPriceRange
12479
+ * @property {google.type.IMoney|null} [startPrice] PriceRange startPrice
12480
+ * @property {google.type.IMoney|null} [endPrice] PriceRange endPrice
12481
+ */
12482
+
12483
+ /**
12484
+ * Constructs a new PriceRange.
12485
+ * @memberof google.maps.places.v1
12486
+ * @classdesc Represents a PriceRange.
12487
+ * @implements IPriceRange
12488
+ * @constructor
12489
+ * @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set
12490
+ */
12491
+ function PriceRange(properties) {
12492
+ if (properties)
12493
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12494
+ if (properties[keys[i]] != null)
12495
+ this[keys[i]] = properties[keys[i]];
12496
+ }
12497
+
12498
+ /**
12499
+ * PriceRange startPrice.
12500
+ * @member {google.type.IMoney|null|undefined} startPrice
12501
+ * @memberof google.maps.places.v1.PriceRange
12502
+ * @instance
12503
+ */
12504
+ PriceRange.prototype.startPrice = null;
12505
+
12506
+ /**
12507
+ * PriceRange endPrice.
12508
+ * @member {google.type.IMoney|null|undefined} endPrice
12509
+ * @memberof google.maps.places.v1.PriceRange
12510
+ * @instance
12511
+ */
12512
+ PriceRange.prototype.endPrice = null;
12513
+
12514
+ /**
12515
+ * Creates a new PriceRange instance using the specified properties.
12516
+ * @function create
12517
+ * @memberof google.maps.places.v1.PriceRange
12518
+ * @static
12519
+ * @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set
12520
+ * @returns {google.maps.places.v1.PriceRange} PriceRange instance
12521
+ */
12522
+ PriceRange.create = function create(properties) {
12523
+ return new PriceRange(properties);
12524
+ };
12525
+
12526
+ /**
12527
+ * Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
12528
+ * @function encode
12529
+ * @memberof google.maps.places.v1.PriceRange
12530
+ * @static
12531
+ * @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode
12532
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12533
+ * @returns {$protobuf.Writer} Writer
12534
+ */
12535
+ PriceRange.encode = function encode(message, writer) {
12536
+ if (!writer)
12537
+ writer = $Writer.create();
12538
+ if (message.startPrice != null && Object.hasOwnProperty.call(message, "startPrice"))
12539
+ $root.google.type.Money.encode(message.startPrice, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
12540
+ if (message.endPrice != null && Object.hasOwnProperty.call(message, "endPrice"))
12541
+ $root.google.type.Money.encode(message.endPrice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
12542
+ return writer;
12543
+ };
12544
+
12545
+ /**
12546
+ * Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
12547
+ * @function encodeDelimited
12548
+ * @memberof google.maps.places.v1.PriceRange
12549
+ * @static
12550
+ * @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode
12551
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12552
+ * @returns {$protobuf.Writer} Writer
12553
+ */
12554
+ PriceRange.encodeDelimited = function encodeDelimited(message, writer) {
12555
+ return this.encode(message, writer).ldelim();
12556
+ };
12557
+
12558
+ /**
12559
+ * Decodes a PriceRange message from the specified reader or buffer.
12560
+ * @function decode
12561
+ * @memberof google.maps.places.v1.PriceRange
12562
+ * @static
12563
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12564
+ * @param {number} [length] Message length if known beforehand
12565
+ * @returns {google.maps.places.v1.PriceRange} PriceRange
12566
+ * @throws {Error} If the payload is not a reader or valid buffer
12567
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12568
+ */
12569
+ PriceRange.decode = function decode(reader, length) {
12570
+ if (!(reader instanceof $Reader))
12571
+ reader = $Reader.create(reader);
12572
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.PriceRange();
12573
+ while (reader.pos < end) {
12574
+ var tag = reader.uint32();
12575
+ switch (tag >>> 3) {
12576
+ case 1: {
12577
+ message.startPrice = $root.google.type.Money.decode(reader, reader.uint32());
12578
+ break;
12579
+ }
12580
+ case 2: {
12581
+ message.endPrice = $root.google.type.Money.decode(reader, reader.uint32());
12582
+ break;
12583
+ }
12584
+ default:
12585
+ reader.skipType(tag & 7);
12586
+ break;
12587
+ }
12588
+ }
12589
+ return message;
12590
+ };
12591
+
12592
+ /**
12593
+ * Decodes a PriceRange message from the specified reader or buffer, length delimited.
12594
+ * @function decodeDelimited
12595
+ * @memberof google.maps.places.v1.PriceRange
12596
+ * @static
12597
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12598
+ * @returns {google.maps.places.v1.PriceRange} PriceRange
12599
+ * @throws {Error} If the payload is not a reader or valid buffer
12600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12601
+ */
12602
+ PriceRange.decodeDelimited = function decodeDelimited(reader) {
12603
+ if (!(reader instanceof $Reader))
12604
+ reader = new $Reader(reader);
12605
+ return this.decode(reader, reader.uint32());
12606
+ };
12607
+
12608
+ /**
12609
+ * Verifies a PriceRange message.
12610
+ * @function verify
12611
+ * @memberof google.maps.places.v1.PriceRange
12612
+ * @static
12613
+ * @param {Object.<string,*>} message Plain object to verify
12614
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12615
+ */
12616
+ PriceRange.verify = function verify(message) {
12617
+ if (typeof message !== "object" || message === null)
12618
+ return "object expected";
12619
+ if (message.startPrice != null && message.hasOwnProperty("startPrice")) {
12620
+ var error = $root.google.type.Money.verify(message.startPrice);
12621
+ if (error)
12622
+ return "startPrice." + error;
12623
+ }
12624
+ if (message.endPrice != null && message.hasOwnProperty("endPrice")) {
12625
+ var error = $root.google.type.Money.verify(message.endPrice);
12626
+ if (error)
12627
+ return "endPrice." + error;
12628
+ }
12629
+ return null;
12630
+ };
12631
+
12632
+ /**
12633
+ * Creates a PriceRange message from a plain object. Also converts values to their respective internal types.
12634
+ * @function fromObject
12635
+ * @memberof google.maps.places.v1.PriceRange
12636
+ * @static
12637
+ * @param {Object.<string,*>} object Plain object
12638
+ * @returns {google.maps.places.v1.PriceRange} PriceRange
12639
+ */
12640
+ PriceRange.fromObject = function fromObject(object) {
12641
+ if (object instanceof $root.google.maps.places.v1.PriceRange)
12642
+ return object;
12643
+ var message = new $root.google.maps.places.v1.PriceRange();
12644
+ if (object.startPrice != null) {
12645
+ if (typeof object.startPrice !== "object")
12646
+ throw TypeError(".google.maps.places.v1.PriceRange.startPrice: object expected");
12647
+ message.startPrice = $root.google.type.Money.fromObject(object.startPrice);
12648
+ }
12649
+ if (object.endPrice != null) {
12650
+ if (typeof object.endPrice !== "object")
12651
+ throw TypeError(".google.maps.places.v1.PriceRange.endPrice: object expected");
12652
+ message.endPrice = $root.google.type.Money.fromObject(object.endPrice);
12653
+ }
12654
+ return message;
12655
+ };
12656
+
12657
+ /**
12658
+ * Creates a plain object from a PriceRange message. Also converts values to other types if specified.
12659
+ * @function toObject
12660
+ * @memberof google.maps.places.v1.PriceRange
12661
+ * @static
12662
+ * @param {google.maps.places.v1.PriceRange} message PriceRange
12663
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12664
+ * @returns {Object.<string,*>} Plain object
12665
+ */
12666
+ PriceRange.toObject = function toObject(message, options) {
12667
+ if (!options)
12668
+ options = {};
12669
+ var object = {};
12670
+ if (options.defaults) {
12671
+ object.startPrice = null;
12672
+ object.endPrice = null;
12673
+ }
12674
+ if (message.startPrice != null && message.hasOwnProperty("startPrice"))
12675
+ object.startPrice = $root.google.type.Money.toObject(message.startPrice, options);
12676
+ if (message.endPrice != null && message.hasOwnProperty("endPrice"))
12677
+ object.endPrice = $root.google.type.Money.toObject(message.endPrice, options);
12678
+ return object;
12679
+ };
12680
+
12681
+ /**
12682
+ * Converts this PriceRange to JSON.
12683
+ * @function toJSON
12684
+ * @memberof google.maps.places.v1.PriceRange
12685
+ * @instance
12686
+ * @returns {Object.<string,*>} JSON object
12687
+ */
12688
+ PriceRange.prototype.toJSON = function toJSON() {
12689
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12690
+ };
12691
+
12692
+ /**
12693
+ * Gets the default type url for PriceRange
12694
+ * @function getTypeUrl
12695
+ * @memberof google.maps.places.v1.PriceRange
12696
+ * @static
12697
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12698
+ * @returns {string} The default type url
12699
+ */
12700
+ PriceRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
12701
+ if (typeUrlPrefix === undefined) {
12702
+ typeUrlPrefix = "type.googleapis.com";
12703
+ }
12704
+ return typeUrlPrefix + "/google.maps.places.v1.PriceRange";
12705
+ };
12706
+
12707
+ return PriceRange;
12708
+ })();
12709
+
12079
12710
  v1.Places = (function() {
12080
12711
 
12081
12712
  /**
@@ -13666,6 +14297,7 @@
13666
14297
  * @property {google.maps.places.v1.SearchTextRequest.IEVOptions|null} [evOptions] SearchTextRequest evOptions
13667
14298
  * @property {google.maps.places.v1.IRoutingParameters|null} [routingParameters] SearchTextRequest routingParameters
13668
14299
  * @property {google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null} [searchAlongRouteParameters] SearchTextRequest searchAlongRouteParameters
14300
+ * @property {boolean|null} [includePureServiceAreaBusinesses] SearchTextRequest includePureServiceAreaBusinesses
13669
14301
  */
13670
14302
 
13671
14303
  /**
@@ -13804,6 +14436,14 @@
13804
14436
  */
13805
14437
  SearchTextRequest.prototype.searchAlongRouteParameters = null;
13806
14438
 
14439
+ /**
14440
+ * SearchTextRequest includePureServiceAreaBusinesses.
14441
+ * @member {boolean} includePureServiceAreaBusinesses
14442
+ * @memberof google.maps.places.v1.SearchTextRequest
14443
+ * @instance
14444
+ */
14445
+ SearchTextRequest.prototype.includePureServiceAreaBusinesses = false;
14446
+
13807
14447
  /**
13808
14448
  * Creates a new SearchTextRequest instance using the specified properties.
13809
14449
  * @function create
@@ -13862,6 +14502,8 @@
13862
14502
  $root.google.maps.places.v1.RoutingParameters.encode(message.routingParameters, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
13863
14503
  if (message.searchAlongRouteParameters != null && Object.hasOwnProperty.call(message, "searchAlongRouteParameters"))
13864
14504
  $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.encode(message.searchAlongRouteParameters, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
14505
+ if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses"))
14506
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.includePureServiceAreaBusinesses);
13865
14507
  return writer;
13866
14508
  };
13867
14509
 
@@ -13963,6 +14605,10 @@
13963
14605
  message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.decode(reader, reader.uint32());
13964
14606
  break;
13965
14607
  }
14608
+ case 20: {
14609
+ message.includePureServiceAreaBusinesses = reader.bool();
14610
+ break;
14611
+ }
13966
14612
  default:
13967
14613
  reader.skipType(tag & 7);
13968
14614
  break;
@@ -14072,6 +14718,9 @@
14072
14718
  if (error)
14073
14719
  return "searchAlongRouteParameters." + error;
14074
14720
  }
14721
+ if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
14722
+ if (typeof message.includePureServiceAreaBusinesses !== "boolean")
14723
+ return "includePureServiceAreaBusinesses: boolean expected";
14075
14724
  return null;
14076
14725
  };
14077
14726
 
@@ -14185,6 +14834,8 @@
14185
14834
  throw TypeError(".google.maps.places.v1.SearchTextRequest.searchAlongRouteParameters: object expected");
14186
14835
  message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.fromObject(object.searchAlongRouteParameters);
14187
14836
  }
14837
+ if (object.includePureServiceAreaBusinesses != null)
14838
+ message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses);
14188
14839
  return message;
14189
14840
  };
14190
14841
 
@@ -14218,6 +14869,7 @@
14218
14869
  object.evOptions = null;
14219
14870
  object.routingParameters = null;
14220
14871
  object.searchAlongRouteParameters = null;
14872
+ object.includePureServiceAreaBusinesses = false;
14221
14873
  }
14222
14874
  if (message.textQuery != null && message.hasOwnProperty("textQuery"))
14223
14875
  object.textQuery = message.textQuery;
@@ -14252,6 +14904,8 @@
14252
14904
  object.routingParameters = $root.google.maps.places.v1.RoutingParameters.toObject(message.routingParameters, options);
14253
14905
  if (message.searchAlongRouteParameters != null && message.hasOwnProperty("searchAlongRouteParameters"))
14254
14906
  object.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.toObject(message.searchAlongRouteParameters, options);
14907
+ if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
14908
+ object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses;
14255
14909
  return object;
14256
14910
  };
14257
14911
 
@@ -16410,6 +17064,7 @@
16410
17064
  * @property {number|null} [inputOffset] AutocompletePlacesRequest inputOffset
16411
17065
  * @property {boolean|null} [includeQueryPredictions] AutocompletePlacesRequest includeQueryPredictions
16412
17066
  * @property {string|null} [sessionToken] AutocompletePlacesRequest sessionToken
17067
+ * @property {boolean|null} [includePureServiceAreaBusinesses] AutocompletePlacesRequest includePureServiceAreaBusinesses
16413
17068
  */
16414
17069
 
16415
17070
  /**
@@ -16517,6 +17172,14 @@
16517
17172
  */
16518
17173
  AutocompletePlacesRequest.prototype.sessionToken = "";
16519
17174
 
17175
+ /**
17176
+ * AutocompletePlacesRequest includePureServiceAreaBusinesses.
17177
+ * @member {boolean} includePureServiceAreaBusinesses
17178
+ * @memberof google.maps.places.v1.AutocompletePlacesRequest
17179
+ * @instance
17180
+ */
17181
+ AutocompletePlacesRequest.prototype.includePureServiceAreaBusinesses = false;
17182
+
16520
17183
  /**
16521
17184
  * Creates a new AutocompletePlacesRequest instance using the specified properties.
16522
17185
  * @function create
@@ -16565,6 +17228,8 @@
16565
17228
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.includeQueryPredictions);
16566
17229
  if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken"))
16567
17230
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.sessionToken);
17231
+ if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses"))
17232
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.includePureServiceAreaBusinesses);
16568
17233
  return writer;
16569
17234
  };
16570
17235
 
@@ -16647,6 +17312,10 @@
16647
17312
  message.sessionToken = reader.string();
16648
17313
  break;
16649
17314
  }
17315
+ case 12: {
17316
+ message.includePureServiceAreaBusinesses = reader.bool();
17317
+ break;
17318
+ }
16650
17319
  default:
16651
17320
  reader.skipType(tag & 7);
16652
17321
  break;
@@ -16729,6 +17398,9 @@
16729
17398
  if (message.sessionToken != null && message.hasOwnProperty("sessionToken"))
16730
17399
  if (!$util.isString(message.sessionToken))
16731
17400
  return "sessionToken: string expected";
17401
+ if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
17402
+ if (typeof message.includePureServiceAreaBusinesses !== "boolean")
17403
+ return "includePureServiceAreaBusinesses: boolean expected";
16732
17404
  return null;
16733
17405
  };
16734
17406
 
@@ -16785,6 +17457,8 @@
16785
17457
  message.includeQueryPredictions = Boolean(object.includeQueryPredictions);
16786
17458
  if (object.sessionToken != null)
16787
17459
  message.sessionToken = String(object.sessionToken);
17460
+ if (object.includePureServiceAreaBusinesses != null)
17461
+ message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses);
16788
17462
  return message;
16789
17463
  };
16790
17464
 
@@ -16815,6 +17489,7 @@
16815
17489
  object.inputOffset = 0;
16816
17490
  object.includeQueryPredictions = false;
16817
17491
  object.sessionToken = "";
17492
+ object.includePureServiceAreaBusinesses = false;
16818
17493
  }
16819
17494
  if (message.input != null && message.hasOwnProperty("input"))
16820
17495
  object.input = message.input;
@@ -16844,6 +17519,8 @@
16844
17519
  object.includeQueryPredictions = message.includeQueryPredictions;
16845
17520
  if (message.sessionToken != null && message.hasOwnProperty("sessionToken"))
16846
17521
  object.sessionToken = message.sessionToken;
17522
+ if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses"))
17523
+ object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses;
16847
17524
  return object;
16848
17525
  };
16849
17526
 
@@ -19700,6 +20377,7 @@
19700
20377
  * @memberof google.maps.places.v1
19701
20378
  * @interface IRoutingSummary
19702
20379
  * @property {Array.<google.maps.places.v1.RoutingSummary.ILeg>|null} [legs] RoutingSummary legs
20380
+ * @property {string|null} [directionsUri] RoutingSummary directionsUri
19703
20381
  */
19704
20382
 
19705
20383
  /**
@@ -19726,6 +20404,14 @@
19726
20404
  */
19727
20405
  RoutingSummary.prototype.legs = $util.emptyArray;
19728
20406
 
20407
+ /**
20408
+ * RoutingSummary directionsUri.
20409
+ * @member {string} directionsUri
20410
+ * @memberof google.maps.places.v1.RoutingSummary
20411
+ * @instance
20412
+ */
20413
+ RoutingSummary.prototype.directionsUri = "";
20414
+
19729
20415
  /**
19730
20416
  * Creates a new RoutingSummary instance using the specified properties.
19731
20417
  * @function create
@@ -19753,6 +20439,8 @@
19753
20439
  if (message.legs != null && message.legs.length)
19754
20440
  for (var i = 0; i < message.legs.length; ++i)
19755
20441
  $root.google.maps.places.v1.RoutingSummary.Leg.encode(message.legs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
20442
+ if (message.directionsUri != null && Object.hasOwnProperty.call(message, "directionsUri"))
20443
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.directionsUri);
19756
20444
  return writer;
19757
20445
  };
19758
20446
 
@@ -19793,6 +20481,10 @@
19793
20481
  message.legs.push($root.google.maps.places.v1.RoutingSummary.Leg.decode(reader, reader.uint32()));
19794
20482
  break;
19795
20483
  }
20484
+ case 2: {
20485
+ message.directionsUri = reader.string();
20486
+ break;
20487
+ }
19796
20488
  default:
19797
20489
  reader.skipType(tag & 7);
19798
20490
  break;
@@ -19837,6 +20529,9 @@
19837
20529
  return "legs." + error;
19838
20530
  }
19839
20531
  }
20532
+ if (message.directionsUri != null && message.hasOwnProperty("directionsUri"))
20533
+ if (!$util.isString(message.directionsUri))
20534
+ return "directionsUri: string expected";
19840
20535
  return null;
19841
20536
  };
19842
20537
 
@@ -19862,6 +20557,8 @@
19862
20557
  message.legs[i] = $root.google.maps.places.v1.RoutingSummary.Leg.fromObject(object.legs[i]);
19863
20558
  }
19864
20559
  }
20560
+ if (object.directionsUri != null)
20561
+ message.directionsUri = String(object.directionsUri);
19865
20562
  return message;
19866
20563
  };
19867
20564
 
@@ -19880,11 +20577,15 @@
19880
20577
  var object = {};
19881
20578
  if (options.arrays || options.defaults)
19882
20579
  object.legs = [];
20580
+ if (options.defaults)
20581
+ object.directionsUri = "";
19883
20582
  if (message.legs && message.legs.length) {
19884
20583
  object.legs = [];
19885
20584
  for (var j = 0; j < message.legs.length; ++j)
19886
20585
  object.legs[j] = $root.google.maps.places.v1.RoutingSummary.Leg.toObject(message.legs[j], options);
19887
20586
  }
20587
+ if (message.directionsUri != null && message.hasOwnProperty("directionsUri"))
20588
+ object.directionsUri = message.directionsUri;
19888
20589
  return object;
19889
20590
  };
19890
20591