Skip to content

Commit 10a04fc

Browse files
feat: [places] update attributes in Places API (#5795)
* feat: update attributes in Places API PiperOrigin-RevId: 694522095 Source-Link: googleapis/googleapis@e7084f3 Source-Link: googleapis/googleapis-gen@4c4c97d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiI0YzRjOTdkMThjZTkxMjliMDhlZDcxNjljNDlkZWRhZDI0ZTA0ZTlkIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e884556 commit 10a04fc

25 files changed

Lines changed: 1189 additions & 25 deletions

packages/google-maps-places/protos/google/maps/places/v1/attribution.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.maps.places.v1;
1818

19-
option cc_enable_arenas = true;
2019
option csharp_namespace = "Google.Maps.Places.V1";
2120
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2221
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/content_block.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.maps.places.v1;
1919
import "google/maps/places/v1/reference.proto";
2020
import "google/type/localized_text.proto";
2121

22-
option cc_enable_arenas = true;
2322
option csharp_namespace = "Google.Maps.Places.V1";
2423
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2524
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/contextual_content.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.maps.places.v1;
1919
import "google/maps/places/v1/photo.proto";
2020
import "google/maps/places/v1/review.proto";
2121

22-
option cc_enable_arenas = true;
2322
option csharp_namespace = "Google.Maps.Places.V1";
2423
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2524
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/ev_charging.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package google.maps.places.v1;
1818

1919
import "google/protobuf/timestamp.proto";
2020

21-
option cc_enable_arenas = true;
2221
option csharp_namespace = "Google.Maps.Places.V1";
2322
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2423
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/fuel_options.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.maps.places.v1;
1919
import "google/protobuf/timestamp.proto";
2020
import "google/type/money.proto";
2121

22-
option cc_enable_arenas = true;
2322
option csharp_namespace = "Google.Maps.Places.V1";
2423
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2524
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/geometry.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.maps.places.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/type/latlng.proto";
2121

22-
option cc_enable_arenas = true;
2322
option csharp_namespace = "Google.Maps.Places.V1";
2423
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2524
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/photo.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/maps/places/v1/attribution.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Maps.Places.V1";
2524
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2625
option java_multiple_files = true;

packages/google-maps-places/protos/google/maps/places/v1/place.proto

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ import "google/maps/places/v1/content_block.proto";
2222
import "google/maps/places/v1/ev_charging.proto";
2323
import "google/maps/places/v1/fuel_options.proto";
2424
import "google/maps/places/v1/photo.proto";
25+
import "google/maps/places/v1/price_range.proto";
2526
import "google/maps/places/v1/reference.proto";
2627
import "google/maps/places/v1/review.proto";
28+
import "google/protobuf/timestamp.proto";
2729
import "google/type/date.proto";
2830
import "google/type/latlng.proto";
2931
import "google/type/localized_text.proto";
3032

31-
option cc_enable_arenas = true;
3233
option csharp_namespace = "Google.Maps.Places.V1";
3334
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
3435
option java_multiple_files = true;
@@ -193,6 +194,16 @@ message Place {
193194
// current_opening_hours and current_secondary_opening_hours if there are
194195
// exceptional hours.
195196
repeated SpecialDay special_days = 5;
197+
198+
// The next time the current opening hours period starts up to 7 days in the
199+
// future. This field is only populated if the opening hours period is not
200+
// active at the time of serving the request.
201+
google.protobuf.Timestamp next_open_time = 6;
202+
203+
// The next time the current opening hours period ends up to 7 days in the
204+
// future. This field is only populated if the opening hours period is
205+
// active at the time of serving the request.
206+
google.protobuf.Timestamp next_close_time = 7;
196207
}
197208

198209
// Business status for the place.
@@ -314,6 +325,17 @@ message Place {
314325
repeated ContentBlock content_blocks = 4;
315326
}
316327

328+
// Info about the place in which this place is located.
329+
message ContainingPlace {
330+
// The resource name of the place in which this place is located.
331+
string name = 1 [
332+
(google.api.resource_reference) = { type: "places.googleapis.com/Place" }
333+
];
334+
335+
// The place id of the place in which this place is located.
336+
string id = 2;
337+
}
338+
317339
// This Place's resource name, in `places/{place_id}` format. Can be used to
318340
// look up the Place.
319341
string name = 1;
@@ -378,7 +400,9 @@ message Place {
378400
// The position of this place.
379401
google.type.LatLng location = 12;
380402

381-
// A viewport suitable for displaying the place on an average-sized map.
403+
// A viewport suitable for displaying the place on an average-sized map. This
404+
// viewport should not be used as the physical boundary or the service area of
405+
// the business.
382406
google.geo.type.Viewport viewport = 13;
383407

384408
// A rating between 1.0 and 5.0, based on user reviews of this place.
@@ -412,7 +436,6 @@ message Place {
412436
// The place's address in adr microformat: http://microformats.org/wiki/adr.
413437
string adr_format_address = 24;
414438

415-
// The business status for the place.
416439
BusinessStatus business_status = 25;
417440

418441
// Price level of the place.
@@ -562,6 +585,19 @@ message Place {
562585
//
563586
// AI-generated summary of the area that the place is in.
564587
AreaSummary area_summary = 81;
588+
589+
// List of places in which the current place is located.
590+
repeated ContainingPlace containing_places = 82;
591+
592+
// Indicates whether the place is a pure service area business. Pure service
593+
// area business is a business that visits or delivers to customers directly
594+
// but does not serve customers at their business address. For example,
595+
// businesses like cleaning services or plumbers. Those businesses may not
596+
// have a physical address or location on Google Maps.
597+
optional bool pure_service_area_business = 83;
598+
599+
// The price range associated with a Place.
600+
PriceRange price_range = 86;
565601
}
566602

567603
// Price level of the place.

packages/google-maps-places/protos/google/maps/places/v1/places_service.proto

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import "google/maps/places/v1/routing_summary.proto";
3232
import "google/maps/places/v1/travel_mode.proto";
3333
import "google/type/latlng.proto";
3434

35-
option cc_enable_arenas = true;
3635
option csharp_namespace = "Google.Maps.Places.V1";
3736
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
3837
option java_multiple_files = true;
@@ -263,7 +262,7 @@ message SearchNearbyResponse {
263262
repeated Place places = 1;
264263

265264
// A list of routing summaries where each entry associates to the
266-
// corresponding place in the same index in the places field. If the routing
265+
// corresponding place in the same index in the `places` field. If the routing
267266
// summary is not available for one of the places, it will contain an empty
268267
// entry. This list should have as many entries as the list of places if
269268
// requested.
@@ -430,6 +429,16 @@ message SearchTextRequest {
430429
// Optional. Additional parameters proto for searching along a route.
431430
SearchAlongRouteParameters search_along_route_parameters = 17
432431
[(google.api.field_behavior) = OPTIONAL];
432+
433+
// Optional. Include pure service area businesses if the field is set to true.
434+
// Pure service area business is a business that visits or delivers to
435+
// customers directly but does not serve customers at their business address.
436+
// For example, businesses like cleaning services or plumbers. Those
437+
// businesses do not have a physical address or location on Google Maps.
438+
// Places will not return fields including `location`, `plus_code`, and other
439+
// location related fields for these businesses.
440+
bool include_pure_service_area_businesses = 20
441+
[(google.api.field_behavior) = OPTIONAL];
433442
}
434443

435444
// Response proto for SearchText.
@@ -439,7 +448,7 @@ message SearchTextResponse {
439448
repeated Place places = 1;
440449

441450
// A list of routing summaries where each entry associates to the
442-
// corresponding place in the same index in the places field. If the routing
451+
// corresponding place in the same index in the `places` field. If the routing
443452
// summary is not available for one of the places, it will contain an empty
444453
// entry. This list will have as many entries as the list of places if
445454
// requested.
@@ -698,6 +707,16 @@ message AutocompletePlacesRequest {
698707
// same token for more than one session will result in each request being
699708
// billed individually.
700709
string session_token = 11 [(google.api.field_behavior) = OPTIONAL];
710+
711+
// Optional. Include pure service area businesses if the field is set to true.
712+
// Pure service area business is a business that visits or delivers to
713+
// customers directly but does not serve customers at their business address.
714+
// For example, businesses like cleaning services or plumbers. Those
715+
// businesses do not have a physical address or location on Google Maps.
716+
// Places will not return fields including `location`, `plus_code`, and other
717+
// location related fields for these businesses.
718+
bool include_pure_service_area_businesses = 12
719+
[(google.api.field_behavior) = OPTIONAL];
701720
}
702721

703722
// Response proto for AutocompletePlaces.

packages/google-maps-places/protos/google/maps/places/v1/polyline.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.maps.places.v1;
1818

19-
option cc_enable_arenas = true;
2019
option csharp_namespace = "Google.Maps.Places.V1";
2120
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
2221
option java_multiple_files = true;

0 commit comments

Comments
 (0)