@googlemaps/places 2.1.0 → 2.2.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/build/protos/protos.js
CHANGED
|
@@ -4284,6 +4284,7 @@
|
|
|
4284
4284
|
* @property {google.protobuf.ITimestamp|null} [publishTime] Review publishTime
|
|
4285
4285
|
* @property {string|null} [flagContentUri] Review flagContentUri
|
|
4286
4286
|
* @property {string|null} [googleMapsUri] Review googleMapsUri
|
|
4287
|
+
* @property {google.type.IDate|null} [visitDate] Review visitDate
|
|
4287
4288
|
*/
|
|
4288
4289
|
|
|
4289
4290
|
/**
|
|
@@ -4373,6 +4374,14 @@
|
|
|
4373
4374
|
*/
|
|
4374
4375
|
Review.prototype.googleMapsUri = "";
|
|
4375
4376
|
|
|
4377
|
+
/**
|
|
4378
|
+
* Review visitDate.
|
|
4379
|
+
* @member {google.type.IDate|null|undefined} visitDate
|
|
4380
|
+
* @memberof google.maps.places.v1.Review
|
|
4381
|
+
* @instance
|
|
4382
|
+
*/
|
|
4383
|
+
Review.prototype.visitDate = null;
|
|
4384
|
+
|
|
4376
4385
|
/**
|
|
4377
4386
|
* Creates a new Review instance using the specified properties.
|
|
4378
4387
|
* @function create
|
|
@@ -4415,6 +4424,8 @@
|
|
|
4415
4424
|
writer.uint32(/* id 15, wireType 2 =*/122).string(message.flagContentUri);
|
|
4416
4425
|
if (message.googleMapsUri != null && Object.hasOwnProperty.call(message, "googleMapsUri"))
|
|
4417
4426
|
writer.uint32(/* id 16, wireType 2 =*/130).string(message.googleMapsUri);
|
|
4427
|
+
if (message.visitDate != null && Object.hasOwnProperty.call(message, "visitDate"))
|
|
4428
|
+
$root.google.type.Date.encode(message.visitDate, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
4418
4429
|
return writer;
|
|
4419
4430
|
};
|
|
4420
4431
|
|
|
@@ -4487,6 +4498,10 @@
|
|
|
4487
4498
|
message.googleMapsUri = reader.string();
|
|
4488
4499
|
break;
|
|
4489
4500
|
}
|
|
4501
|
+
case 17: {
|
|
4502
|
+
message.visitDate = $root.google.type.Date.decode(reader, reader.uint32());
|
|
4503
|
+
break;
|
|
4504
|
+
}
|
|
4490
4505
|
default:
|
|
4491
4506
|
reader.skipType(tag & 7);
|
|
4492
4507
|
break;
|
|
@@ -4557,6 +4572,11 @@
|
|
|
4557
4572
|
if (message.googleMapsUri != null && message.hasOwnProperty("googleMapsUri"))
|
|
4558
4573
|
if (!$util.isString(message.googleMapsUri))
|
|
4559
4574
|
return "googleMapsUri: string expected";
|
|
4575
|
+
if (message.visitDate != null && message.hasOwnProperty("visitDate")) {
|
|
4576
|
+
var error = $root.google.type.Date.verify(message.visitDate);
|
|
4577
|
+
if (error)
|
|
4578
|
+
return "visitDate." + error;
|
|
4579
|
+
}
|
|
4560
4580
|
return null;
|
|
4561
4581
|
};
|
|
4562
4582
|
|
|
@@ -4602,6 +4622,11 @@
|
|
|
4602
4622
|
message.flagContentUri = String(object.flagContentUri);
|
|
4603
4623
|
if (object.googleMapsUri != null)
|
|
4604
4624
|
message.googleMapsUri = String(object.googleMapsUri);
|
|
4625
|
+
if (object.visitDate != null) {
|
|
4626
|
+
if (typeof object.visitDate !== "object")
|
|
4627
|
+
throw TypeError(".google.maps.places.v1.Review.visitDate: object expected");
|
|
4628
|
+
message.visitDate = $root.google.type.Date.fromObject(object.visitDate);
|
|
4629
|
+
}
|
|
4605
4630
|
return message;
|
|
4606
4631
|
};
|
|
4607
4632
|
|
|
@@ -4628,6 +4653,7 @@
|
|
|
4628
4653
|
object.publishTime = null;
|
|
4629
4654
|
object.flagContentUri = "";
|
|
4630
4655
|
object.googleMapsUri = "";
|
|
4656
|
+
object.visitDate = null;
|
|
4631
4657
|
}
|
|
4632
4658
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
4633
4659
|
object.name = message.name;
|
|
@@ -4647,6 +4673,8 @@
|
|
|
4647
4673
|
object.flagContentUri = message.flagContentUri;
|
|
4648
4674
|
if (message.googleMapsUri != null && message.hasOwnProperty("googleMapsUri"))
|
|
4649
4675
|
object.googleMapsUri = message.googleMapsUri;
|
|
4676
|
+
if (message.visitDate != null && message.hasOwnProperty("visitDate"))
|
|
4677
|
+
object.visitDate = $root.google.type.Date.toObject(message.visitDate, options);
|
|
4650
4678
|
return object;
|
|
4651
4679
|
};
|
|
4652
4680
|
|
|
@@ -8232,6 +8260,9 @@
|
|
|
8232
8260
|
* @property {google.maps.places.v1.Place.IReviewSummary|null} [reviewSummary] Place reviewSummary
|
|
8233
8261
|
* @property {google.maps.places.v1.Place.IEvChargeAmenitySummary|null} [evChargeAmenitySummary] Place evChargeAmenitySummary
|
|
8234
8262
|
* @property {google.maps.places.v1.Place.INeighborhoodSummary|null} [neighborhoodSummary] Place neighborhoodSummary
|
|
8263
|
+
* @property {google.maps.places.v1.Place.IConsumerAlert|null} [consumerAlert] Place consumerAlert
|
|
8264
|
+
* @property {string|null} [movedPlace] Place movedPlace
|
|
8265
|
+
* @property {string|null} [movedPlaceId] Place movedPlaceId
|
|
8235
8266
|
*/
|
|
8236
8267
|
|
|
8237
8268
|
/**
|
|
@@ -8826,6 +8857,30 @@
|
|
|
8826
8857
|
*/
|
|
8827
8858
|
Place.prototype.neighborhoodSummary = null;
|
|
8828
8859
|
|
|
8860
|
+
/**
|
|
8861
|
+
* Place consumerAlert.
|
|
8862
|
+
* @member {google.maps.places.v1.Place.IConsumerAlert|null|undefined} consumerAlert
|
|
8863
|
+
* @memberof google.maps.places.v1.Place
|
|
8864
|
+
* @instance
|
|
8865
|
+
*/
|
|
8866
|
+
Place.prototype.consumerAlert = null;
|
|
8867
|
+
|
|
8868
|
+
/**
|
|
8869
|
+
* Place movedPlace.
|
|
8870
|
+
* @member {string} movedPlace
|
|
8871
|
+
* @memberof google.maps.places.v1.Place
|
|
8872
|
+
* @instance
|
|
8873
|
+
*/
|
|
8874
|
+
Place.prototype.movedPlace = "";
|
|
8875
|
+
|
|
8876
|
+
/**
|
|
8877
|
+
* Place movedPlaceId.
|
|
8878
|
+
* @member {string} movedPlaceId
|
|
8879
|
+
* @memberof google.maps.places.v1.Place
|
|
8880
|
+
* @instance
|
|
8881
|
+
*/
|
|
8882
|
+
Place.prototype.movedPlaceId = "";
|
|
8883
|
+
|
|
8829
8884
|
// OneOf field names bound to virtual getters and setters
|
|
8830
8885
|
var $oneOfFields;
|
|
8831
8886
|
|
|
@@ -9166,6 +9221,12 @@
|
|
|
9166
9221
|
$root.google.type.PostalAddress.encode(message.postalAddress, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
|
|
9167
9222
|
if (message.neighborhoodSummary != null && Object.hasOwnProperty.call(message, "neighborhoodSummary"))
|
|
9168
9223
|
$root.google.maps.places.v1.Place.NeighborhoodSummary.encode(message.neighborhoodSummary, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
|
|
9224
|
+
if (message.consumerAlert != null && Object.hasOwnProperty.call(message, "consumerAlert"))
|
|
9225
|
+
$root.google.maps.places.v1.Place.ConsumerAlert.encode(message.consumerAlert, writer.uint32(/* id 92, wireType 2 =*/738).fork()).ldelim();
|
|
9226
|
+
if (message.movedPlace != null && Object.hasOwnProperty.call(message, "movedPlace"))
|
|
9227
|
+
writer.uint32(/* id 93, wireType 2 =*/746).string(message.movedPlace);
|
|
9228
|
+
if (message.movedPlaceId != null && Object.hasOwnProperty.call(message, "movedPlaceId"))
|
|
9229
|
+
writer.uint32(/* id 94, wireType 2 =*/754).string(message.movedPlaceId);
|
|
9169
9230
|
return writer;
|
|
9170
9231
|
};
|
|
9171
9232
|
|
|
@@ -9504,6 +9565,18 @@
|
|
|
9504
9565
|
message.neighborhoodSummary = $root.google.maps.places.v1.Place.NeighborhoodSummary.decode(reader, reader.uint32());
|
|
9505
9566
|
break;
|
|
9506
9567
|
}
|
|
9568
|
+
case 92: {
|
|
9569
|
+
message.consumerAlert = $root.google.maps.places.v1.Place.ConsumerAlert.decode(reader, reader.uint32());
|
|
9570
|
+
break;
|
|
9571
|
+
}
|
|
9572
|
+
case 93: {
|
|
9573
|
+
message.movedPlace = reader.string();
|
|
9574
|
+
break;
|
|
9575
|
+
}
|
|
9576
|
+
case 94: {
|
|
9577
|
+
message.movedPlaceId = reader.string();
|
|
9578
|
+
break;
|
|
9579
|
+
}
|
|
9507
9580
|
default:
|
|
9508
9581
|
reader.skipType(tag & 7);
|
|
9509
9582
|
break;
|
|
@@ -9918,6 +9991,17 @@
|
|
|
9918
9991
|
if (error)
|
|
9919
9992
|
return "neighborhoodSummary." + error;
|
|
9920
9993
|
}
|
|
9994
|
+
if (message.consumerAlert != null && message.hasOwnProperty("consumerAlert")) {
|
|
9995
|
+
var error = $root.google.maps.places.v1.Place.ConsumerAlert.verify(message.consumerAlert);
|
|
9996
|
+
if (error)
|
|
9997
|
+
return "consumerAlert." + error;
|
|
9998
|
+
}
|
|
9999
|
+
if (message.movedPlace != null && message.hasOwnProperty("movedPlace"))
|
|
10000
|
+
if (!$util.isString(message.movedPlace))
|
|
10001
|
+
return "movedPlace: string expected";
|
|
10002
|
+
if (message.movedPlaceId != null && message.hasOwnProperty("movedPlaceId"))
|
|
10003
|
+
if (!$util.isString(message.movedPlaceId))
|
|
10004
|
+
return "movedPlaceId: string expected";
|
|
9921
10005
|
return null;
|
|
9922
10006
|
};
|
|
9923
10007
|
|
|
@@ -10259,6 +10343,15 @@
|
|
|
10259
10343
|
throw TypeError(".google.maps.places.v1.Place.neighborhoodSummary: object expected");
|
|
10260
10344
|
message.neighborhoodSummary = $root.google.maps.places.v1.Place.NeighborhoodSummary.fromObject(object.neighborhoodSummary);
|
|
10261
10345
|
}
|
|
10346
|
+
if (object.consumerAlert != null) {
|
|
10347
|
+
if (typeof object.consumerAlert !== "object")
|
|
10348
|
+
throw TypeError(".google.maps.places.v1.Place.consumerAlert: object expected");
|
|
10349
|
+
message.consumerAlert = $root.google.maps.places.v1.Place.ConsumerAlert.fromObject(object.consumerAlert);
|
|
10350
|
+
}
|
|
10351
|
+
if (object.movedPlace != null)
|
|
10352
|
+
message.movedPlace = String(object.movedPlace);
|
|
10353
|
+
if (object.movedPlaceId != null)
|
|
10354
|
+
message.movedPlaceId = String(object.movedPlaceId);
|
|
10262
10355
|
return message;
|
|
10263
10356
|
};
|
|
10264
10357
|
|
|
@@ -10322,6 +10415,9 @@
|
|
|
10322
10415
|
object.evChargeAmenitySummary = null;
|
|
10323
10416
|
object.postalAddress = null;
|
|
10324
10417
|
object.neighborhoodSummary = null;
|
|
10418
|
+
object.consumerAlert = null;
|
|
10419
|
+
object.movedPlace = "";
|
|
10420
|
+
object.movedPlaceId = "";
|
|
10325
10421
|
}
|
|
10326
10422
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
10327
10423
|
object.name = message.name;
|
|
@@ -10573,6 +10669,12 @@
|
|
|
10573
10669
|
object.postalAddress = $root.google.type.PostalAddress.toObject(message.postalAddress, options);
|
|
10574
10670
|
if (message.neighborhoodSummary != null && message.hasOwnProperty("neighborhoodSummary"))
|
|
10575
10671
|
object.neighborhoodSummary = $root.google.maps.places.v1.Place.NeighborhoodSummary.toObject(message.neighborhoodSummary, options);
|
|
10672
|
+
if (message.consumerAlert != null && message.hasOwnProperty("consumerAlert"))
|
|
10673
|
+
object.consumerAlert = $root.google.maps.places.v1.Place.ConsumerAlert.toObject(message.consumerAlert, options);
|
|
10674
|
+
if (message.movedPlace != null && message.hasOwnProperty("movedPlace"))
|
|
10675
|
+
object.movedPlace = message.movedPlace;
|
|
10676
|
+
if (message.movedPlaceId != null && message.hasOwnProperty("movedPlaceId"))
|
|
10677
|
+
object.movedPlaceId = message.movedPlaceId;
|
|
10576
10678
|
return object;
|
|
10577
10679
|
};
|
|
10578
10680
|
|
|
@@ -14480,6 +14582,7 @@
|
|
|
14480
14582
|
* @property {google.type.ILocalizedText|null} [text] ReviewSummary text
|
|
14481
14583
|
* @property {string|null} [flagContentUri] ReviewSummary flagContentUri
|
|
14482
14584
|
* @property {google.type.ILocalizedText|null} [disclosureText] ReviewSummary disclosureText
|
|
14585
|
+
* @property {string|null} [reviewsUri] ReviewSummary reviewsUri
|
|
14483
14586
|
*/
|
|
14484
14587
|
|
|
14485
14588
|
/**
|
|
@@ -14521,6 +14624,14 @@
|
|
|
14521
14624
|
*/
|
|
14522
14625
|
ReviewSummary.prototype.disclosureText = null;
|
|
14523
14626
|
|
|
14627
|
+
/**
|
|
14628
|
+
* ReviewSummary reviewsUri.
|
|
14629
|
+
* @member {string} reviewsUri
|
|
14630
|
+
* @memberof google.maps.places.v1.Place.ReviewSummary
|
|
14631
|
+
* @instance
|
|
14632
|
+
*/
|
|
14633
|
+
ReviewSummary.prototype.reviewsUri = "";
|
|
14634
|
+
|
|
14524
14635
|
/**
|
|
14525
14636
|
* Creates a new ReviewSummary instance using the specified properties.
|
|
14526
14637
|
* @function create
|
|
@@ -14551,6 +14662,8 @@
|
|
|
14551
14662
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.flagContentUri);
|
|
14552
14663
|
if (message.disclosureText != null && Object.hasOwnProperty.call(message, "disclosureText"))
|
|
14553
14664
|
$root.google.type.LocalizedText.encode(message.disclosureText, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14665
|
+
if (message.reviewsUri != null && Object.hasOwnProperty.call(message, "reviewsUri"))
|
|
14666
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.reviewsUri);
|
|
14554
14667
|
return writer;
|
|
14555
14668
|
};
|
|
14556
14669
|
|
|
@@ -14599,6 +14712,10 @@
|
|
|
14599
14712
|
message.disclosureText = $root.google.type.LocalizedText.decode(reader, reader.uint32());
|
|
14600
14713
|
break;
|
|
14601
14714
|
}
|
|
14715
|
+
case 4: {
|
|
14716
|
+
message.reviewsUri = reader.string();
|
|
14717
|
+
break;
|
|
14718
|
+
}
|
|
14602
14719
|
default:
|
|
14603
14720
|
reader.skipType(tag & 7);
|
|
14604
14721
|
break;
|
|
@@ -14647,6 +14764,9 @@
|
|
|
14647
14764
|
if (error)
|
|
14648
14765
|
return "disclosureText." + error;
|
|
14649
14766
|
}
|
|
14767
|
+
if (message.reviewsUri != null && message.hasOwnProperty("reviewsUri"))
|
|
14768
|
+
if (!$util.isString(message.reviewsUri))
|
|
14769
|
+
return "reviewsUri: string expected";
|
|
14650
14770
|
return null;
|
|
14651
14771
|
};
|
|
14652
14772
|
|
|
@@ -14674,6 +14794,8 @@
|
|
|
14674
14794
|
throw TypeError(".google.maps.places.v1.Place.ReviewSummary.disclosureText: object expected");
|
|
14675
14795
|
message.disclosureText = $root.google.type.LocalizedText.fromObject(object.disclosureText);
|
|
14676
14796
|
}
|
|
14797
|
+
if (object.reviewsUri != null)
|
|
14798
|
+
message.reviewsUri = String(object.reviewsUri);
|
|
14677
14799
|
return message;
|
|
14678
14800
|
};
|
|
14679
14801
|
|
|
@@ -14694,6 +14816,7 @@
|
|
|
14694
14816
|
object.text = null;
|
|
14695
14817
|
object.flagContentUri = "";
|
|
14696
14818
|
object.disclosureText = null;
|
|
14819
|
+
object.reviewsUri = "";
|
|
14697
14820
|
}
|
|
14698
14821
|
if (message.text != null && message.hasOwnProperty("text"))
|
|
14699
14822
|
object.text = $root.google.type.LocalizedText.toObject(message.text, options);
|
|
@@ -14701,6 +14824,8 @@
|
|
|
14701
14824
|
object.flagContentUri = message.flagContentUri;
|
|
14702
14825
|
if (message.disclosureText != null && message.hasOwnProperty("disclosureText"))
|
|
14703
14826
|
object.disclosureText = $root.google.type.LocalizedText.toObject(message.disclosureText, options);
|
|
14827
|
+
if (message.reviewsUri != null && message.hasOwnProperty("reviewsUri"))
|
|
14828
|
+
object.reviewsUri = message.reviewsUri;
|
|
14704
14829
|
return object;
|
|
14705
14830
|
};
|
|
14706
14831
|
|
|
@@ -15369,6 +15494,749 @@
|
|
|
15369
15494
|
return NeighborhoodSummary;
|
|
15370
15495
|
})();
|
|
15371
15496
|
|
|
15497
|
+
Place.ConsumerAlert = (function() {
|
|
15498
|
+
|
|
15499
|
+
/**
|
|
15500
|
+
* Properties of a ConsumerAlert.
|
|
15501
|
+
* @memberof google.maps.places.v1.Place
|
|
15502
|
+
* @interface IConsumerAlert
|
|
15503
|
+
* @property {string|null} [overview] ConsumerAlert overview
|
|
15504
|
+
* @property {google.maps.places.v1.Place.ConsumerAlert.IDetails|null} [details] ConsumerAlert details
|
|
15505
|
+
* @property {string|null} [languageCode] ConsumerAlert languageCode
|
|
15506
|
+
*/
|
|
15507
|
+
|
|
15508
|
+
/**
|
|
15509
|
+
* Constructs a new ConsumerAlert.
|
|
15510
|
+
* @memberof google.maps.places.v1.Place
|
|
15511
|
+
* @classdesc Represents a ConsumerAlert.
|
|
15512
|
+
* @implements IConsumerAlert
|
|
15513
|
+
* @constructor
|
|
15514
|
+
* @param {google.maps.places.v1.Place.IConsumerAlert=} [properties] Properties to set
|
|
15515
|
+
*/
|
|
15516
|
+
function ConsumerAlert(properties) {
|
|
15517
|
+
if (properties)
|
|
15518
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15519
|
+
if (properties[keys[i]] != null)
|
|
15520
|
+
this[keys[i]] = properties[keys[i]];
|
|
15521
|
+
}
|
|
15522
|
+
|
|
15523
|
+
/**
|
|
15524
|
+
* ConsumerAlert overview.
|
|
15525
|
+
* @member {string} overview
|
|
15526
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15527
|
+
* @instance
|
|
15528
|
+
*/
|
|
15529
|
+
ConsumerAlert.prototype.overview = "";
|
|
15530
|
+
|
|
15531
|
+
/**
|
|
15532
|
+
* ConsumerAlert details.
|
|
15533
|
+
* @member {google.maps.places.v1.Place.ConsumerAlert.IDetails|null|undefined} details
|
|
15534
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15535
|
+
* @instance
|
|
15536
|
+
*/
|
|
15537
|
+
ConsumerAlert.prototype.details = null;
|
|
15538
|
+
|
|
15539
|
+
/**
|
|
15540
|
+
* ConsumerAlert languageCode.
|
|
15541
|
+
* @member {string} languageCode
|
|
15542
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15543
|
+
* @instance
|
|
15544
|
+
*/
|
|
15545
|
+
ConsumerAlert.prototype.languageCode = "";
|
|
15546
|
+
|
|
15547
|
+
/**
|
|
15548
|
+
* Creates a new ConsumerAlert instance using the specified properties.
|
|
15549
|
+
* @function create
|
|
15550
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15551
|
+
* @static
|
|
15552
|
+
* @param {google.maps.places.v1.Place.IConsumerAlert=} [properties] Properties to set
|
|
15553
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert} ConsumerAlert instance
|
|
15554
|
+
*/
|
|
15555
|
+
ConsumerAlert.create = function create(properties) {
|
|
15556
|
+
return new ConsumerAlert(properties);
|
|
15557
|
+
};
|
|
15558
|
+
|
|
15559
|
+
/**
|
|
15560
|
+
* Encodes the specified ConsumerAlert message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.verify|verify} messages.
|
|
15561
|
+
* @function encode
|
|
15562
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15563
|
+
* @static
|
|
15564
|
+
* @param {google.maps.places.v1.Place.IConsumerAlert} message ConsumerAlert message or plain object to encode
|
|
15565
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15566
|
+
* @returns {$protobuf.Writer} Writer
|
|
15567
|
+
*/
|
|
15568
|
+
ConsumerAlert.encode = function encode(message, writer) {
|
|
15569
|
+
if (!writer)
|
|
15570
|
+
writer = $Writer.create();
|
|
15571
|
+
if (message.overview != null && Object.hasOwnProperty.call(message, "overview"))
|
|
15572
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.overview);
|
|
15573
|
+
if (message.details != null && Object.hasOwnProperty.call(message, "details"))
|
|
15574
|
+
$root.google.maps.places.v1.Place.ConsumerAlert.Details.encode(message.details, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
15575
|
+
if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
|
|
15576
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode);
|
|
15577
|
+
return writer;
|
|
15578
|
+
};
|
|
15579
|
+
|
|
15580
|
+
/**
|
|
15581
|
+
* Encodes the specified ConsumerAlert message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.verify|verify} messages.
|
|
15582
|
+
* @function encodeDelimited
|
|
15583
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15584
|
+
* @static
|
|
15585
|
+
* @param {google.maps.places.v1.Place.IConsumerAlert} message ConsumerAlert message or plain object to encode
|
|
15586
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15587
|
+
* @returns {$protobuf.Writer} Writer
|
|
15588
|
+
*/
|
|
15589
|
+
ConsumerAlert.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15590
|
+
return this.encode(message, writer).ldelim();
|
|
15591
|
+
};
|
|
15592
|
+
|
|
15593
|
+
/**
|
|
15594
|
+
* Decodes a ConsumerAlert message from the specified reader or buffer.
|
|
15595
|
+
* @function decode
|
|
15596
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15597
|
+
* @static
|
|
15598
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15599
|
+
* @param {number} [length] Message length if known beforehand
|
|
15600
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert} ConsumerAlert
|
|
15601
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15602
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15603
|
+
*/
|
|
15604
|
+
ConsumerAlert.decode = function decode(reader, length, error) {
|
|
15605
|
+
if (!(reader instanceof $Reader))
|
|
15606
|
+
reader = $Reader.create(reader);
|
|
15607
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ConsumerAlert();
|
|
15608
|
+
while (reader.pos < end) {
|
|
15609
|
+
var tag = reader.uint32();
|
|
15610
|
+
if (tag === error)
|
|
15611
|
+
break;
|
|
15612
|
+
switch (tag >>> 3) {
|
|
15613
|
+
case 1: {
|
|
15614
|
+
message.overview = reader.string();
|
|
15615
|
+
break;
|
|
15616
|
+
}
|
|
15617
|
+
case 2: {
|
|
15618
|
+
message.details = $root.google.maps.places.v1.Place.ConsumerAlert.Details.decode(reader, reader.uint32());
|
|
15619
|
+
break;
|
|
15620
|
+
}
|
|
15621
|
+
case 3: {
|
|
15622
|
+
message.languageCode = reader.string();
|
|
15623
|
+
break;
|
|
15624
|
+
}
|
|
15625
|
+
default:
|
|
15626
|
+
reader.skipType(tag & 7);
|
|
15627
|
+
break;
|
|
15628
|
+
}
|
|
15629
|
+
}
|
|
15630
|
+
return message;
|
|
15631
|
+
};
|
|
15632
|
+
|
|
15633
|
+
/**
|
|
15634
|
+
* Decodes a ConsumerAlert message from the specified reader or buffer, length delimited.
|
|
15635
|
+
* @function decodeDelimited
|
|
15636
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15637
|
+
* @static
|
|
15638
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15639
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert} ConsumerAlert
|
|
15640
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15641
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15642
|
+
*/
|
|
15643
|
+
ConsumerAlert.decodeDelimited = function decodeDelimited(reader) {
|
|
15644
|
+
if (!(reader instanceof $Reader))
|
|
15645
|
+
reader = new $Reader(reader);
|
|
15646
|
+
return this.decode(reader, reader.uint32());
|
|
15647
|
+
};
|
|
15648
|
+
|
|
15649
|
+
/**
|
|
15650
|
+
* Verifies a ConsumerAlert message.
|
|
15651
|
+
* @function verify
|
|
15652
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15653
|
+
* @static
|
|
15654
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15655
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15656
|
+
*/
|
|
15657
|
+
ConsumerAlert.verify = function verify(message) {
|
|
15658
|
+
if (typeof message !== "object" || message === null)
|
|
15659
|
+
return "object expected";
|
|
15660
|
+
if (message.overview != null && message.hasOwnProperty("overview"))
|
|
15661
|
+
if (!$util.isString(message.overview))
|
|
15662
|
+
return "overview: string expected";
|
|
15663
|
+
if (message.details != null && message.hasOwnProperty("details")) {
|
|
15664
|
+
var error = $root.google.maps.places.v1.Place.ConsumerAlert.Details.verify(message.details);
|
|
15665
|
+
if (error)
|
|
15666
|
+
return "details." + error;
|
|
15667
|
+
}
|
|
15668
|
+
if (message.languageCode != null && message.hasOwnProperty("languageCode"))
|
|
15669
|
+
if (!$util.isString(message.languageCode))
|
|
15670
|
+
return "languageCode: string expected";
|
|
15671
|
+
return null;
|
|
15672
|
+
};
|
|
15673
|
+
|
|
15674
|
+
/**
|
|
15675
|
+
* Creates a ConsumerAlert message from a plain object. Also converts values to their respective internal types.
|
|
15676
|
+
* @function fromObject
|
|
15677
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15678
|
+
* @static
|
|
15679
|
+
* @param {Object.<string,*>} object Plain object
|
|
15680
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert} ConsumerAlert
|
|
15681
|
+
*/
|
|
15682
|
+
ConsumerAlert.fromObject = function fromObject(object) {
|
|
15683
|
+
if (object instanceof $root.google.maps.places.v1.Place.ConsumerAlert)
|
|
15684
|
+
return object;
|
|
15685
|
+
var message = new $root.google.maps.places.v1.Place.ConsumerAlert();
|
|
15686
|
+
if (object.overview != null)
|
|
15687
|
+
message.overview = String(object.overview);
|
|
15688
|
+
if (object.details != null) {
|
|
15689
|
+
if (typeof object.details !== "object")
|
|
15690
|
+
throw TypeError(".google.maps.places.v1.Place.ConsumerAlert.details: object expected");
|
|
15691
|
+
message.details = $root.google.maps.places.v1.Place.ConsumerAlert.Details.fromObject(object.details);
|
|
15692
|
+
}
|
|
15693
|
+
if (object.languageCode != null)
|
|
15694
|
+
message.languageCode = String(object.languageCode);
|
|
15695
|
+
return message;
|
|
15696
|
+
};
|
|
15697
|
+
|
|
15698
|
+
/**
|
|
15699
|
+
* Creates a plain object from a ConsumerAlert message. Also converts values to other types if specified.
|
|
15700
|
+
* @function toObject
|
|
15701
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15702
|
+
* @static
|
|
15703
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert} message ConsumerAlert
|
|
15704
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15705
|
+
* @returns {Object.<string,*>} Plain object
|
|
15706
|
+
*/
|
|
15707
|
+
ConsumerAlert.toObject = function toObject(message, options) {
|
|
15708
|
+
if (!options)
|
|
15709
|
+
options = {};
|
|
15710
|
+
var object = {};
|
|
15711
|
+
if (options.defaults) {
|
|
15712
|
+
object.overview = "";
|
|
15713
|
+
object.details = null;
|
|
15714
|
+
object.languageCode = "";
|
|
15715
|
+
}
|
|
15716
|
+
if (message.overview != null && message.hasOwnProperty("overview"))
|
|
15717
|
+
object.overview = message.overview;
|
|
15718
|
+
if (message.details != null && message.hasOwnProperty("details"))
|
|
15719
|
+
object.details = $root.google.maps.places.v1.Place.ConsumerAlert.Details.toObject(message.details, options);
|
|
15720
|
+
if (message.languageCode != null && message.hasOwnProperty("languageCode"))
|
|
15721
|
+
object.languageCode = message.languageCode;
|
|
15722
|
+
return object;
|
|
15723
|
+
};
|
|
15724
|
+
|
|
15725
|
+
/**
|
|
15726
|
+
* Converts this ConsumerAlert to JSON.
|
|
15727
|
+
* @function toJSON
|
|
15728
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15729
|
+
* @instance
|
|
15730
|
+
* @returns {Object.<string,*>} JSON object
|
|
15731
|
+
*/
|
|
15732
|
+
ConsumerAlert.prototype.toJSON = function toJSON() {
|
|
15733
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15734
|
+
};
|
|
15735
|
+
|
|
15736
|
+
/**
|
|
15737
|
+
* Gets the default type url for ConsumerAlert
|
|
15738
|
+
* @function getTypeUrl
|
|
15739
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15740
|
+
* @static
|
|
15741
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15742
|
+
* @returns {string} The default type url
|
|
15743
|
+
*/
|
|
15744
|
+
ConsumerAlert.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15745
|
+
if (typeUrlPrefix === undefined) {
|
|
15746
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
15747
|
+
}
|
|
15748
|
+
return typeUrlPrefix + "/google.maps.places.v1.Place.ConsumerAlert";
|
|
15749
|
+
};
|
|
15750
|
+
|
|
15751
|
+
ConsumerAlert.Details = (function() {
|
|
15752
|
+
|
|
15753
|
+
/**
|
|
15754
|
+
* Properties of a Details.
|
|
15755
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15756
|
+
* @interface IDetails
|
|
15757
|
+
* @property {string|null} [title] Details title
|
|
15758
|
+
* @property {string|null} [description] Details description
|
|
15759
|
+
* @property {google.maps.places.v1.Place.ConsumerAlert.Details.ILink|null} [aboutLink] Details aboutLink
|
|
15760
|
+
*/
|
|
15761
|
+
|
|
15762
|
+
/**
|
|
15763
|
+
* Constructs a new Details.
|
|
15764
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert
|
|
15765
|
+
* @classdesc Represents a Details.
|
|
15766
|
+
* @implements IDetails
|
|
15767
|
+
* @constructor
|
|
15768
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.IDetails=} [properties] Properties to set
|
|
15769
|
+
*/
|
|
15770
|
+
function Details(properties) {
|
|
15771
|
+
if (properties)
|
|
15772
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15773
|
+
if (properties[keys[i]] != null)
|
|
15774
|
+
this[keys[i]] = properties[keys[i]];
|
|
15775
|
+
}
|
|
15776
|
+
|
|
15777
|
+
/**
|
|
15778
|
+
* Details title.
|
|
15779
|
+
* @member {string} title
|
|
15780
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15781
|
+
* @instance
|
|
15782
|
+
*/
|
|
15783
|
+
Details.prototype.title = "";
|
|
15784
|
+
|
|
15785
|
+
/**
|
|
15786
|
+
* Details description.
|
|
15787
|
+
* @member {string} description
|
|
15788
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15789
|
+
* @instance
|
|
15790
|
+
*/
|
|
15791
|
+
Details.prototype.description = "";
|
|
15792
|
+
|
|
15793
|
+
/**
|
|
15794
|
+
* Details aboutLink.
|
|
15795
|
+
* @member {google.maps.places.v1.Place.ConsumerAlert.Details.ILink|null|undefined} aboutLink
|
|
15796
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15797
|
+
* @instance
|
|
15798
|
+
*/
|
|
15799
|
+
Details.prototype.aboutLink = null;
|
|
15800
|
+
|
|
15801
|
+
/**
|
|
15802
|
+
* Creates a new Details instance using the specified properties.
|
|
15803
|
+
* @function create
|
|
15804
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15805
|
+
* @static
|
|
15806
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.IDetails=} [properties] Properties to set
|
|
15807
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details} Details instance
|
|
15808
|
+
*/
|
|
15809
|
+
Details.create = function create(properties) {
|
|
15810
|
+
return new Details(properties);
|
|
15811
|
+
};
|
|
15812
|
+
|
|
15813
|
+
/**
|
|
15814
|
+
* Encodes the specified Details message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.verify|verify} messages.
|
|
15815
|
+
* @function encode
|
|
15816
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15817
|
+
* @static
|
|
15818
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.IDetails} message Details message or plain object to encode
|
|
15819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15820
|
+
* @returns {$protobuf.Writer} Writer
|
|
15821
|
+
*/
|
|
15822
|
+
Details.encode = function encode(message, writer) {
|
|
15823
|
+
if (!writer)
|
|
15824
|
+
writer = $Writer.create();
|
|
15825
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
15826
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
15827
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
15828
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
|
|
15829
|
+
if (message.aboutLink != null && Object.hasOwnProperty.call(message, "aboutLink"))
|
|
15830
|
+
$root.google.maps.places.v1.Place.ConsumerAlert.Details.Link.encode(message.aboutLink, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
15831
|
+
return writer;
|
|
15832
|
+
};
|
|
15833
|
+
|
|
15834
|
+
/**
|
|
15835
|
+
* Encodes the specified Details message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.verify|verify} messages.
|
|
15836
|
+
* @function encodeDelimited
|
|
15837
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15838
|
+
* @static
|
|
15839
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.IDetails} message Details message or plain object to encode
|
|
15840
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15841
|
+
* @returns {$protobuf.Writer} Writer
|
|
15842
|
+
*/
|
|
15843
|
+
Details.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15844
|
+
return this.encode(message, writer).ldelim();
|
|
15845
|
+
};
|
|
15846
|
+
|
|
15847
|
+
/**
|
|
15848
|
+
* Decodes a Details message from the specified reader or buffer.
|
|
15849
|
+
* @function decode
|
|
15850
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15851
|
+
* @static
|
|
15852
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15853
|
+
* @param {number} [length] Message length if known beforehand
|
|
15854
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details} Details
|
|
15855
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15856
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15857
|
+
*/
|
|
15858
|
+
Details.decode = function decode(reader, length, error) {
|
|
15859
|
+
if (!(reader instanceof $Reader))
|
|
15860
|
+
reader = $Reader.create(reader);
|
|
15861
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ConsumerAlert.Details();
|
|
15862
|
+
while (reader.pos < end) {
|
|
15863
|
+
var tag = reader.uint32();
|
|
15864
|
+
if (tag === error)
|
|
15865
|
+
break;
|
|
15866
|
+
switch (tag >>> 3) {
|
|
15867
|
+
case 1: {
|
|
15868
|
+
message.title = reader.string();
|
|
15869
|
+
break;
|
|
15870
|
+
}
|
|
15871
|
+
case 2: {
|
|
15872
|
+
message.description = reader.string();
|
|
15873
|
+
break;
|
|
15874
|
+
}
|
|
15875
|
+
case 3: {
|
|
15876
|
+
message.aboutLink = $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link.decode(reader, reader.uint32());
|
|
15877
|
+
break;
|
|
15878
|
+
}
|
|
15879
|
+
default:
|
|
15880
|
+
reader.skipType(tag & 7);
|
|
15881
|
+
break;
|
|
15882
|
+
}
|
|
15883
|
+
}
|
|
15884
|
+
return message;
|
|
15885
|
+
};
|
|
15886
|
+
|
|
15887
|
+
/**
|
|
15888
|
+
* Decodes a Details message from the specified reader or buffer, length delimited.
|
|
15889
|
+
* @function decodeDelimited
|
|
15890
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15891
|
+
* @static
|
|
15892
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15893
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details} Details
|
|
15894
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15895
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15896
|
+
*/
|
|
15897
|
+
Details.decodeDelimited = function decodeDelimited(reader) {
|
|
15898
|
+
if (!(reader instanceof $Reader))
|
|
15899
|
+
reader = new $Reader(reader);
|
|
15900
|
+
return this.decode(reader, reader.uint32());
|
|
15901
|
+
};
|
|
15902
|
+
|
|
15903
|
+
/**
|
|
15904
|
+
* Verifies a Details message.
|
|
15905
|
+
* @function verify
|
|
15906
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15907
|
+
* @static
|
|
15908
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15909
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15910
|
+
*/
|
|
15911
|
+
Details.verify = function verify(message) {
|
|
15912
|
+
if (typeof message !== "object" || message === null)
|
|
15913
|
+
return "object expected";
|
|
15914
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
15915
|
+
if (!$util.isString(message.title))
|
|
15916
|
+
return "title: string expected";
|
|
15917
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
15918
|
+
if (!$util.isString(message.description))
|
|
15919
|
+
return "description: string expected";
|
|
15920
|
+
if (message.aboutLink != null && message.hasOwnProperty("aboutLink")) {
|
|
15921
|
+
var error = $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link.verify(message.aboutLink);
|
|
15922
|
+
if (error)
|
|
15923
|
+
return "aboutLink." + error;
|
|
15924
|
+
}
|
|
15925
|
+
return null;
|
|
15926
|
+
};
|
|
15927
|
+
|
|
15928
|
+
/**
|
|
15929
|
+
* Creates a Details message from a plain object. Also converts values to their respective internal types.
|
|
15930
|
+
* @function fromObject
|
|
15931
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15932
|
+
* @static
|
|
15933
|
+
* @param {Object.<string,*>} object Plain object
|
|
15934
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details} Details
|
|
15935
|
+
*/
|
|
15936
|
+
Details.fromObject = function fromObject(object) {
|
|
15937
|
+
if (object instanceof $root.google.maps.places.v1.Place.ConsumerAlert.Details)
|
|
15938
|
+
return object;
|
|
15939
|
+
var message = new $root.google.maps.places.v1.Place.ConsumerAlert.Details();
|
|
15940
|
+
if (object.title != null)
|
|
15941
|
+
message.title = String(object.title);
|
|
15942
|
+
if (object.description != null)
|
|
15943
|
+
message.description = String(object.description);
|
|
15944
|
+
if (object.aboutLink != null) {
|
|
15945
|
+
if (typeof object.aboutLink !== "object")
|
|
15946
|
+
throw TypeError(".google.maps.places.v1.Place.ConsumerAlert.Details.aboutLink: object expected");
|
|
15947
|
+
message.aboutLink = $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link.fromObject(object.aboutLink);
|
|
15948
|
+
}
|
|
15949
|
+
return message;
|
|
15950
|
+
};
|
|
15951
|
+
|
|
15952
|
+
/**
|
|
15953
|
+
* Creates a plain object from a Details message. Also converts values to other types if specified.
|
|
15954
|
+
* @function toObject
|
|
15955
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15956
|
+
* @static
|
|
15957
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details} message Details
|
|
15958
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15959
|
+
* @returns {Object.<string,*>} Plain object
|
|
15960
|
+
*/
|
|
15961
|
+
Details.toObject = function toObject(message, options) {
|
|
15962
|
+
if (!options)
|
|
15963
|
+
options = {};
|
|
15964
|
+
var object = {};
|
|
15965
|
+
if (options.defaults) {
|
|
15966
|
+
object.title = "";
|
|
15967
|
+
object.description = "";
|
|
15968
|
+
object.aboutLink = null;
|
|
15969
|
+
}
|
|
15970
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
15971
|
+
object.title = message.title;
|
|
15972
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
15973
|
+
object.description = message.description;
|
|
15974
|
+
if (message.aboutLink != null && message.hasOwnProperty("aboutLink"))
|
|
15975
|
+
object.aboutLink = $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link.toObject(message.aboutLink, options);
|
|
15976
|
+
return object;
|
|
15977
|
+
};
|
|
15978
|
+
|
|
15979
|
+
/**
|
|
15980
|
+
* Converts this Details to JSON.
|
|
15981
|
+
* @function toJSON
|
|
15982
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15983
|
+
* @instance
|
|
15984
|
+
* @returns {Object.<string,*>} JSON object
|
|
15985
|
+
*/
|
|
15986
|
+
Details.prototype.toJSON = function toJSON() {
|
|
15987
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15988
|
+
};
|
|
15989
|
+
|
|
15990
|
+
/**
|
|
15991
|
+
* Gets the default type url for Details
|
|
15992
|
+
* @function getTypeUrl
|
|
15993
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
15994
|
+
* @static
|
|
15995
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
15996
|
+
* @returns {string} The default type url
|
|
15997
|
+
*/
|
|
15998
|
+
Details.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15999
|
+
if (typeUrlPrefix === undefined) {
|
|
16000
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16001
|
+
}
|
|
16002
|
+
return typeUrlPrefix + "/google.maps.places.v1.Place.ConsumerAlert.Details";
|
|
16003
|
+
};
|
|
16004
|
+
|
|
16005
|
+
Details.Link = (function() {
|
|
16006
|
+
|
|
16007
|
+
/**
|
|
16008
|
+
* Properties of a Link.
|
|
16009
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
16010
|
+
* @interface ILink
|
|
16011
|
+
* @property {string|null} [title] Link title
|
|
16012
|
+
* @property {string|null} [uri] Link uri
|
|
16013
|
+
*/
|
|
16014
|
+
|
|
16015
|
+
/**
|
|
16016
|
+
* Constructs a new Link.
|
|
16017
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details
|
|
16018
|
+
* @classdesc Represents a Link.
|
|
16019
|
+
* @implements ILink
|
|
16020
|
+
* @constructor
|
|
16021
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details.ILink=} [properties] Properties to set
|
|
16022
|
+
*/
|
|
16023
|
+
function Link(properties) {
|
|
16024
|
+
if (properties)
|
|
16025
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16026
|
+
if (properties[keys[i]] != null)
|
|
16027
|
+
this[keys[i]] = properties[keys[i]];
|
|
16028
|
+
}
|
|
16029
|
+
|
|
16030
|
+
/**
|
|
16031
|
+
* Link title.
|
|
16032
|
+
* @member {string} title
|
|
16033
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16034
|
+
* @instance
|
|
16035
|
+
*/
|
|
16036
|
+
Link.prototype.title = "";
|
|
16037
|
+
|
|
16038
|
+
/**
|
|
16039
|
+
* Link uri.
|
|
16040
|
+
* @member {string} uri
|
|
16041
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16042
|
+
* @instance
|
|
16043
|
+
*/
|
|
16044
|
+
Link.prototype.uri = "";
|
|
16045
|
+
|
|
16046
|
+
/**
|
|
16047
|
+
* Creates a new Link instance using the specified properties.
|
|
16048
|
+
* @function create
|
|
16049
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16050
|
+
* @static
|
|
16051
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details.ILink=} [properties] Properties to set
|
|
16052
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details.Link} Link instance
|
|
16053
|
+
*/
|
|
16054
|
+
Link.create = function create(properties) {
|
|
16055
|
+
return new Link(properties);
|
|
16056
|
+
};
|
|
16057
|
+
|
|
16058
|
+
/**
|
|
16059
|
+
* Encodes the specified Link message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.Link.verify|verify} messages.
|
|
16060
|
+
* @function encode
|
|
16061
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16062
|
+
* @static
|
|
16063
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details.ILink} message Link message or plain object to encode
|
|
16064
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16065
|
+
* @returns {$protobuf.Writer} Writer
|
|
16066
|
+
*/
|
|
16067
|
+
Link.encode = function encode(message, writer) {
|
|
16068
|
+
if (!writer)
|
|
16069
|
+
writer = $Writer.create();
|
|
16070
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
|
16071
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
|
|
16072
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
16073
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri);
|
|
16074
|
+
return writer;
|
|
16075
|
+
};
|
|
16076
|
+
|
|
16077
|
+
/**
|
|
16078
|
+
* Encodes the specified Link message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.Link.verify|verify} messages.
|
|
16079
|
+
* @function encodeDelimited
|
|
16080
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16081
|
+
* @static
|
|
16082
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details.ILink} message Link message or plain object to encode
|
|
16083
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16084
|
+
* @returns {$protobuf.Writer} Writer
|
|
16085
|
+
*/
|
|
16086
|
+
Link.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16087
|
+
return this.encode(message, writer).ldelim();
|
|
16088
|
+
};
|
|
16089
|
+
|
|
16090
|
+
/**
|
|
16091
|
+
* Decodes a Link message from the specified reader or buffer.
|
|
16092
|
+
* @function decode
|
|
16093
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16094
|
+
* @static
|
|
16095
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16096
|
+
* @param {number} [length] Message length if known beforehand
|
|
16097
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details.Link} Link
|
|
16098
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16099
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16100
|
+
*/
|
|
16101
|
+
Link.decode = function decode(reader, length, error) {
|
|
16102
|
+
if (!(reader instanceof $Reader))
|
|
16103
|
+
reader = $Reader.create(reader);
|
|
16104
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link();
|
|
16105
|
+
while (reader.pos < end) {
|
|
16106
|
+
var tag = reader.uint32();
|
|
16107
|
+
if (tag === error)
|
|
16108
|
+
break;
|
|
16109
|
+
switch (tag >>> 3) {
|
|
16110
|
+
case 1: {
|
|
16111
|
+
message.title = reader.string();
|
|
16112
|
+
break;
|
|
16113
|
+
}
|
|
16114
|
+
case 2: {
|
|
16115
|
+
message.uri = reader.string();
|
|
16116
|
+
break;
|
|
16117
|
+
}
|
|
16118
|
+
default:
|
|
16119
|
+
reader.skipType(tag & 7);
|
|
16120
|
+
break;
|
|
16121
|
+
}
|
|
16122
|
+
}
|
|
16123
|
+
return message;
|
|
16124
|
+
};
|
|
16125
|
+
|
|
16126
|
+
/**
|
|
16127
|
+
* Decodes a Link message from the specified reader or buffer, length delimited.
|
|
16128
|
+
* @function decodeDelimited
|
|
16129
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16130
|
+
* @static
|
|
16131
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16132
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details.Link} Link
|
|
16133
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16134
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16135
|
+
*/
|
|
16136
|
+
Link.decodeDelimited = function decodeDelimited(reader) {
|
|
16137
|
+
if (!(reader instanceof $Reader))
|
|
16138
|
+
reader = new $Reader(reader);
|
|
16139
|
+
return this.decode(reader, reader.uint32());
|
|
16140
|
+
};
|
|
16141
|
+
|
|
16142
|
+
/**
|
|
16143
|
+
* Verifies a Link message.
|
|
16144
|
+
* @function verify
|
|
16145
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16146
|
+
* @static
|
|
16147
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16148
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16149
|
+
*/
|
|
16150
|
+
Link.verify = function verify(message) {
|
|
16151
|
+
if (typeof message !== "object" || message === null)
|
|
16152
|
+
return "object expected";
|
|
16153
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
16154
|
+
if (!$util.isString(message.title))
|
|
16155
|
+
return "title: string expected";
|
|
16156
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
16157
|
+
if (!$util.isString(message.uri))
|
|
16158
|
+
return "uri: string expected";
|
|
16159
|
+
return null;
|
|
16160
|
+
};
|
|
16161
|
+
|
|
16162
|
+
/**
|
|
16163
|
+
* Creates a Link message from a plain object. Also converts values to their respective internal types.
|
|
16164
|
+
* @function fromObject
|
|
16165
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16166
|
+
* @static
|
|
16167
|
+
* @param {Object.<string,*>} object Plain object
|
|
16168
|
+
* @returns {google.maps.places.v1.Place.ConsumerAlert.Details.Link} Link
|
|
16169
|
+
*/
|
|
16170
|
+
Link.fromObject = function fromObject(object) {
|
|
16171
|
+
if (object instanceof $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link)
|
|
16172
|
+
return object;
|
|
16173
|
+
var message = new $root.google.maps.places.v1.Place.ConsumerAlert.Details.Link();
|
|
16174
|
+
if (object.title != null)
|
|
16175
|
+
message.title = String(object.title);
|
|
16176
|
+
if (object.uri != null)
|
|
16177
|
+
message.uri = String(object.uri);
|
|
16178
|
+
return message;
|
|
16179
|
+
};
|
|
16180
|
+
|
|
16181
|
+
/**
|
|
16182
|
+
* Creates a plain object from a Link message. Also converts values to other types if specified.
|
|
16183
|
+
* @function toObject
|
|
16184
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16185
|
+
* @static
|
|
16186
|
+
* @param {google.maps.places.v1.Place.ConsumerAlert.Details.Link} message Link
|
|
16187
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16188
|
+
* @returns {Object.<string,*>} Plain object
|
|
16189
|
+
*/
|
|
16190
|
+
Link.toObject = function toObject(message, options) {
|
|
16191
|
+
if (!options)
|
|
16192
|
+
options = {};
|
|
16193
|
+
var object = {};
|
|
16194
|
+
if (options.defaults) {
|
|
16195
|
+
object.title = "";
|
|
16196
|
+
object.uri = "";
|
|
16197
|
+
}
|
|
16198
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
16199
|
+
object.title = message.title;
|
|
16200
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
16201
|
+
object.uri = message.uri;
|
|
16202
|
+
return object;
|
|
16203
|
+
};
|
|
16204
|
+
|
|
16205
|
+
/**
|
|
16206
|
+
* Converts this Link to JSON.
|
|
16207
|
+
* @function toJSON
|
|
16208
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16209
|
+
* @instance
|
|
16210
|
+
* @returns {Object.<string,*>} JSON object
|
|
16211
|
+
*/
|
|
16212
|
+
Link.prototype.toJSON = function toJSON() {
|
|
16213
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16214
|
+
};
|
|
16215
|
+
|
|
16216
|
+
/**
|
|
16217
|
+
* Gets the default type url for Link
|
|
16218
|
+
* @function getTypeUrl
|
|
16219
|
+
* @memberof google.maps.places.v1.Place.ConsumerAlert.Details.Link
|
|
16220
|
+
* @static
|
|
16221
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
16222
|
+
* @returns {string} The default type url
|
|
16223
|
+
*/
|
|
16224
|
+
Link.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
16225
|
+
if (typeUrlPrefix === undefined) {
|
|
16226
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
16227
|
+
}
|
|
16228
|
+
return typeUrlPrefix + "/google.maps.places.v1.Place.ConsumerAlert.Details.Link";
|
|
16229
|
+
};
|
|
16230
|
+
|
|
16231
|
+
return Link;
|
|
16232
|
+
})();
|
|
16233
|
+
|
|
16234
|
+
return Details;
|
|
16235
|
+
})();
|
|
16236
|
+
|
|
16237
|
+
return ConsumerAlert;
|
|
16238
|
+
})();
|
|
16239
|
+
|
|
15372
16240
|
return Place;
|
|
15373
16241
|
})();
|
|
15374
16242
|
|