diff --git a/packages/google-maps-places/protos/google/maps/places/v1/attribution.proto b/packages/google-maps-places/protos/google/maps/places/v1/attribution.proto index 481ce202499..9a9c1105733 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/attribution.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/attribution.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.places.v1; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/content_block.proto b/packages/google-maps-places/protos/google/maps/places/v1/content_block.proto index 1a2352f26b6..298c6479af8 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/content_block.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/content_block.proto @@ -19,7 +19,6 @@ package google.maps.places.v1; import "google/maps/places/v1/reference.proto"; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/contextual_content.proto b/packages/google-maps-places/protos/google/maps/places/v1/contextual_content.proto index a732e91e392..1435a677489 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/contextual_content.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/contextual_content.proto @@ -19,7 +19,6 @@ package google.maps.places.v1; import "google/maps/places/v1/photo.proto"; import "google/maps/places/v1/review.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/ev_charging.proto b/packages/google-maps-places/protos/google/maps/places/v1/ev_charging.proto index 80db0cb76e8..3baee8ffd72 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/ev_charging.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/ev_charging.proto @@ -18,7 +18,6 @@ package google.maps.places.v1; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/fuel_options.proto b/packages/google-maps-places/protos/google/maps/places/v1/fuel_options.proto index c0e6e9900eb..20d2c7995ea 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/fuel_options.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/fuel_options.proto @@ -19,7 +19,6 @@ package google.maps.places.v1; import "google/protobuf/timestamp.proto"; import "google/type/money.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/geometry.proto b/packages/google-maps-places/protos/google/maps/places/v1/geometry.proto index 92ebd887a24..92ef94ebf36 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/geometry.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/geometry.proto @@ -19,7 +19,6 @@ package google.maps.places.v1; import "google/api/field_behavior.proto"; import "google/type/latlng.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/photo.proto b/packages/google-maps-places/protos/google/maps/places/v1/photo.proto index b340dce98e9..b7030ea871c 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/photo.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/photo.proto @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/maps/places/v1/attribution.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/place.proto b/packages/google-maps-places/protos/google/maps/places/v1/place.proto index 0509e6bec3f..b512c3c1a9d 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/place.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/place.proto @@ -22,13 +22,14 @@ import "google/maps/places/v1/content_block.proto"; import "google/maps/places/v1/ev_charging.proto"; import "google/maps/places/v1/fuel_options.proto"; import "google/maps/places/v1/photo.proto"; +import "google/maps/places/v1/price_range.proto"; import "google/maps/places/v1/reference.proto"; import "google/maps/places/v1/review.proto"; +import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; import "google/type/latlng.proto"; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; @@ -193,6 +194,16 @@ message Place { // current_opening_hours and current_secondary_opening_hours if there are // exceptional hours. repeated SpecialDay special_days = 5; + + // The next time the current opening hours period starts up to 7 days in the + // future. This field is only populated if the opening hours period is not + // active at the time of serving the request. + google.protobuf.Timestamp next_open_time = 6; + + // The next time the current opening hours period ends up to 7 days in the + // future. This field is only populated if the opening hours period is + // active at the time of serving the request. + google.protobuf.Timestamp next_close_time = 7; } // Business status for the place. @@ -314,6 +325,17 @@ message Place { repeated ContentBlock content_blocks = 4; } + // Info about the place in which this place is located. + message ContainingPlace { + // The resource name of the place in which this place is located. + string name = 1 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; + + // The place id of the place in which this place is located. + string id = 2; + } + // This Place's resource name, in `places/{place_id}` format. Can be used to // look up the Place. string name = 1; @@ -378,7 +400,9 @@ message Place { // The position of this place. google.type.LatLng location = 12; - // A viewport suitable for displaying the place on an average-sized map. + // A viewport suitable for displaying the place on an average-sized map. This + // viewport should not be used as the physical boundary or the service area of + // the business. google.geo.type.Viewport viewport = 13; // A rating between 1.0 and 5.0, based on user reviews of this place. @@ -412,7 +436,6 @@ message Place { // The place's address in adr microformat: http://microformats.org/wiki/adr. string adr_format_address = 24; - // The business status for the place. BusinessStatus business_status = 25; // Price level of the place. @@ -562,6 +585,19 @@ message Place { // // AI-generated summary of the area that the place is in. AreaSummary area_summary = 81; + + // List of places in which the current place is located. + repeated ContainingPlace containing_places = 82; + + // Indicates whether the place is a pure service area business. Pure service + // area business is a business that visits or delivers to customers directly + // but does not serve customers at their business address. For example, + // businesses like cleaning services or plumbers. Those businesses may not + // have a physical address or location on Google Maps. + optional bool pure_service_area_business = 83; + + // The price range associated with a Place. + PriceRange price_range = 86; } // Price level of the place. diff --git a/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto b/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto index 18256c6b32d..b4344c70fb4 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/places_service.proto @@ -32,7 +32,6 @@ import "google/maps/places/v1/routing_summary.proto"; import "google/maps/places/v1/travel_mode.proto"; import "google/type/latlng.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; @@ -263,7 +262,7 @@ message SearchNearbyResponse { repeated Place places = 1; // A list of routing summaries where each entry associates to the - // corresponding place in the same index in the places field. If the routing + // corresponding place in the same index in the `places` field. If the routing // summary is not available for one of the places, it will contain an empty // entry. This list should have as many entries as the list of places if // requested. @@ -430,6 +429,16 @@ message SearchTextRequest { // Optional. Additional parameters proto for searching along a route. SearchAlongRouteParameters search_along_route_parameters = 17 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Include pure service area businesses if the field is set to true. + // Pure service area business is a business that visits or delivers to + // customers directly but does not serve customers at their business address. + // For example, businesses like cleaning services or plumbers. Those + // businesses do not have a physical address or location on Google Maps. + // Places will not return fields including `location`, `plus_code`, and other + // location related fields for these businesses. + bool include_pure_service_area_businesses = 20 + [(google.api.field_behavior) = OPTIONAL]; } // Response proto for SearchText. @@ -439,7 +448,7 @@ message SearchTextResponse { repeated Place places = 1; // A list of routing summaries where each entry associates to the - // corresponding place in the same index in the places field. If the routing + // corresponding place in the same index in the `places` field. If the routing // summary is not available for one of the places, it will contain an empty // entry. This list will have as many entries as the list of places if // requested. @@ -698,6 +707,16 @@ message AutocompletePlacesRequest { // same token for more than one session will result in each request being // billed individually. string session_token = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Include pure service area businesses if the field is set to true. + // Pure service area business is a business that visits or delivers to + // customers directly but does not serve customers at their business address. + // For example, businesses like cleaning services or plumbers. Those + // businesses do not have a physical address or location on Google Maps. + // Places will not return fields including `location`, `plus_code`, and other + // location related fields for these businesses. + bool include_pure_service_area_businesses = 12 + [(google.api.field_behavior) = OPTIONAL]; } // Response proto for AutocompletePlaces. diff --git a/packages/google-maps-places/protos/google/maps/places/v1/polyline.proto b/packages/google-maps-places/protos/google/maps/places/v1/polyline.proto index 80967b85033..1eedb379236 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/polyline.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/polyline.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.places.v1; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/price_range.proto b/packages/google-maps-places/protos/google/maps/places/v1/price_range.proto new file mode 100644 index 00000000000..a3915d4adc7 --- /dev/null +++ b/packages/google-maps-places/protos/google/maps/places/v1/price_range.proto @@ -0,0 +1,39 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.maps.places.v1; + +import "google/type/money.proto"; + +option csharp_namespace = "Google.Maps.Places.V1"; +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; +option java_multiple_files = true; +option java_outer_classname = "PriceRangeProto"; +option java_package = "com.google.maps.places.v1"; +option objc_class_prefix = "GMPSV1"; +option php_namespace = "Google\\Maps\\Places\\V1"; + +// The price range associated with a Place. `end_price` could be unset, which +// indicates a range without upper bound (e.g. "More than $100"). +message PriceRange { + // The low end of the price range (inclusive). Price should be at or above + // this amount. + google.type.Money start_price = 1; + + // The high end of the price range (exclusive). Price should be lower than + // this amount. + google.type.Money end_price = 2; +} diff --git a/packages/google-maps-places/protos/google/maps/places/v1/reference.proto b/packages/google-maps-places/protos/google/maps/places/v1/reference.proto index dc5947e75c3..cc4d7dc64c2 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/reference.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/reference.proto @@ -19,7 +19,6 @@ package google.maps.places.v1; import "google/api/resource.proto"; import "google/maps/places/v1/review.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/review.proto b/packages/google-maps-places/protos/google/maps/places/v1/review.proto index 5aaca3ab88a..724cf966bc2 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/review.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/review.proto @@ -21,7 +21,6 @@ import "google/maps/places/v1/attribution.proto"; import "google/protobuf/timestamp.proto"; import "google/type/localized_text.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/route_modifiers.proto b/packages/google-maps-places/protos/google/maps/places/v1/route_modifiers.proto index 1dfd44a9c5c..1b98d9222e3 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/route_modifiers.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/route_modifiers.proto @@ -18,7 +18,6 @@ package google.maps.places.v1; import "google/api/field_behavior.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/routing_preference.proto b/packages/google-maps-places/protos/google/maps/places/v1/routing_preference.proto index 31bf0fb7e64..57c983d6f12 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/routing_preference.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/routing_preference.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.places.v1; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/google/maps/places/v1/routing_summary.proto b/packages/google-maps-places/protos/google/maps/places/v1/routing_summary.proto index 621b92ad808..b58906aa624 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/routing_summary.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/routing_summary.proto @@ -18,7 +18,6 @@ package google.maps.places.v1; import "google/protobuf/duration.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; @@ -29,7 +28,7 @@ option php_namespace = "Google\\Maps\\Places\\V1"; // The duration and distance from the routing origin to a place in the // response, and a second leg from that place to the destination, if requested. -// Note: Adding `routingSummaries` in the field mask without also including +// **Note:** Adding `routingSummaries` in the field mask without also including // either the `routingParameters.origin` parameter or the // `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the // request causes an error. @@ -51,4 +50,12 @@ message RoutingSummary { // legs: one from the origin to place, and one from the place to the // destination. repeated Leg legs = 1; + + // A link to show directions on Google Maps using the waypoints from the given + // routing summary. The route generated by this link is not guaranteed to be + // the same as the route used to generate the routing summary. + // The link uses information provided in the request, from fields including + // `routingParameters` and `searchAlongRouteParameters` when applicable, to + // generate the directions link. + string directions_uri = 2; } diff --git a/packages/google-maps-places/protos/google/maps/places/v1/travel_mode.proto b/packages/google-maps-places/protos/google/maps/places/v1/travel_mode.proto index d361c42fd93..631435fdd14 100644 --- a/packages/google-maps-places/protos/google/maps/places/v1/travel_mode.proto +++ b/packages/google-maps-places/protos/google/maps/places/v1/travel_mode.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.maps.places.v1; -option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Places.V1"; option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; option java_multiple_files = true; diff --git a/packages/google-maps-places/protos/protos.d.ts b/packages/google-maps-places/protos/protos.d.ts index e82cd4a16d0..0ec8c4f66f9 100644 --- a/packages/google-maps-places/protos/protos.d.ts +++ b/packages/google-maps-places/protos/protos.d.ts @@ -2561,6 +2561,15 @@ export namespace google { /** Place areaSummary */ areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null); + + /** Place containingPlaces */ + containingPlaces?: (google.maps.places.v1.Place.IContainingPlace[]|null); + + /** Place pureServiceAreaBusiness */ + pureServiceAreaBusiness?: (boolean|null); + + /** Place priceRange */ + priceRange?: (google.maps.places.v1.IPriceRange|null); } /** Represents a Place. */ @@ -2761,6 +2770,15 @@ export namespace google { /** Place areaSummary. */ public areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null); + /** Place containingPlaces. */ + public containingPlaces: google.maps.places.v1.Place.IContainingPlace[]; + + /** Place pureServiceAreaBusiness. */ + public pureServiceAreaBusiness?: (boolean|null); + + /** Place priceRange. */ + public priceRange?: (google.maps.places.v1.IPriceRange|null); + /** Place _utcOffsetMinutes. */ public _utcOffsetMinutes?: "utcOffsetMinutes"; @@ -2839,6 +2857,9 @@ export namespace google { /** Place _accessibilityOptions. */ public _accessibilityOptions?: "accessibilityOptions"; + /** Place _pureServiceAreaBusiness. */ + public _pureServiceAreaBusiness?: "pureServiceAreaBusiness"; + /** * Creates a new Place instance using the specified properties. * @param [properties] Properties to set @@ -3154,6 +3175,12 @@ export namespace google { /** OpeningHours specialDays */ specialDays?: (google.maps.places.v1.Place.OpeningHours.ISpecialDay[]|null); + + /** OpeningHours nextOpenTime */ + nextOpenTime?: (google.protobuf.ITimestamp|null); + + /** OpeningHours nextCloseTime */ + nextCloseTime?: (google.protobuf.ITimestamp|null); } /** Represents an OpeningHours. */ @@ -3180,6 +3207,12 @@ export namespace google { /** OpeningHours specialDays. */ public specialDays: google.maps.places.v1.Place.OpeningHours.ISpecialDay[]; + /** OpeningHours nextOpenTime. */ + public nextOpenTime?: (google.protobuf.ITimestamp|null); + + /** OpeningHours nextCloseTime. */ + public nextCloseTime?: (google.protobuf.ITimestamp|null); + /** OpeningHours _openNow. */ public _openNow?: "openNow"; @@ -4442,6 +4475,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a ContainingPlace. */ + interface IContainingPlace { + + /** ContainingPlace name */ + name?: (string|null); + + /** ContainingPlace id */ + id?: (string|null); + } + + /** Represents a ContainingPlace. */ + class ContainingPlace implements IContainingPlace { + + /** + * Constructs a new ContainingPlace. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.Place.IContainingPlace); + + /** ContainingPlace name. */ + public name: string; + + /** ContainingPlace id. */ + public id: string; + + /** + * Creates a new ContainingPlace instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainingPlace instance + */ + public static create(properties?: google.maps.places.v1.Place.IContainingPlace): google.maps.places.v1.Place.ContainingPlace; + + /** + * Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages. + * @param message ContainingPlace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages. + * @param message ContainingPlace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainingPlace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainingPlace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ContainingPlace; + + /** + * Decodes a ContainingPlace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainingPlace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ContainingPlace; + + /** + * Verifies a ContainingPlace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainingPlace + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ContainingPlace; + + /** + * Creates a plain object from a ContainingPlace message. Also converts values to other types if specified. + * @param message ContainingPlace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.Place.ContainingPlace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContainingPlace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ContainingPlace + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** PriceLevel enum. */ @@ -4454,6 +4590,109 @@ export namespace google { PRICE_LEVEL_VERY_EXPENSIVE = 5 } + /** Properties of a PriceRange. */ + interface IPriceRange { + + /** PriceRange startPrice */ + startPrice?: (google.type.IMoney|null); + + /** PriceRange endPrice */ + endPrice?: (google.type.IMoney|null); + } + + /** Represents a PriceRange. */ + class PriceRange implements IPriceRange { + + /** + * Constructs a new PriceRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.maps.places.v1.IPriceRange); + + /** PriceRange startPrice. */ + public startPrice?: (google.type.IMoney|null); + + /** PriceRange endPrice. */ + public endPrice?: (google.type.IMoney|null); + + /** + * Creates a new PriceRange instance using the specified properties. + * @param [properties] Properties to set + * @returns PriceRange instance + */ + public static create(properties?: google.maps.places.v1.IPriceRange): google.maps.places.v1.PriceRange; + + /** + * Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages. + * @param message PriceRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages. + * @param message PriceRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PriceRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PriceRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.PriceRange; + + /** + * Decodes a PriceRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PriceRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.PriceRange; + + /** + * Verifies a PriceRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PriceRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PriceRange + */ + public static fromObject(object: { [k: string]: any }): google.maps.places.v1.PriceRange; + + /** + * Creates a plain object from a PriceRange message. Also converts values to other types if specified. + * @param message PriceRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.maps.places.v1.PriceRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PriceRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PriceRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a Places */ class Places extends $protobuf.rpc.Service { @@ -5109,6 +5348,9 @@ export namespace google { /** SearchTextRequest searchAlongRouteParameters */ searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null); + + /** SearchTextRequest includePureServiceAreaBusinesses */ + includePureServiceAreaBusinesses?: (boolean|null); } /** Represents a SearchTextRequest. */ @@ -5165,6 +5407,9 @@ export namespace google { /** SearchTextRequest searchAlongRouteParameters. */ public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null); + /** SearchTextRequest includePureServiceAreaBusinesses. */ + public includePureServiceAreaBusinesses: boolean; + /** * Creates a new SearchTextRequest instance using the specified properties. * @param [properties] Properties to set @@ -6136,6 +6381,9 @@ export namespace google { /** AutocompletePlacesRequest sessionToken */ sessionToken?: (string|null); + + /** AutocompletePlacesRequest includePureServiceAreaBusinesses */ + includePureServiceAreaBusinesses?: (boolean|null); } /** Represents an AutocompletePlacesRequest. */ @@ -6180,6 +6428,9 @@ export namespace google { /** AutocompletePlacesRequest sessionToken. */ public sessionToken: string; + /** AutocompletePlacesRequest includePureServiceAreaBusinesses. */ + public includePureServiceAreaBusinesses: boolean; + /** * Creates a new AutocompletePlacesRequest instance using the specified properties. * @param [properties] Properties to set @@ -7449,6 +7700,9 @@ export namespace google { /** RoutingSummary legs */ legs?: (google.maps.places.v1.RoutingSummary.ILeg[]|null); + + /** RoutingSummary directionsUri */ + directionsUri?: (string|null); } /** Represents a RoutingSummary. */ @@ -7463,6 +7717,9 @@ export namespace google { /** RoutingSummary legs. */ public legs: google.maps.places.v1.RoutingSummary.ILeg[]; + /** RoutingSummary directionsUri. */ + public directionsUri: string; + /** * Creates a new RoutingSummary instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-maps-places/protos/protos.js b/packages/google-maps-places/protos/protos.js index c9efd97b5cc..c7c5221c975 100644 --- a/packages/google-maps-places/protos/protos.js +++ b/packages/google-maps-places/protos/protos.js @@ -5907,6 +5907,9 @@ * @property {google.maps.places.v1.IEVChargeOptions|null} [evChargeOptions] Place evChargeOptions * @property {google.maps.places.v1.Place.IGenerativeSummary|null} [generativeSummary] Place generativeSummary * @property {google.maps.places.v1.Place.IAreaSummary|null} [areaSummary] Place areaSummary + * @property {Array.|null} [containingPlaces] Place containingPlaces + * @property {boolean|null} [pureServiceAreaBusiness] Place pureServiceAreaBusiness + * @property {google.maps.places.v1.IPriceRange|null} [priceRange] Place priceRange */ /** @@ -5926,6 +5929,7 @@ this.currentSecondaryOpeningHours = []; this.regularSecondaryOpeningHours = []; this.subDestinations = []; + this.containingPlaces = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6436,6 +6440,30 @@ */ Place.prototype.areaSummary = null; + /** + * Place containingPlaces. + * @member {Array.} containingPlaces + * @memberof google.maps.places.v1.Place + * @instance + */ + Place.prototype.containingPlaces = $util.emptyArray; + + /** + * Place pureServiceAreaBusiness. + * @member {boolean|null|undefined} pureServiceAreaBusiness + * @memberof google.maps.places.v1.Place + * @instance + */ + Place.prototype.pureServiceAreaBusiness = null; + + /** + * Place priceRange. + * @member {google.maps.places.v1.IPriceRange|null|undefined} priceRange + * @memberof google.maps.places.v1.Place + * @instance + */ + Place.prototype.priceRange = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -6725,6 +6753,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Place _pureServiceAreaBusiness. + * @member {"pureServiceAreaBusiness"|undefined} _pureServiceAreaBusiness + * @memberof google.maps.places.v1.Place + * @instance + */ + Object.defineProperty(Place.prototype, "_pureServiceAreaBusiness", { + get: $util.oneOfGetter($oneOfFields = ["pureServiceAreaBusiness"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Place instance using the specified properties. * @function create @@ -6883,6 +6922,13 @@ $root.google.maps.places.v1.Place.GenerativeSummary.encode(message.generativeSummary, writer.uint32(/* id 80, wireType 2 =*/642).fork()).ldelim(); if (message.areaSummary != null && Object.hasOwnProperty.call(message, "areaSummary")) $root.google.maps.places.v1.Place.AreaSummary.encode(message.areaSummary, writer.uint32(/* id 81, wireType 2 =*/650).fork()).ldelim(); + if (message.containingPlaces != null && message.containingPlaces.length) + for (var i = 0; i < message.containingPlaces.length; ++i) + $root.google.maps.places.v1.Place.ContainingPlace.encode(message.containingPlaces[i], writer.uint32(/* id 82, wireType 2 =*/658).fork()).ldelim(); + if (message.pureServiceAreaBusiness != null && Object.hasOwnProperty.call(message, "pureServiceAreaBusiness")) + writer.uint32(/* id 83, wireType 0 =*/664).bool(message.pureServiceAreaBusiness); + if (message.priceRange != null && Object.hasOwnProperty.call(message, "priceRange")) + $root.google.maps.places.v1.PriceRange.encode(message.priceRange, writer.uint32(/* id 86, wireType 2 =*/690).fork()).ldelim(); return writer; }; @@ -7185,6 +7231,20 @@ message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.decode(reader, reader.uint32()); break; } + case 82: { + if (!(message.containingPlaces && message.containingPlaces.length)) + message.containingPlaces = []; + message.containingPlaces.push($root.google.maps.places.v1.Place.ContainingPlace.decode(reader, reader.uint32())); + break; + } + case 83: { + message.pureServiceAreaBusiness = reader.bool(); + break; + } + case 86: { + message.priceRange = $root.google.maps.places.v1.PriceRange.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -7555,6 +7615,25 @@ if (error) return "areaSummary." + error; } + if (message.containingPlaces != null && message.hasOwnProperty("containingPlaces")) { + if (!Array.isArray(message.containingPlaces)) + return "containingPlaces: array expected"; + for (var i = 0; i < message.containingPlaces.length; ++i) { + var error = $root.google.maps.places.v1.Place.ContainingPlace.verify(message.containingPlaces[i]); + if (error) + return "containingPlaces." + error; + } + } + if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) { + properties._pureServiceAreaBusiness = 1; + if (typeof message.pureServiceAreaBusiness !== "boolean") + return "pureServiceAreaBusiness: boolean expected"; + } + if (message.priceRange != null && message.hasOwnProperty("priceRange")) { + var error = $root.google.maps.places.v1.PriceRange.verify(message.priceRange); + if (error) + return "priceRange." + error; + } return null; }; @@ -7854,6 +7933,23 @@ throw TypeError(".google.maps.places.v1.Place.areaSummary: object expected"); message.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.fromObject(object.areaSummary); } + if (object.containingPlaces) { + if (!Array.isArray(object.containingPlaces)) + throw TypeError(".google.maps.places.v1.Place.containingPlaces: array expected"); + message.containingPlaces = []; + for (var i = 0; i < object.containingPlaces.length; ++i) { + if (typeof object.containingPlaces[i] !== "object") + throw TypeError(".google.maps.places.v1.Place.containingPlaces: object expected"); + message.containingPlaces[i] = $root.google.maps.places.v1.Place.ContainingPlace.fromObject(object.containingPlaces[i]); + } + } + if (object.pureServiceAreaBusiness != null) + message.pureServiceAreaBusiness = Boolean(object.pureServiceAreaBusiness); + if (object.priceRange != null) { + if (typeof object.priceRange !== "object") + throw TypeError(".google.maps.places.v1.Place.priceRange: object expected"); + message.priceRange = $root.google.maps.places.v1.PriceRange.fromObject(object.priceRange); + } return message; }; @@ -7879,6 +7975,7 @@ object.reviews = []; object.photos = []; object.subDestinations = []; + object.containingPlaces = []; } if (options.defaults) { object.name = ""; @@ -7910,6 +8007,7 @@ object.evChargeOptions = null; object.generativeSummary = null; object.areaSummary = null; + object.priceRange = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -8139,6 +8237,18 @@ object.generativeSummary = $root.google.maps.places.v1.Place.GenerativeSummary.toObject(message.generativeSummary, options); if (message.areaSummary != null && message.hasOwnProperty("areaSummary")) object.areaSummary = $root.google.maps.places.v1.Place.AreaSummary.toObject(message.areaSummary, options); + if (message.containingPlaces && message.containingPlaces.length) { + object.containingPlaces = []; + for (var j = 0; j < message.containingPlaces.length; ++j) + object.containingPlaces[j] = $root.google.maps.places.v1.Place.ContainingPlace.toObject(message.containingPlaces[j], options); + } + if (message.pureServiceAreaBusiness != null && message.hasOwnProperty("pureServiceAreaBusiness")) { + object.pureServiceAreaBusiness = message.pureServiceAreaBusiness; + if (options.oneofs) + object._pureServiceAreaBusiness = "pureServiceAreaBusiness"; + } + if (message.priceRange != null && message.hasOwnProperty("priceRange")) + object.priceRange = $root.google.maps.places.v1.PriceRange.toObject(message.priceRange, options); return object; }; @@ -8696,6 +8806,8 @@ * @property {Array.|null} [weekdayDescriptions] OpeningHours weekdayDescriptions * @property {google.maps.places.v1.Place.OpeningHours.SecondaryHoursType|null} [secondaryHoursType] OpeningHours secondaryHoursType * @property {Array.|null} [specialDays] OpeningHours specialDays + * @property {google.protobuf.ITimestamp|null} [nextOpenTime] OpeningHours nextOpenTime + * @property {google.protobuf.ITimestamp|null} [nextCloseTime] OpeningHours nextCloseTime */ /** @@ -8756,6 +8868,22 @@ */ OpeningHours.prototype.specialDays = $util.emptyArray; + /** + * OpeningHours nextOpenTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextOpenTime + * @memberof google.maps.places.v1.Place.OpeningHours + * @instance + */ + OpeningHours.prototype.nextOpenTime = null; + + /** + * OpeningHours nextCloseTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextCloseTime + * @memberof google.maps.places.v1.Place.OpeningHours + * @instance + */ + OpeningHours.prototype.nextCloseTime = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -8807,6 +8935,10 @@ if (message.specialDays != null && message.specialDays.length) for (var i = 0; i < message.specialDays.length; ++i) $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.encode(message.specialDays[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.nextOpenTime != null && Object.hasOwnProperty.call(message, "nextOpenTime")) + $root.google.protobuf.Timestamp.encode(message.nextOpenTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.nextCloseTime != null && Object.hasOwnProperty.call(message, "nextCloseTime")) + $root.google.protobuf.Timestamp.encode(message.nextCloseTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -8867,6 +8999,14 @@ message.specialDays.push($root.google.maps.places.v1.Place.OpeningHours.SpecialDay.decode(reader, reader.uint32())); break; } + case 6: { + message.nextOpenTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.nextCloseTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -8953,6 +9093,16 @@ return "specialDays." + error; } } + if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextOpenTime); + if (error) + return "nextOpenTime." + error; + } + if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextCloseTime); + if (error) + return "nextCloseTime." + error; + } return null; }; @@ -9061,6 +9211,16 @@ message.specialDays[i] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.fromObject(object.specialDays[i]); } } + if (object.nextOpenTime != null) { + if (typeof object.nextOpenTime !== "object") + throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextOpenTime: object expected"); + message.nextOpenTime = $root.google.protobuf.Timestamp.fromObject(object.nextOpenTime); + } + if (object.nextCloseTime != null) { + if (typeof object.nextCloseTime !== "object") + throw TypeError(".google.maps.places.v1.Place.OpeningHours.nextCloseTime: object expected"); + message.nextCloseTime = $root.google.protobuf.Timestamp.fromObject(object.nextCloseTime); + } return message; }; @@ -9082,8 +9242,11 @@ object.weekdayDescriptions = []; object.specialDays = []; } - if (options.defaults) + if (options.defaults) { object.secondaryHoursType = options.enums === String ? "SECONDARY_HOURS_TYPE_UNSPECIFIED" : 0; + object.nextOpenTime = null; + object.nextCloseTime = null; + } if (message.openNow != null && message.hasOwnProperty("openNow")) { object.openNow = message.openNow; if (options.oneofs) @@ -9106,6 +9269,10 @@ for (var j = 0; j < message.specialDays.length; ++j) object.specialDays[j] = $root.google.maps.places.v1.Place.OpeningHours.SpecialDay.toObject(message.specialDays[j], options); } + if (message.nextOpenTime != null && message.hasOwnProperty("nextOpenTime")) + object.nextOpenTime = $root.google.protobuf.Timestamp.toObject(message.nextOpenTime, options); + if (message.nextCloseTime != null && message.hasOwnProperty("nextCloseTime")) + object.nextCloseTime = $root.google.protobuf.Timestamp.toObject(message.nextCloseTime, options); return object; }; @@ -12051,6 +12218,233 @@ return AreaSummary; })(); + Place.ContainingPlace = (function() { + + /** + * Properties of a ContainingPlace. + * @memberof google.maps.places.v1.Place + * @interface IContainingPlace + * @property {string|null} [name] ContainingPlace name + * @property {string|null} [id] ContainingPlace id + */ + + /** + * Constructs a new ContainingPlace. + * @memberof google.maps.places.v1.Place + * @classdesc Represents a ContainingPlace. + * @implements IContainingPlace + * @constructor + * @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set + */ + function ContainingPlace(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainingPlace name. + * @member {string} name + * @memberof google.maps.places.v1.Place.ContainingPlace + * @instance + */ + ContainingPlace.prototype.name = ""; + + /** + * ContainingPlace id. + * @member {string} id + * @memberof google.maps.places.v1.Place.ContainingPlace + * @instance + */ + ContainingPlace.prototype.id = ""; + + /** + * Creates a new ContainingPlace instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {google.maps.places.v1.Place.IContainingPlace=} [properties] Properties to set + * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace instance + */ + ContainingPlace.create = function create(properties) { + return new ContainingPlace(properties); + }; + + /** + * Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainingPlace.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); + return writer; + }; + + /** + * Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {google.maps.places.v1.Place.IContainingPlace} message ContainingPlace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainingPlace.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContainingPlace message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainingPlace.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.Place.ContainingPlace(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.id = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContainingPlace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainingPlace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContainingPlace message. + * @function verify + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainingPlace.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + return null; + }; + + /** + * Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.Place.ContainingPlace} ContainingPlace + */ + ContainingPlace.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.Place.ContainingPlace) + return object; + var message = new $root.google.maps.places.v1.Place.ContainingPlace(); + if (object.name != null) + message.name = String(object.name); + if (object.id != null) + message.id = String(object.id); + return message; + }; + + /** + * Creates a plain object from a ContainingPlace message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {google.maps.places.v1.Place.ContainingPlace} message ContainingPlace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainingPlace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.id = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + return object; + }; + + /** + * Converts this ContainingPlace to JSON. + * @function toJSON + * @memberof google.maps.places.v1.Place.ContainingPlace + * @instance + * @returns {Object.} JSON object + */ + ContainingPlace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ContainingPlace + * @function getTypeUrl + * @memberof google.maps.places.v1.Place.ContainingPlace + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContainingPlace.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.Place.ContainingPlace"; + }; + + return ContainingPlace; + })(); + return Place; })(); @@ -12076,6 +12470,243 @@ return values; })(); + v1.PriceRange = (function() { + + /** + * Properties of a PriceRange. + * @memberof google.maps.places.v1 + * @interface IPriceRange + * @property {google.type.IMoney|null} [startPrice] PriceRange startPrice + * @property {google.type.IMoney|null} [endPrice] PriceRange endPrice + */ + + /** + * Constructs a new PriceRange. + * @memberof google.maps.places.v1 + * @classdesc Represents a PriceRange. + * @implements IPriceRange + * @constructor + * @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set + */ + function PriceRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PriceRange startPrice. + * @member {google.type.IMoney|null|undefined} startPrice + * @memberof google.maps.places.v1.PriceRange + * @instance + */ + PriceRange.prototype.startPrice = null; + + /** + * PriceRange endPrice. + * @member {google.type.IMoney|null|undefined} endPrice + * @memberof google.maps.places.v1.PriceRange + * @instance + */ + PriceRange.prototype.endPrice = null; + + /** + * Creates a new PriceRange instance using the specified properties. + * @function create + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {google.maps.places.v1.IPriceRange=} [properties] Properties to set + * @returns {google.maps.places.v1.PriceRange} PriceRange instance + */ + PriceRange.create = function create(properties) { + return new PriceRange(properties); + }; + + /** + * Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages. + * @function encode + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PriceRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startPrice != null && Object.hasOwnProperty.call(message, "startPrice")) + $root.google.type.Money.encode(message.startPrice, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endPrice != null && Object.hasOwnProperty.call(message, "endPrice")) + $root.google.type.Money.encode(message.endPrice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {google.maps.places.v1.IPriceRange} message PriceRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PriceRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PriceRange message from the specified reader or buffer. + * @function decode + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.maps.places.v1.PriceRange} PriceRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PriceRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.maps.places.v1.PriceRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.startPrice = $root.google.type.Money.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endPrice = $root.google.type.Money.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PriceRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.maps.places.v1.PriceRange} PriceRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PriceRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PriceRange message. + * @function verify + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PriceRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startPrice != null && message.hasOwnProperty("startPrice")) { + var error = $root.google.type.Money.verify(message.startPrice); + if (error) + return "startPrice." + error; + } + if (message.endPrice != null && message.hasOwnProperty("endPrice")) { + var error = $root.google.type.Money.verify(message.endPrice); + if (error) + return "endPrice." + error; + } + return null; + }; + + /** + * Creates a PriceRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {Object.} object Plain object + * @returns {google.maps.places.v1.PriceRange} PriceRange + */ + PriceRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.maps.places.v1.PriceRange) + return object; + var message = new $root.google.maps.places.v1.PriceRange(); + if (object.startPrice != null) { + if (typeof object.startPrice !== "object") + throw TypeError(".google.maps.places.v1.PriceRange.startPrice: object expected"); + message.startPrice = $root.google.type.Money.fromObject(object.startPrice); + } + if (object.endPrice != null) { + if (typeof object.endPrice !== "object") + throw TypeError(".google.maps.places.v1.PriceRange.endPrice: object expected"); + message.endPrice = $root.google.type.Money.fromObject(object.endPrice); + } + return message; + }; + + /** + * Creates a plain object from a PriceRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {google.maps.places.v1.PriceRange} message PriceRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PriceRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startPrice = null; + object.endPrice = null; + } + if (message.startPrice != null && message.hasOwnProperty("startPrice")) + object.startPrice = $root.google.type.Money.toObject(message.startPrice, options); + if (message.endPrice != null && message.hasOwnProperty("endPrice")) + object.endPrice = $root.google.type.Money.toObject(message.endPrice, options); + return object; + }; + + /** + * Converts this PriceRange to JSON. + * @function toJSON + * @memberof google.maps.places.v1.PriceRange + * @instance + * @returns {Object.} JSON object + */ + PriceRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PriceRange + * @function getTypeUrl + * @memberof google.maps.places.v1.PriceRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PriceRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.maps.places.v1.PriceRange"; + }; + + return PriceRange; + })(); + v1.Places = (function() { /** @@ -13666,6 +14297,7 @@ * @property {google.maps.places.v1.SearchTextRequest.IEVOptions|null} [evOptions] SearchTextRequest evOptions * @property {google.maps.places.v1.IRoutingParameters|null} [routingParameters] SearchTextRequest routingParameters * @property {google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null} [searchAlongRouteParameters] SearchTextRequest searchAlongRouteParameters + * @property {boolean|null} [includePureServiceAreaBusinesses] SearchTextRequest includePureServiceAreaBusinesses */ /** @@ -13804,6 +14436,14 @@ */ SearchTextRequest.prototype.searchAlongRouteParameters = null; + /** + * SearchTextRequest includePureServiceAreaBusinesses. + * @member {boolean} includePureServiceAreaBusinesses + * @memberof google.maps.places.v1.SearchTextRequest + * @instance + */ + SearchTextRequest.prototype.includePureServiceAreaBusinesses = false; + /** * Creates a new SearchTextRequest instance using the specified properties. * @function create @@ -13862,6 +14502,8 @@ $root.google.maps.places.v1.RoutingParameters.encode(message.routingParameters, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.searchAlongRouteParameters != null && Object.hasOwnProperty.call(message, "searchAlongRouteParameters")) $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.encode(message.searchAlongRouteParameters, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.includePureServiceAreaBusinesses); return writer; }; @@ -13963,6 +14605,10 @@ message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.decode(reader, reader.uint32()); break; } + case 20: { + message.includePureServiceAreaBusinesses = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -14072,6 +14718,9 @@ if (error) return "searchAlongRouteParameters." + error; } + if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses")) + if (typeof message.includePureServiceAreaBusinesses !== "boolean") + return "includePureServiceAreaBusinesses: boolean expected"; return null; }; @@ -14185,6 +14834,8 @@ throw TypeError(".google.maps.places.v1.SearchTextRequest.searchAlongRouteParameters: object expected"); message.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.fromObject(object.searchAlongRouteParameters); } + if (object.includePureServiceAreaBusinesses != null) + message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses); return message; }; @@ -14218,6 +14869,7 @@ object.evOptions = null; object.routingParameters = null; object.searchAlongRouteParameters = null; + object.includePureServiceAreaBusinesses = false; } if (message.textQuery != null && message.hasOwnProperty("textQuery")) object.textQuery = message.textQuery; @@ -14252,6 +14904,8 @@ object.routingParameters = $root.google.maps.places.v1.RoutingParameters.toObject(message.routingParameters, options); if (message.searchAlongRouteParameters != null && message.hasOwnProperty("searchAlongRouteParameters")) object.searchAlongRouteParameters = $root.google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.toObject(message.searchAlongRouteParameters, options); + if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses")) + object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses; return object; }; @@ -16410,6 +17064,7 @@ * @property {number|null} [inputOffset] AutocompletePlacesRequest inputOffset * @property {boolean|null} [includeQueryPredictions] AutocompletePlacesRequest includeQueryPredictions * @property {string|null} [sessionToken] AutocompletePlacesRequest sessionToken + * @property {boolean|null} [includePureServiceAreaBusinesses] AutocompletePlacesRequest includePureServiceAreaBusinesses */ /** @@ -16517,6 +17172,14 @@ */ AutocompletePlacesRequest.prototype.sessionToken = ""; + /** + * AutocompletePlacesRequest includePureServiceAreaBusinesses. + * @member {boolean} includePureServiceAreaBusinesses + * @memberof google.maps.places.v1.AutocompletePlacesRequest + * @instance + */ + AutocompletePlacesRequest.prototype.includePureServiceAreaBusinesses = false; + /** * Creates a new AutocompletePlacesRequest instance using the specified properties. * @function create @@ -16565,6 +17228,8 @@ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.includeQueryPredictions); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.sessionToken); + if (message.includePureServiceAreaBusinesses != null && Object.hasOwnProperty.call(message, "includePureServiceAreaBusinesses")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.includePureServiceAreaBusinesses); return writer; }; @@ -16647,6 +17312,10 @@ message.sessionToken = reader.string(); break; } + case 12: { + message.includePureServiceAreaBusinesses = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -16729,6 +17398,9 @@ if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) if (!$util.isString(message.sessionToken)) return "sessionToken: string expected"; + if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses")) + if (typeof message.includePureServiceAreaBusinesses !== "boolean") + return "includePureServiceAreaBusinesses: boolean expected"; return null; }; @@ -16785,6 +17457,8 @@ message.includeQueryPredictions = Boolean(object.includeQueryPredictions); if (object.sessionToken != null) message.sessionToken = String(object.sessionToken); + if (object.includePureServiceAreaBusinesses != null) + message.includePureServiceAreaBusinesses = Boolean(object.includePureServiceAreaBusinesses); return message; }; @@ -16815,6 +17489,7 @@ object.inputOffset = 0; object.includeQueryPredictions = false; object.sessionToken = ""; + object.includePureServiceAreaBusinesses = false; } if (message.input != null && message.hasOwnProperty("input")) object.input = message.input; @@ -16844,6 +17519,8 @@ object.includeQueryPredictions = message.includeQueryPredictions; if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) object.sessionToken = message.sessionToken; + if (message.includePureServiceAreaBusinesses != null && message.hasOwnProperty("includePureServiceAreaBusinesses")) + object.includePureServiceAreaBusinesses = message.includePureServiceAreaBusinesses; return object; }; @@ -19700,6 +20377,7 @@ * @memberof google.maps.places.v1 * @interface IRoutingSummary * @property {Array.|null} [legs] RoutingSummary legs + * @property {string|null} [directionsUri] RoutingSummary directionsUri */ /** @@ -19726,6 +20404,14 @@ */ RoutingSummary.prototype.legs = $util.emptyArray; + /** + * RoutingSummary directionsUri. + * @member {string} directionsUri + * @memberof google.maps.places.v1.RoutingSummary + * @instance + */ + RoutingSummary.prototype.directionsUri = ""; + /** * Creates a new RoutingSummary instance using the specified properties. * @function create @@ -19753,6 +20439,8 @@ if (message.legs != null && message.legs.length) for (var i = 0; i < message.legs.length; ++i) $root.google.maps.places.v1.RoutingSummary.Leg.encode(message.legs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.directionsUri != null && Object.hasOwnProperty.call(message, "directionsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.directionsUri); return writer; }; @@ -19793,6 +20481,10 @@ message.legs.push($root.google.maps.places.v1.RoutingSummary.Leg.decode(reader, reader.uint32())); break; } + case 2: { + message.directionsUri = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19837,6 +20529,9 @@ return "legs." + error; } } + if (message.directionsUri != null && message.hasOwnProperty("directionsUri")) + if (!$util.isString(message.directionsUri)) + return "directionsUri: string expected"; return null; }; @@ -19862,6 +20557,8 @@ message.legs[i] = $root.google.maps.places.v1.RoutingSummary.Leg.fromObject(object.legs[i]); } } + if (object.directionsUri != null) + message.directionsUri = String(object.directionsUri); return message; }; @@ -19880,11 +20577,15 @@ var object = {}; if (options.arrays || options.defaults) object.legs = []; + if (options.defaults) + object.directionsUri = ""; if (message.legs && message.legs.length) { object.legs = []; for (var j = 0; j < message.legs.length; ++j) object.legs[j] = $root.google.maps.places.v1.RoutingSummary.Leg.toObject(message.legs[j], options); } + if (message.directionsUri != null && message.hasOwnProperty("directionsUri")) + object.directionsUri = message.directionsUri; return object; }; diff --git a/packages/google-maps-places/protos/protos.json b/packages/google-maps-places/protos/protos.json index 610abadd0a0..7e026d8f25e 100644 --- a/packages/google-maps-places/protos/protos.json +++ b/packages/google-maps-places/protos/protos.json @@ -106,7 +106,6 @@ "nested": { "v1": { "options": { - "cc_enable_arenas": true, "csharp_namespace": "Google.Maps.Places.V1", "go_package": "cloud.google.com/go/maps/places/apiv1/placespb;placespb", "java_multiple_files": true, @@ -615,6 +614,11 @@ "oneof": [ "accessibilityOptions" ] + }, + "_pureServiceAreaBusiness": { + "oneof": [ + "pureServiceAreaBusiness" + ] } }, "fields": { @@ -955,6 +959,22 @@ "areaSummary": { "type": "AreaSummary", "id": 81 + }, + "containingPlaces": { + "rule": "repeated", + "type": "ContainingPlace", + "id": 82 + }, + "pureServiceAreaBusiness": { + "type": "bool", + "id": 83, + "options": { + "proto3_optional": true + } + }, + "priceRange": { + "type": "PriceRange", + "id": 86 } }, "nested": { @@ -1025,6 +1045,14 @@ "rule": "repeated", "type": "SpecialDay", "id": 5 + }, + "nextOpenTime": { + "type": "google.protobuf.Timestamp", + "id": 6 + }, + "nextCloseTime": { + "type": "google.protobuf.Timestamp", + "id": 7 } }, "nested": { @@ -1377,6 +1405,21 @@ "id": 4 } } + }, + "ContainingPlace": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "places.googleapis.com/Place" + } + }, + "id": { + "type": "string", + "id": 2 + } + } } } }, @@ -1390,6 +1433,18 @@ "PRICE_LEVEL_VERY_EXPENSIVE": 5 } }, + "PriceRange": { + "fields": { + "startPrice": { + "type": "google.type.Money", + "id": 1 + }, + "endPrice": { + "type": "google.type.Money", + "id": 2 + } + } + }, "Places": { "options": { "(google.api.default_host)": "places.googleapis.com" @@ -1679,6 +1734,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "includePureServiceAreaBusinesses": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1939,6 +2001,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "includePureServiceAreaBusinesses": { + "type": "bool", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -2159,6 +2228,10 @@ "rule": "repeated", "type": "Leg", "id": 1 + }, + "directionsUri": { + "type": "string", + "id": 2 } }, "nested": { diff --git a/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js b/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js index 94f17586f3f..f94614a615b 100644 --- a/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js +++ b/packages/google-maps-places/samples/generated/v1/places.autocomplete_places.js @@ -122,6 +122,16 @@ function main(input) { * billed individually. */ // const sessionToken = 'abc123' + /** + * Optional. Include pure service area businesses if the field is set to true. + * Pure service area business is a business that visits or delivers to + * customers directly but does not serve customers at their business address. + * For example, businesses like cleaning services or plumbers. Those + * businesses do not have a physical address or location on Google Maps. + * Places will not return fields including `location`, `plus_code`, and other + * location related fields for these businesses. + */ + // const includePureServiceAreaBusinesses = true // Imports the Places library const {PlacesClient} = require('@googlemaps/places').v1; diff --git a/packages/google-maps-places/samples/generated/v1/places.search_text.js b/packages/google-maps-places/samples/generated/v1/places.search_text.js index a9b3d35bd9b..bedf65171e0 100644 --- a/packages/google-maps-places/samples/generated/v1/places.search_text.js +++ b/packages/google-maps-places/samples/generated/v1/places.search_text.js @@ -116,6 +116,16 @@ function main(textQuery) { * Optional. Additional parameters proto for searching along a route. */ // const searchAlongRouteParameters = {} + /** + * Optional. Include pure service area businesses if the field is set to true. + * Pure service area business is a business that visits or delivers to + * customers directly but does not serve customers at their business address. + * For example, businesses like cleaning services or plumbers. Those + * businesses do not have a physical address or location on Google Maps. + * Places will not return fields including `location`, `plus_code`, and other + * location related fields for these businesses. + */ + // const includePureServiceAreaBusinesses = true // Imports the Places library const {PlacesClient} = require('@googlemaps/places').v1; diff --git a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json index 3b8831dbfa5..a5d539aebb0 100644 --- a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json +++ b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json @@ -98,7 +98,7 @@ "segments": [ { "start": 25, - "end": 137, + "end": 147, "type": "FULL" } ], @@ -166,6 +166,10 @@ { "name": "search_along_route_parameters", "type": ".google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters" + }, + { + "name": "include_pure_service_area_businesses", + "type": "TYPE_BOOL" } ], "resultType": ".google.maps.places.v1.SearchTextResponse", @@ -298,7 +302,7 @@ "segments": [ { "start": 25, - "end": 143, + "end": 153, "type": "FULL" } ], @@ -350,6 +354,10 @@ { "name": "session_token", "type": "TYPE_STRING" + }, + { + "name": "include_pure_service_area_businesses", + "type": "TYPE_BOOL" } ], "resultType": ".google.maps.places.v1.AutocompletePlacesResponse", diff --git a/packages/google-maps-places/src/v1/places_client.ts b/packages/google-maps-places/src/v1/places_client.ts index d8607754f4b..93fd04cd680 100644 --- a/packages/google-maps-places/src/v1/places_client.ts +++ b/packages/google-maps-places/src/v1/places_client.ts @@ -629,6 +629,14 @@ export class PlacesClient { * Optional. Additional parameters for routing to results. * @param {google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters} [request.searchAlongRouteParameters] * Optional. Additional parameters proto for searching along a route. + * @param {boolean} [request.includePureServiceAreaBusinesses] + * Optional. Include pure service area businesses if the field is set to true. + * Pure service area business is a business that visits or delivers to + * customers directly but does not serve customers at their business address. + * For example, businesses like cleaning services or plumbers. Those + * businesses do not have a physical address or location on Google Maps. + * Places will not return fields including `location`, `plus_code`, and other + * location related fields for these businesses. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1026,6 +1034,14 @@ export class PlacesClient { * * Be sure to pass a unique session token for each new session. Using the * same token for more than one session will result in each request being * billed individually. + * @param {boolean} [request.includePureServiceAreaBusinesses] + * Optional. Include pure service area businesses if the field is set to true. + * Pure service area business is a business that visits or delivers to + * customers directly but does not serve customers at their business address. + * For example, businesses like cleaning services or plumbers. Those + * businesses do not have a physical address or location on Google Maps. + * Places will not return fields including `location`, `plus_code`, and other + * location related fields for these businesses. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-maps-places/src/v1/places_proto_list.json b/packages/google-maps-places/src/v1/places_proto_list.json index 2b82d156d36..38638f7083d 100644 --- a/packages/google-maps-places/src/v1/places_proto_list.json +++ b/packages/google-maps-places/src/v1/places_proto_list.json @@ -10,6 +10,7 @@ "../../protos/google/maps/places/v1/place.proto", "../../protos/google/maps/places/v1/places_service.proto", "../../protos/google/maps/places/v1/polyline.proto", + "../../protos/google/maps/places/v1/price_range.proto", "../../protos/google/maps/places/v1/reference.proto", "../../protos/google/maps/places/v1/review.proto", "../../protos/google/maps/places/v1/route_modifiers.proto",