Skip to content

Commit 1b5c448

Browse files
Google APIscopybara-github
authored andcommitted
docs: Change comments in some fields in Places API
feat: Add moved_place and moved_place_id to Place PiperOrigin-RevId: 821809971
1 parent c280079 commit 1b5c448

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

google/maps/places/v1/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ py_gapic_library(
239239
srcs = [":places_proto"],
240240
grpc_service_config = "places_grpc_service_config.json",
241241
opt_args = [
242-
"proto-plus-deps=google.geo.type",
243242
"autogen-snippets=False",
243+
"proto-plus-deps=google.geo.type",
244244
],
245245
rest_numeric_enums = True,
246246
service_yaml = "places_v1.yaml",
@@ -399,6 +399,7 @@ load(
399399

400400
csharp_proto_library(
401401
name = "places_csharp_proto",
402+
extra_opts = [],
402403
deps = [":places_proto"],
403404
)
404405

google/maps/places/v1/place.proto

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ message Place {
360360
// (and its localized variants). This will be in the language specified in
361361
// the request if available.
362362
google.type.LocalizedText disclosure_text = 3;
363+
364+
// A link to show reviews of this place on Google Maps.
365+
string reviews_uri = 4;
363366
}
364367

365368
// The summary of amenities near the EV charging station. This only applies to
@@ -376,7 +379,7 @@ message Place {
376379
// A summary of the nearby restaurants.
377380
ContentBlock restaurant = 3;
378381

379-
// A summary of the nearby gas stations.
382+
// A summary of the nearby stores.
380383
ContentBlock store = 4;
381384

382385
// A link where users can flag a problem with the summary.
@@ -693,6 +696,19 @@ message Place {
693696

694697
// A summary of points of interest near the place.
695698
NeighborhoodSummary neighborhood_summary = 91;
699+
700+
// If this Place is permanently closed and has moved to a new Place, this
701+
// field contains the new Place's resource name, in `places/{place_id}`
702+
// format. If this Place moved multiple times, this field will represent the
703+
// first moved place. This field will not be populated if this Place has not
704+
// moved.
705+
string moved_place = 93;
706+
707+
// If this Place is permanently closed and has moved to a new Place, this
708+
// field contains the new Place's place ID. If this Place moved multiple
709+
// times, this field will represent the first moved Place. This field will not
710+
// be populated if this Place has not moved.
711+
string moved_place_id = 94;
696712
}
697713

698714
// Price level of the place.

0 commit comments

Comments
 (0)