UNPKG

@googlemaps/places

Version:
1,316 lines (1,315 loc) 146 kB
{ "nested": { "google": { "nested": { "geo": { "nested": { "type": { "options": { "go_package": "google.golang.org/genproto/googleapis/geo/type/viewport;viewport", "java_multiple_files": true, "java_outer_classname": "ViewportProto", "java_package": "com.google.geo.type", "objc_class_prefix": "GGTP" }, "nested": { "Viewport": { "fields": { "low": { "type": "google.type.LatLng", "id": 1 }, "high": { "type": "google.type.LatLng", "id": 2 } } } } } } }, "type": { "options": { "cc_enable_arenas": true, "go_package": "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress", "java_multiple_files": true, "java_outer_classname": "PostalAddressProto", "java_package": "com.google.type", "objc_class_prefix": "GTP" }, "nested": { "LatLng": { "fields": { "latitude": { "type": "double", "id": 1 }, "longitude": { "type": "double", "id": 2 } } }, "LocalizedText": { "fields": { "text": { "type": "string", "id": 1 }, "languageCode": { "type": "string", "id": 2 } } }, "Money": { "fields": { "currencyCode": { "type": "string", "id": 1 }, "units": { "type": "int64", "id": 2 }, "nanos": { "type": "int32", "id": 3 } } }, "Date": { "fields": { "year": { "type": "int32", "id": 1 }, "month": { "type": "int32", "id": 2 }, "day": { "type": "int32", "id": 3 } } }, "DateTime": { "oneofs": { "timeOffset": { "oneof": [ "utcOffset", "timeZone" ] } }, "fields": { "year": { "type": "int32", "id": 1 }, "month": { "type": "int32", "id": 2 }, "day": { "type": "int32", "id": 3 }, "hours": { "type": "int32", "id": 4 }, "minutes": { "type": "int32", "id": 5 }, "seconds": { "type": "int32", "id": 6 }, "nanos": { "type": "int32", "id": 7 }, "utcOffset": { "type": "google.protobuf.Duration", "id": 8 }, "timeZone": { "type": "TimeZone", "id": 9 } } }, "TimeZone": { "fields": { "id": { "type": "string", "id": 1 }, "version": { "type": "string", "id": 2 } } }, "PostalAddress": { "fields": { "revision": { "type": "int32", "id": 1 }, "regionCode": { "type": "string", "id": 2 }, "languageCode": { "type": "string", "id": 3 }, "postalCode": { "type": "string", "id": 4 }, "sortingCode": { "type": "string", "id": 5 }, "administrativeArea": { "type": "string", "id": 6 }, "locality": { "type": "string", "id": 7 }, "sublocality": { "type": "string", "id": 8 }, "addressLines": { "rule": "repeated", "type": "string", "id": 9 }, "recipients": { "rule": "repeated", "type": "string", "id": 10 }, "organization": { "type": "string", "id": 11 } } } } }, "maps": { "nested": { "places": { "nested": { "v1": { "options": { "csharp_namespace": "Google.Maps.Places.V1", "go_package": "cloud.google.com/go/maps/places/apiv1/placespb;placespb", "java_multiple_files": true, "java_outer_classname": "TravelModeProto", "java_package": "com.google.maps.places.v1", "objc_class_prefix": "GMPSV1", "php_namespace": "Google\\Maps\\Places\\V1" }, "nested": { "AuthorAttribution": { "fields": { "displayName": { "type": "string", "id": 1 }, "uri": { "type": "string", "id": 2 }, "photoUri": { "type": "string", "id": 3 } } }, "ContentBlock": { "fields": { "topic": { "type": "string", "id": 1 }, "content": { "type": "google.type.LocalizedText", "id": 2 }, "references": { "type": "References", "id": 3 } } }, "References": { "fields": { "reviews": { "rule": "repeated", "type": "Review", "id": 1 }, "places": { "rule": "repeated", "type": "string", "id": 2, "options": { "(google.api.resource_reference).type": "places.googleapis.com/Place" } } } }, "Review": { "options": { "(google.api.resource).type": "places.googleapis.com/Review", "(google.api.resource).pattern": "places/{place}/reviews/{review}", "(google.api.resource).plural": "reviews", "(google.api.resource).singular": "review" }, "fields": { "name": { "type": "string", "id": 1 }, "relativePublishTimeDescription": { "type": "string", "id": 2 }, "text": { "type": "google.type.LocalizedText", "id": 9 }, "originalText": { "type": "google.type.LocalizedText", "id": 12 }, "rating": { "type": "double", "id": 7 }, "authorAttribution": { "type": "AuthorAttribution", "id": 13 }, "publishTime": { "type": "google.protobuf.Timestamp", "id": 14 } } }, "ContextualContent": { "fields": { "reviews": { "rule": "repeated", "type": "Review", "id": 1 }, "photos": { "rule": "repeated", "type": "Photo", "id": 2 }, "justifications": { "rule": "repeated", "type": "Justification", "id": 3 } }, "nested": { "Justification": { "oneofs": { "justification": { "oneof": [ "reviewJustification", "businessAvailabilityAttributesJustification" ] } }, "fields": { "reviewJustification": { "type": "ReviewJustification", "id": 1 }, "businessAvailabilityAttributesJustification": { "type": "BusinessAvailabilityAttributesJustification", "id": 2 } }, "nested": { "ReviewJustification": { "fields": { "highlightedText": { "type": "HighlightedText", "id": 1 }, "review": { "type": "Review", "id": 2 } }, "nested": { "HighlightedText": { "fields": { "text": { "type": "string", "id": 1 }, "highlightedTextRanges": { "rule": "repeated", "type": "HighlightedTextRange", "id": 2 } }, "nested": { "HighlightedTextRange": { "fields": { "startIndex": { "type": "int32", "id": 1 }, "endIndex": { "type": "int32", "id": 2 } } } } } } }, "BusinessAvailabilityAttributesJustification": { "fields": { "takeout": { "type": "bool", "id": 1 }, "delivery": { "type": "bool", "id": 2 }, "dineIn": { "type": "bool", "id": 3 } } } } } } }, "Photo": { "options": { "(google.api.resource).type": "places.googleapis.com/Photo", "(google.api.resource).pattern": "places/{place}/photos/{photo}", "(google.api.resource).plural": "photos", "(google.api.resource).singular": "photo" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "IDENTIFIER" } }, "widthPx": { "type": "int32", "id": 2 }, "heightPx": { "type": "int32", "id": 3 }, "authorAttributions": { "rule": "repeated", "type": "AuthorAttribution", "id": 4 } } }, "EVChargeOptions": { "fields": { "connectorCount": { "type": "int32", "id": 1 }, "connectorAggregation": { "rule": "repeated", "type": "ConnectorAggregation", "id": 2 } }, "nested": { "ConnectorAggregation": { "oneofs": { "_availableCount": { "oneof": [ "availableCount" ] }, "_outOfServiceCount": { "oneof": [ "outOfServiceCount" ] } }, "fields": { "type": { "type": "EVConnectorType", "id": 1 }, "maxChargeRateKw": { "type": "double", "id": 2 }, "count": { "type": "int32", "id": 3 }, "availableCount": { "type": "int32", "id": 4, "options": { "proto3_optional": true } }, "outOfServiceCount": { "type": "int32", "id": 5, "options": { "proto3_optional": true } }, "availabilityLastUpdateTime": { "type": "google.protobuf.Timestamp", "id": 6 } } } } }, "EVConnectorType": { "values": { "EV_CONNECTOR_TYPE_UNSPECIFIED": 0, "EV_CONNECTOR_TYPE_OTHER": 1, "EV_CONNECTOR_TYPE_J1772": 2, "EV_CONNECTOR_TYPE_TYPE_2": 3, "EV_CONNECTOR_TYPE_CHADEMO": 4, "EV_CONNECTOR_TYPE_CCS_COMBO_1": 5, "EV_CONNECTOR_TYPE_CCS_COMBO_2": 6, "EV_CONNECTOR_TYPE_TESLA": 7, "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T": 8, "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET": 9, "EV_CONNECTOR_TYPE_NACS": 10 } }, "FuelOptions": { "fields": { "fuelPrices": { "rule": "repeated", "type": "FuelPrice", "id": 1 } }, "nested": { "FuelPrice": { "fields": { "type": { "type": "FuelType", "id": 1 }, "price": { "type": "google.type.Money", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 } }, "nested": { "FuelType": { "values": { "FUEL_TYPE_UNSPECIFIED": 0, "DIESEL": 1, "DIESEL_PLUS": 19, "REGULAR_UNLEADED": 2, "MIDGRADE": 3, "PREMIUM": 4, "SP91": 5, "SP91_E10": 6, "SP92": 7, "SP95": 8, "SP95_E10": 9, "SP98": 10, "SP99": 11, "SP100": 12, "LPG": 13, "E80": 14, "E85": 15, "E100": 20, "METHANE": 16, "BIO_DIESEL": 17, "TRUCK_DIESEL": 18 } } } } } }, "Circle": { "fields": { "center": { "type": "google.type.LatLng", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "radius": { "type": "double", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "Place": { "options": { "(google.api.resource).type": "places.googleapis.com/Place", "(google.api.resource).pattern": "places/{place_id}", "(google.api.resource).plural": "places", "(google.api.resource).singular": "place" }, "oneofs": { "_utcOffsetMinutes": { "oneof": [ "utcOffsetMinutes" ] }, "_userRatingCount": { "oneof": [ "userRatingCount" ] }, "_takeout": { "oneof": [ "takeout" ] }, "_delivery": { "oneof": [ "delivery" ] }, "_dineIn": { "oneof": [ "dineIn" ] }, "_curbsidePickup": { "oneof": [ "curbsidePickup" ] }, "_reservable": { "oneof": [ "reservable" ] }, "_servesBreakfast": { "oneof": [ "servesBreakfast" ] }, "_servesLunch": { "oneof": [ "servesLunch" ] }, "_servesDinner": { "oneof": [ "servesDinner" ] }, "_servesBeer": { "oneof": [ "servesBeer" ] }, "_servesWine": { "oneof": [ "servesWine" ] }, "_servesBrunch": { "oneof": [ "servesBrunch" ] }, "_servesVegetarianFood": { "oneof": [ "servesVegetarianFood" ] }, "_outdoorSeating": { "oneof": [ "outdoorSeating" ] }, "_liveMusic": { "oneof": [ "liveMusic" ] }, "_menuForChildren": { "oneof": [ "menuForChildren" ] }, "_servesCocktails": { "oneof": [ "servesCocktails" ] }, "_servesDessert": { "oneof": [ "servesDessert" ] }, "_servesCoffee": { "oneof": [ "servesCoffee" ] }, "_goodForChildren": { "oneof": [ "goodForChildren" ] }, "_allowsDogs": { "oneof": [ "allowsDogs" ] }, "_restroom": { "oneof": [ "restroom" ] }, "_goodForGroups": { "oneof": [ "goodForGroups" ] }, "_goodForWatchingSports": { "oneof": [ "goodForWatchingSports" ] }, "_accessibilityOptions": { "oneof": [ "accessibilityOptions" ] }, "_pureServiceAreaBusiness": { "oneof": [ "pureServiceAreaBusiness" ] } }, "fields": { "name": { "type": "string", "id": 1 }, "id": { "type": "string", "id": 2 }, "displayName": { "type": "google.type.LocalizedText", "id": 31 }, "types": { "rule": "repeated", "type": "string", "id": 5 }, "primaryType": { "type": "string", "id": 50 }, "primaryTypeDisplayName": { "type": "google.type.LocalizedText", "id": 32 }, "nationalPhoneNumber": { "type": "string", "id": 7 }, "internationalPhoneNumber": { "type": "string", "id": 8 }, "formattedAddress": { "type": "string", "id": 9 }, "shortFormattedAddress": { "type": "string", "id": 51 }, "postalAddress": { "type": "google.type.PostalAddress", "id": 90 }, "addressComponents": { "rule": "repeated", "type": "AddressComponent", "id": 10 }, "plusCode": { "type": "PlusCode", "id": 11 }, "location": { "type": "google.type.LatLng", "id": 12 }, "viewport": { "type": "google.geo.type.Viewport", "id": 13 }, "rating": { "type": "double", "id": 14 }, "googleMapsUri": { "type": "string", "id": 15 }, "websiteUri": { "type": "string", "id": 16 }, "reviews": { "rule": "repeated", "type": "Review", "id": 53 }, "regularOpeningHours": { "type": "OpeningHours", "id": 21 }, "utcOffsetMinutes": { "type": "int32", "id": 22, "options": { "proto3_optional": true } }, "timeZone": { "type": "google.type.TimeZone", "id": 88 }, "photos": { "rule": "repeated", "type": "Photo", "id": 54 }, "adrFormatAddress": { "type": "string", "id": 24 }, "businessStatus": { "type": "BusinessStatus", "id": 25 }, "priceLevel": { "type": "PriceLevel", "id": 26 }, "attributions": { "rule": "repeated", "type": "Attribution", "id": 27 }, "userRatingCount": { "type": "int32", "id": 28, "options": { "proto3_optional": true } }, "iconMaskBaseUri": { "type": "string", "id": 29 }, "iconBackgroundColor": { "type": "string", "id": 30 }, "takeout": { "type": "bool", "id": 33, "options": { "proto3_optional": true } }, "delivery": { "type": "bool", "id": 34, "options": { "proto3_optional": true } }, "dineIn": { "type": "bool", "id": 35, "options": { "proto3_optional": true } }, "curbsidePickup": { "type": "bool", "id": 36, "options": { "proto3_optional": true } }, "reservable": { "type": "bool", "id": 38, "options": { "proto3_optional": true } }, "servesBreakfast": { "type": "bool", "id": 39, "options": { "proto3_optional": true } }, "servesLunch": { "type": "bool", "id": 40, "options": { "proto3_optional": true } }, "servesDinner": { "type": "bool", "id": 41, "options": { "proto3_optional": true } }, "servesBeer": { "type": "bool", "id": 42, "options": { "proto3_optional": true } }, "servesWine": { "type": "bool", "id": 43, "options": { "proto3_optional": true } }, "servesBrunch": { "type": "bool", "id": 44, "options": { "proto3_optional": true } }, "servesVegetarianFood": { "type": "bool", "id": 45, "options": { "proto3_optional": true } }, "currentOpeningHours": { "type": "OpeningHours", "id": 46 }, "currentSecondaryOpeningHours": { "rule": "repeated", "type": "OpeningHours", "id": 47 }, "regularSecondaryOpeningHours": { "rule": "repeated", "type": "OpeningHours", "id": 49 }, "editorialSummary": { "type": "google.type.LocalizedText", "id": 52 }, "outdoorSeating": { "type": "bool", "id": 55, "options": { "proto3_optional": true } }, "liveMusic": { "type": "bool", "id": 56, "options": { "proto3_optional": true } }, "menuForChildren": { "type": "bool", "id": 57, "options": { "proto3_optional": true } }, "servesCocktails": { "type": "bool", "id": 58, "options": { "proto3_optional": true } }, "servesDessert": { "type": "bool", "id": 59, "options": { "proto3_optional": true } }, "servesCoffee": { "type": "bool", "id": 60, "options": { "proto3_optional": true } }, "goodForChildren": { "type": "bool", "id": 62, "options": { "proto3_optional": true } }, "allowsDogs": { "type": "bool", "id": 63, "options": { "proto3_optional": true } }, "restroom": { "type": "bool", "id": 64, "options": { "proto3_optional": true } }, "goodForGroups": { "type": "bool", "id": 65, "options": { "proto3_optional": true } }, "goodForWatchingSports": { "type": "bool", "id": 66, "options": { "proto3_optional": true } }, "paymentOptions": { "type": "PaymentOptions", "id": 67 }, "parkingOptions": { "type": "ParkingOptions", "id": 70 }, "subDestinations": { "rule": "repeated", "type": "SubDestination", "id": 71 }, "accessibilityOptions": { "type": "AccessibilityOptions", "id": 72, "options": { "proto3_optional": true } }, "fuelOptions": { "type": "FuelOptions", "id": 78 }, "evChargeOptions": { "type": "EVChargeOptions", "id": 79 }, "generativeSummary": { "type": "GenerativeSummary", "id": 80 }, "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": { "AddressComponent": { "fields": { "longText": { "type": "string", "id": 1 }, "shortText": { "type": "string", "id": 2 }, "types": { "rule": "repeated", "type": "string", "id": 3 }, "languageCode": { "type": "string", "id": 4 } } }, "PlusCode": { "fields": { "globalCode": { "type": "string", "id": 1 }, "compoundCode": { "type": "string", "id": 2 } } }, "OpeningHours": { "oneofs": { "_openNow": { "oneof": [ "openNow" ] } }, "fields": { "openNow": { "type": "bool", "id": 1, "options": { "proto3_optional": true } }, "periods": { "rule": "repeated", "type": "Period", "id": 2 }, "weekdayDescriptions": { "rule": "repeated", "type": "string", "id": 3 }, "secondaryHoursType": { "type": "SecondaryHoursType", "id": 4 }, "specialDays": { "rule": "repeated", "type": "SpecialDay", "id": 5 }, "nextOpenTime": { "type": "google.protobuf.Timestamp", "id": 6 }, "nextCloseTime": { "type": "google.protobuf.Timestamp", "id": 7 } }, "nested": { "Period": { "fields": { "open": { "type": "Point", "id": 1 }, "close": { "type": "Point", "id": 2 } }, "nested": { "Point": { "oneofs": { "_day": { "oneof": [ "day" ] }, "_hour": { "oneof": [ "hour" ] }, "_minute": { "oneof": [ "minute" ] } }, "fields": { "day": { "type": "int32", "id": 1, "options": { "proto3_optional": true } }, "hour": { "type": "int32", "id": 2, "options": { "proto3_optional": true } }, "minute": { "type": "int32", "id": 3, "options": { "proto3_optional": true } }, "date": { "type": "google.type.Date", "id": 6 }, "truncated": { "type": "bool", "id": 5 } } } } }, "SecondaryHoursType": { "values": { "SECONDARY_HOURS_TYPE_UNSPECIFIED": 0, "DRIVE_THROUGH": 1, "HAPPY_HOUR": 2, "DELIVERY": 3, "TAKEOUT": 4, "KITCHEN": 5, "BREAKFAST": 6, "LUNCH": 7, "DINNER": 8, "BRUNCH": 9, "PICKUP": 10, "ACCESS": 11, "SENIOR_HOURS": 12, "ONLINE_SERVICE_HOURS": 13 } }, "SpecialDay": { "fields": { "date": { "type": "google.type.Date", "id": 1 } } } } }, "BusinessStatus": { "values": { "BUSINESS_STATUS_UNSPECIFIED": 0, "OPERATIONAL": 1, "CLOSED_TEMPORARILY": 2, "CLOSED_PERMANENTLY": 3 } }, "Attribution": { "fields": { "provider": { "type": "string", "id": 1 }, "providerUri": { "type": "string", "id": 2 } } }, "PaymentOptions": { "oneofs": { "_acceptsCreditCards": { "oneof": [ "acceptsCreditCards" ] }, "_acceptsDebitCards": { "oneof": [ "acceptsDebitCards" ] }, "_acceptsCashOnly": { "oneof": [ "acceptsCashOnly" ] }, "_acceptsNfc": { "oneof": [ "acceptsNfc" ] } }, "fields": { "acceptsCreditCards": { "type": "bool", "id": 1,