Skip to content

Commit b61fb21

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add Review.visitDate field to indicate when the review author visited
feat: Add Place.consumerAlert field for suspicious review activity PiperOrigin-RevId: 822750099
1 parent 80a2081 commit b61fb21

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

google/maps/places/v1/place.proto

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,43 @@ message Place {
408408
google.type.LocalizedText disclosure_text = 4;
409409
}
410410

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+
411448
// This Place's resource name, in `places/{place_id}` format. Can be used to
412449
// look up the Place.
413450
string name = 1;
@@ -697,12 +734,18 @@ message Place {
697734
// A summary of points of interest near the place.
698735
NeighborhoodSummary neighborhood_summary = 91;
699736

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+
700741
// If this Place is permanently closed and has moved to a new Place, this
701742
// field contains the new Place's resource name, in `places/{place_id}`
702743
// format. If this Place moved multiple times, this field will represent the
703744
// first moved place. This field will not be populated if this Place has not
704745
// moved.
705-
string moved_place = 93;
746+
string moved_place = 93 [
747+
(google.api.resource_reference) = { type: "places.googleapis.com/Place" }
748+
];
706749

707750
// If this Place is permanently closed and has moved to a new Place, this
708751
// field contains the new Place's place ID. If this Place moved multiple

google/maps/places/v1/review.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@ message Review {
6868

6969
// A link to show the review on Google Maps.
7070
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;
7175
}

0 commit comments

Comments
 (0)