@googlemaps/places 2.1.1 → 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.
@@ -360,6 +360,9 @@ message Place {
360
360
  // (and its localized variants). This will be in the language specified in
361
361
  // the request if available.
362
362
  google.type.LocalizedText disclosure_text = 3;
363
+
364
+ // A link to show reviews of this place on Google Maps.
365
+ string reviews_uri = 4;
363
366
  }
364
367
 
365
368
  // The summary of amenities near the EV charging station. This only applies to
@@ -376,7 +379,7 @@ message Place {
376
379
  // A summary of the nearby restaurants.
377
380
  ContentBlock restaurant = 3;
378
381
 
379
- // A summary of the nearby gas stations.
382
+ // A summary of the nearby stores.
380
383
  ContentBlock store = 4;
381
384
 
382
385
  // A link where users can flag a problem with the summary.
@@ -405,6 +408,43 @@ message Place {
405
408
  google.type.LocalizedText disclosure_text = 4;
406
409
  }
407
410
 
411
+ // The consumer alert message for the place when we detect suspicious review
412
+ // activity on a business or a business violates our policies.
413
+ message ConsumerAlert {
414
+ // The details of the consumer alert message.
415
+ message Details {
416
+ // The link to show together with the description to provide more
417
+ // information.
418
+ message Link {
419
+ // The title to show for the link.
420
+ string title = 1;
421
+
422
+ // The uri of the link.
423
+ string uri = 2;
424
+ }
425
+
426
+ // The title to show together with the description.
427
+ string title = 1;
428
+
429
+ // The description of the consumer alert message.
430
+ string description = 2;
431
+
432
+ // The link to show together with the description to provide more
433
+ // information.
434
+ Link about_link = 3;
435
+ }
436
+
437
+ // The overview of the consumer alert message.
438
+ string overview = 1;
439
+
440
+ // The details of the consumer alert message.
441
+ Details details = 2;
442
+
443
+ // The language code of the consumer alert message. This is a BCP 47
444
+ // language code.
445
+ string language_code = 3;
446
+ }
447
+
408
448
  // This Place's resource name, in `places/{place_id}` format. Can be used to
409
449
  // look up the Place.
410
450
  string name = 1;
@@ -693,6 +733,25 @@ message Place {
693
733
 
694
734
  // A summary of points of interest near the place.
695
735
  NeighborhoodSummary neighborhood_summary = 91;
736
+
737
+ // The consumer alert message for the place when we detect suspicious review
738
+ // activity on a business or a business violates our policies.
739
+ ConsumerAlert consumer_alert = 92;
740
+
741
+ // If this Place is permanently closed and has moved to a new Place, this
742
+ // field contains the new Place's resource name, in `places/{place_id}`
743
+ // format. If this Place moved multiple times, this field will represent the
744
+ // first moved place. This field will not be populated if this Place has not
745
+ // moved.
746
+ string moved_place = 93 [
747
+ (google.api.resource_reference) = { type: "places.googleapis.com/Place" }
748
+ ];
749
+
750
+ // If this Place is permanently closed and has moved to a new Place, this
751
+ // field contains the new Place's place ID. If this Place moved multiple
752
+ // times, this field will represent the first moved Place. This field will not
753
+ // be populated if this Place has not moved.
754
+ string moved_place_id = 94;
696
755
  }
697
756
 
698
757
  // Price level of the place.
@@ -68,4 +68,8 @@ message Review {
68
68
 
69
69
  // A link to show the review on Google Maps.
70
70
  string google_maps_uri = 16;
71
+
72
+ // The date when the author visited the place. This is truncated to the year
73
+ // and month of the visit.
74
+ google.type.Date visit_date = 17;
71
75
  }
@@ -1702,6 +1702,9 @@ export namespace google {
1702
1702
 
1703
1703
  /** Review googleMapsUri */
1704
1704
  googleMapsUri?: (string|null);
1705
+
1706
+ /** Review visitDate */
1707
+ visitDate?: (google.type.IDate|null);
1705
1708
  }
1706
1709
 
1707
1710
  /** Represents a Review. */
@@ -1740,6 +1743,9 @@ export namespace google {
1740
1743
  /** Review googleMapsUri. */
1741
1744
  public googleMapsUri: string;
1742
1745
 
1746
+ /** Review visitDate. */
1747
+ public visitDate?: (google.type.IDate|null);
1748
+
1743
1749
  /**
1744
1750
  * Creates a new Review instance using the specified properties.
1745
1751
  * @param [properties] Properties to set
@@ -3393,6 +3399,15 @@ export namespace google {
3393
3399
 
3394
3400
  /** Place neighborhoodSummary */
3395
3401
  neighborhoodSummary?: (google.maps.places.v1.Place.INeighborhoodSummary|null);
3402
+
3403
+ /** Place consumerAlert */
3404
+ consumerAlert?: (google.maps.places.v1.Place.IConsumerAlert|null);
3405
+
3406
+ /** Place movedPlace */
3407
+ movedPlace?: (string|null);
3408
+
3409
+ /** Place movedPlaceId */
3410
+ movedPlaceId?: (string|null);
3396
3411
  }
3397
3412
 
3398
3413
  /** Represents a Place. */
@@ -3617,6 +3632,15 @@ export namespace google {
3617
3632
  /** Place neighborhoodSummary. */
3618
3633
  public neighborhoodSummary?: (google.maps.places.v1.Place.INeighborhoodSummary|null);
3619
3634
 
3635
+ /** Place consumerAlert. */
3636
+ public consumerAlert?: (google.maps.places.v1.Place.IConsumerAlert|null);
3637
+
3638
+ /** Place movedPlace. */
3639
+ public movedPlace: string;
3640
+
3641
+ /** Place movedPlaceId. */
3642
+ public movedPlaceId: string;
3643
+
3620
3644
  /**
3621
3645
  * Creates a new Place instance using the specified properties.
3622
3646
  * @param [properties] Properties to set
@@ -5193,6 +5217,9 @@ export namespace google {
5193
5217
 
5194
5218
  /** ReviewSummary disclosureText */
5195
5219
  disclosureText?: (google.type.ILocalizedText|null);
5220
+
5221
+ /** ReviewSummary reviewsUri */
5222
+ reviewsUri?: (string|null);
5196
5223
  }
5197
5224
 
5198
5225
  /** Represents a ReviewSummary. */
@@ -5213,6 +5240,9 @@ export namespace google {
5213
5240
  /** ReviewSummary disclosureText. */
5214
5241
  public disclosureText?: (google.type.ILocalizedText|null);
5215
5242
 
5243
+ /** ReviewSummary reviewsUri. */
5244
+ public reviewsUri: string;
5245
+
5216
5246
  /**
5217
5247
  * Creates a new ReviewSummary instance using the specified properties.
5218
5248
  * @param [properties] Properties to set
@@ -5532,6 +5562,333 @@ export namespace google {
5532
5562
  */
5533
5563
  public static getTypeUrl(typeUrlPrefix?: string): string;
5534
5564
  }
5565
+
5566
+ /** Properties of a ConsumerAlert. */
5567
+ interface IConsumerAlert {
5568
+
5569
+ /** ConsumerAlert overview */
5570
+ overview?: (string|null);
5571
+
5572
+ /** ConsumerAlert details */
5573
+ details?: (google.maps.places.v1.Place.ConsumerAlert.IDetails|null);
5574
+
5575
+ /** ConsumerAlert languageCode */
5576
+ languageCode?: (string|null);
5577
+ }
5578
+
5579
+ /** Represents a ConsumerAlert. */
5580
+ class ConsumerAlert implements IConsumerAlert {
5581
+
5582
+ /**
5583
+ * Constructs a new ConsumerAlert.
5584
+ * @param [properties] Properties to set
5585
+ */
5586
+ constructor(properties?: google.maps.places.v1.Place.IConsumerAlert);
5587
+
5588
+ /** ConsumerAlert overview. */
5589
+ public overview: string;
5590
+
5591
+ /** ConsumerAlert details. */
5592
+ public details?: (google.maps.places.v1.Place.ConsumerAlert.IDetails|null);
5593
+
5594
+ /** ConsumerAlert languageCode. */
5595
+ public languageCode: string;
5596
+
5597
+ /**
5598
+ * Creates a new ConsumerAlert instance using the specified properties.
5599
+ * @param [properties] Properties to set
5600
+ * @returns ConsumerAlert instance
5601
+ */
5602
+ public static create(properties?: google.maps.places.v1.Place.IConsumerAlert): google.maps.places.v1.Place.ConsumerAlert;
5603
+
5604
+ /**
5605
+ * Encodes the specified ConsumerAlert message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.verify|verify} messages.
5606
+ * @param message ConsumerAlert message or plain object to encode
5607
+ * @param [writer] Writer to encode to
5608
+ * @returns Writer
5609
+ */
5610
+ public static encode(message: google.maps.places.v1.Place.IConsumerAlert, writer?: $protobuf.Writer): $protobuf.Writer;
5611
+
5612
+ /**
5613
+ * Encodes the specified ConsumerAlert message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.verify|verify} messages.
5614
+ * @param message ConsumerAlert message or plain object to encode
5615
+ * @param [writer] Writer to encode to
5616
+ * @returns Writer
5617
+ */
5618
+ public static encodeDelimited(message: google.maps.places.v1.Place.IConsumerAlert, writer?: $protobuf.Writer): $protobuf.Writer;
5619
+
5620
+ /**
5621
+ * Decodes a ConsumerAlert message from the specified reader or buffer.
5622
+ * @param reader Reader or buffer to decode from
5623
+ * @param [length] Message length if known beforehand
5624
+ * @returns ConsumerAlert
5625
+ * @throws {Error} If the payload is not a reader or valid buffer
5626
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5627
+ */
5628
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ConsumerAlert;
5629
+
5630
+ /**
5631
+ * Decodes a ConsumerAlert message from the specified reader or buffer, length delimited.
5632
+ * @param reader Reader or buffer to decode from
5633
+ * @returns ConsumerAlert
5634
+ * @throws {Error} If the payload is not a reader or valid buffer
5635
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5636
+ */
5637
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ConsumerAlert;
5638
+
5639
+ /**
5640
+ * Verifies a ConsumerAlert message.
5641
+ * @param message Plain object to verify
5642
+ * @returns `null` if valid, otherwise the reason why it is not
5643
+ */
5644
+ public static verify(message: { [k: string]: any }): (string|null);
5645
+
5646
+ /**
5647
+ * Creates a ConsumerAlert message from a plain object. Also converts values to their respective internal types.
5648
+ * @param object Plain object
5649
+ * @returns ConsumerAlert
5650
+ */
5651
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ConsumerAlert;
5652
+
5653
+ /**
5654
+ * Creates a plain object from a ConsumerAlert message. Also converts values to other types if specified.
5655
+ * @param message ConsumerAlert
5656
+ * @param [options] Conversion options
5657
+ * @returns Plain object
5658
+ */
5659
+ public static toObject(message: google.maps.places.v1.Place.ConsumerAlert, options?: $protobuf.IConversionOptions): { [k: string]: any };
5660
+
5661
+ /**
5662
+ * Converts this ConsumerAlert to JSON.
5663
+ * @returns JSON object
5664
+ */
5665
+ public toJSON(): { [k: string]: any };
5666
+
5667
+ /**
5668
+ * Gets the default type url for ConsumerAlert
5669
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5670
+ * @returns The default type url
5671
+ */
5672
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5673
+ }
5674
+
5675
+ namespace ConsumerAlert {
5676
+
5677
+ /** Properties of a Details. */
5678
+ interface IDetails {
5679
+
5680
+ /** Details title */
5681
+ title?: (string|null);
5682
+
5683
+ /** Details description */
5684
+ description?: (string|null);
5685
+
5686
+ /** Details aboutLink */
5687
+ aboutLink?: (google.maps.places.v1.Place.ConsumerAlert.Details.ILink|null);
5688
+ }
5689
+
5690
+ /** Represents a Details. */
5691
+ class Details implements IDetails {
5692
+
5693
+ /**
5694
+ * Constructs a new Details.
5695
+ * @param [properties] Properties to set
5696
+ */
5697
+ constructor(properties?: google.maps.places.v1.Place.ConsumerAlert.IDetails);
5698
+
5699
+ /** Details title. */
5700
+ public title: string;
5701
+
5702
+ /** Details description. */
5703
+ public description: string;
5704
+
5705
+ /** Details aboutLink. */
5706
+ public aboutLink?: (google.maps.places.v1.Place.ConsumerAlert.Details.ILink|null);
5707
+
5708
+ /**
5709
+ * Creates a new Details instance using the specified properties.
5710
+ * @param [properties] Properties to set
5711
+ * @returns Details instance
5712
+ */
5713
+ public static create(properties?: google.maps.places.v1.Place.ConsumerAlert.IDetails): google.maps.places.v1.Place.ConsumerAlert.Details;
5714
+
5715
+ /**
5716
+ * Encodes the specified Details message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.verify|verify} messages.
5717
+ * @param message Details message or plain object to encode
5718
+ * @param [writer] Writer to encode to
5719
+ * @returns Writer
5720
+ */
5721
+ public static encode(message: google.maps.places.v1.Place.ConsumerAlert.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
5722
+
5723
+ /**
5724
+ * Encodes the specified Details message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.verify|verify} messages.
5725
+ * @param message Details message or plain object to encode
5726
+ * @param [writer] Writer to encode to
5727
+ * @returns Writer
5728
+ */
5729
+ public static encodeDelimited(message: google.maps.places.v1.Place.ConsumerAlert.IDetails, writer?: $protobuf.Writer): $protobuf.Writer;
5730
+
5731
+ /**
5732
+ * Decodes a Details message from the specified reader or buffer.
5733
+ * @param reader Reader or buffer to decode from
5734
+ * @param [length] Message length if known beforehand
5735
+ * @returns Details
5736
+ * @throws {Error} If the payload is not a reader or valid buffer
5737
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5738
+ */
5739
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ConsumerAlert.Details;
5740
+
5741
+ /**
5742
+ * Decodes a Details message from the specified reader or buffer, length delimited.
5743
+ * @param reader Reader or buffer to decode from
5744
+ * @returns Details
5745
+ * @throws {Error} If the payload is not a reader or valid buffer
5746
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5747
+ */
5748
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ConsumerAlert.Details;
5749
+
5750
+ /**
5751
+ * Verifies a Details message.
5752
+ * @param message Plain object to verify
5753
+ * @returns `null` if valid, otherwise the reason why it is not
5754
+ */
5755
+ public static verify(message: { [k: string]: any }): (string|null);
5756
+
5757
+ /**
5758
+ * Creates a Details message from a plain object. Also converts values to their respective internal types.
5759
+ * @param object Plain object
5760
+ * @returns Details
5761
+ */
5762
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ConsumerAlert.Details;
5763
+
5764
+ /**
5765
+ * Creates a plain object from a Details message. Also converts values to other types if specified.
5766
+ * @param message Details
5767
+ * @param [options] Conversion options
5768
+ * @returns Plain object
5769
+ */
5770
+ public static toObject(message: google.maps.places.v1.Place.ConsumerAlert.Details, options?: $protobuf.IConversionOptions): { [k: string]: any };
5771
+
5772
+ /**
5773
+ * Converts this Details to JSON.
5774
+ * @returns JSON object
5775
+ */
5776
+ public toJSON(): { [k: string]: any };
5777
+
5778
+ /**
5779
+ * Gets the default type url for Details
5780
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5781
+ * @returns The default type url
5782
+ */
5783
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5784
+ }
5785
+
5786
+ namespace Details {
5787
+
5788
+ /** Properties of a Link. */
5789
+ interface ILink {
5790
+
5791
+ /** Link title */
5792
+ title?: (string|null);
5793
+
5794
+ /** Link uri */
5795
+ uri?: (string|null);
5796
+ }
5797
+
5798
+ /** Represents a Link. */
5799
+ class Link implements ILink {
5800
+
5801
+ /**
5802
+ * Constructs a new Link.
5803
+ * @param [properties] Properties to set
5804
+ */
5805
+ constructor(properties?: google.maps.places.v1.Place.ConsumerAlert.Details.ILink);
5806
+
5807
+ /** Link title. */
5808
+ public title: string;
5809
+
5810
+ /** Link uri. */
5811
+ public uri: string;
5812
+
5813
+ /**
5814
+ * Creates a new Link instance using the specified properties.
5815
+ * @param [properties] Properties to set
5816
+ * @returns Link instance
5817
+ */
5818
+ public static create(properties?: google.maps.places.v1.Place.ConsumerAlert.Details.ILink): google.maps.places.v1.Place.ConsumerAlert.Details.Link;
5819
+
5820
+ /**
5821
+ * Encodes the specified Link message. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.Link.verify|verify} messages.
5822
+ * @param message Link message or plain object to encode
5823
+ * @param [writer] Writer to encode to
5824
+ * @returns Writer
5825
+ */
5826
+ public static encode(message: google.maps.places.v1.Place.ConsumerAlert.Details.ILink, writer?: $protobuf.Writer): $protobuf.Writer;
5827
+
5828
+ /**
5829
+ * Encodes the specified Link message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ConsumerAlert.Details.Link.verify|verify} messages.
5830
+ * @param message Link message or plain object to encode
5831
+ * @param [writer] Writer to encode to
5832
+ * @returns Writer
5833
+ */
5834
+ public static encodeDelimited(message: google.maps.places.v1.Place.ConsumerAlert.Details.ILink, writer?: $protobuf.Writer): $protobuf.Writer;
5835
+
5836
+ /**
5837
+ * Decodes a Link message from the specified reader or buffer.
5838
+ * @param reader Reader or buffer to decode from
5839
+ * @param [length] Message length if known beforehand
5840
+ * @returns Link
5841
+ * @throws {Error} If the payload is not a reader or valid buffer
5842
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5843
+ */
5844
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ConsumerAlert.Details.Link;
5845
+
5846
+ /**
5847
+ * Decodes a Link message from the specified reader or buffer, length delimited.
5848
+ * @param reader Reader or buffer to decode from
5849
+ * @returns Link
5850
+ * @throws {Error} If the payload is not a reader or valid buffer
5851
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5852
+ */
5853
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ConsumerAlert.Details.Link;
5854
+
5855
+ /**
5856
+ * Verifies a Link message.
5857
+ * @param message Plain object to verify
5858
+ * @returns `null` if valid, otherwise the reason why it is not
5859
+ */
5860
+ public static verify(message: { [k: string]: any }): (string|null);
5861
+
5862
+ /**
5863
+ * Creates a Link message from a plain object. Also converts values to their respective internal types.
5864
+ * @param object Plain object
5865
+ * @returns Link
5866
+ */
5867
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ConsumerAlert.Details.Link;
5868
+
5869
+ /**
5870
+ * Creates a plain object from a Link message. Also converts values to other types if specified.
5871
+ * @param message Link
5872
+ * @param [options] Conversion options
5873
+ * @returns Plain object
5874
+ */
5875
+ public static toObject(message: google.maps.places.v1.Place.ConsumerAlert.Details.Link, options?: $protobuf.IConversionOptions): { [k: string]: any };
5876
+
5877
+ /**
5878
+ * Converts this Link to JSON.
5879
+ * @returns JSON object
5880
+ */
5881
+ public toJSON(): { [k: string]: any };
5882
+
5883
+ /**
5884
+ * Gets the default type url for Link
5885
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5886
+ * @returns The default type url
5887
+ */
5888
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5889
+ }
5890
+ }
5891
+ }
5535
5892
  }
5536
5893
 
5537
5894
  /** PriceLevel enum. */