• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.maps.places.v1;
18
19import "google/api/resource.proto";
20import "google/maps/places/v1/attribution.proto";
21import "google/protobuf/timestamp.proto";
22import "google/type/localized_text.proto";
23
24option cc_enable_arenas = true;
25option csharp_namespace = "Google.Maps.Places.V1";
26option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
27option java_multiple_files = true;
28option java_outer_classname = "ReviewProto";
29option java_package = "com.google.maps.places.v1";
30option objc_class_prefix = "GMPSV1";
31option php_namespace = "Google\\Maps\\Places\\V1";
32
33// Information about a review of a place.
34message Review {
35  option (google.api.resource) = {
36    type: "places.googleapis.com/Review"
37    pattern: "places/{place}/reviews/{review}"
38    plural: "reviews"
39    singular: "review"
40  };
41
42  // A reference representing this place review which may be used to look up
43  // this place review again (also called the API "resource" name:
44  // `places/{place_id}/reviews/{review}`).
45  string name = 1;
46
47  // A string of formatted recent time, expressing the review time relative
48  // to the current time in a form appropriate for the language and country.
49  string relative_publish_time_description = 2;
50
51  // The localized text of the review.
52  google.type.LocalizedText text = 9;
53
54  // The review text in its original language.
55  google.type.LocalizedText original_text = 12;
56
57  // A number between 1.0 and 5.0, also called the number of stars.
58  double rating = 7;
59
60  // This review's author.
61  AuthorAttribution author_attribution = 13;
62
63  // Timestamp for the review.
64  google.protobuf.Timestamp publish_time = 14;
65}
66