|
| 1 | +// Copyright 2024 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.maps.places.v1; |
| 18 | + |
| 19 | +import "google/maps/places/v1/photo.proto"; |
| 20 | +import "google/maps/places/v1/review.proto"; |
| 21 | + |
| 22 | +option cc_enable_arenas = true; |
| 23 | +option csharp_namespace = "Google.Maps.Places.V1"; |
| 24 | +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; |
| 25 | +option java_multiple_files = true; |
| 26 | +option java_outer_classname = "ContextualContentProto"; |
| 27 | +option java_package = "com.google.maps.places.v1"; |
| 28 | +option objc_class_prefix = "GMPSV1"; |
| 29 | +option php_namespace = "Google\\Maps\\Places\\V1"; |
| 30 | + |
| 31 | +// Experimental: See |
| 32 | +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 33 | +// for more details. |
| 34 | +// |
| 35 | +// Content that is contextual to the place query. |
| 36 | +message ContextualContent { |
| 37 | + // Experimental: See |
| 38 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 39 | + // for more details. |
| 40 | + // |
| 41 | + // Justifications for the place. Justifications answers the question of why a |
| 42 | + // place could interest an end user. |
| 43 | + message Justification { |
| 44 | + // Experimental: See |
| 45 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 46 | + // for more details. |
| 47 | + // |
| 48 | + // User review justifications. This highlights a section of the user review |
| 49 | + // that would interest an end user. For instance, if the search query is |
| 50 | + // "firewood pizza", the review justification highlights the text relevant |
| 51 | + // to the search query. |
| 52 | + message ReviewJustification { |
| 53 | + // The text highlighted by the justification. This is a subset of the |
| 54 | + // review itself. The exact word to highlight is marked by the |
| 55 | + // HighlightedTextRange. There could be several words in the text being |
| 56 | + // highlighted. |
| 57 | + message HighlightedText { |
| 58 | + // The range of highlighted text. |
| 59 | + message HighlightedTextRange { |
| 60 | + int32 start_index = 1; |
| 61 | + |
| 62 | + int32 end_index = 2; |
| 63 | + } |
| 64 | + |
| 65 | + string text = 1; |
| 66 | + |
| 67 | + // The list of the ranges of the highlighted text. |
| 68 | + repeated HighlightedTextRange highlighted_text_ranges = 2; |
| 69 | + } |
| 70 | + |
| 71 | + HighlightedText highlighted_text = 1; |
| 72 | + |
| 73 | + // The review that the highlighted text is generated from. |
| 74 | + Review review = 2; |
| 75 | + } |
| 76 | + |
| 77 | + // Experimental: See |
| 78 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 79 | + // for more details. |
| 80 | + // BusinessAvailabilityAttributes justifications. This shows some attributes |
| 81 | + // a business has that could interest an end user. |
| 82 | + message BusinessAvailabilityAttributesJustification { |
| 83 | + // If a place provides takeout. |
| 84 | + bool takeout = 1; |
| 85 | + |
| 86 | + // If a place provides delivery. |
| 87 | + bool delivery = 2; |
| 88 | + |
| 89 | + // If a place provides dine-in. |
| 90 | + bool dine_in = 3; |
| 91 | + } |
| 92 | + |
| 93 | + oneof justification { |
| 94 | + // Experimental: See |
| 95 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 96 | + // for more details. |
| 97 | + ReviewJustification review_justification = 1; |
| 98 | + |
| 99 | + // Experimental: See |
| 100 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 101 | + // for more details. |
| 102 | + BusinessAvailabilityAttributesJustification |
| 103 | + business_availability_attributes_justification = 2; |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + // List of reviews about this place, contexual to the place query. |
| 108 | + repeated Review reviews = 1; |
| 109 | + |
| 110 | + // Information (including references) about photos of this place, contexual to |
| 111 | + // the place query. |
| 112 | + repeated Photo photos = 2; |
| 113 | + |
| 114 | + // Experimental: See |
| 115 | + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative |
| 116 | + // for more details. |
| 117 | + // |
| 118 | + // Justifications for the place. |
| 119 | + repeated Justification justifications = 3; |
| 120 | +} |
0 commit comments