Debian Codegraph @

maps/places/apiv1/placespb/review.pb.go

raw
1 // Copyright 2025 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 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/maps/places/v1/review.proto
20
21 package placespb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 _ "google.golang.org/genproto/googleapis/type/date"
26 localized_text "google.golang.org/genproto/googleapis/type/localized_text"
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
30 reflect "reflect"
31 sync "sync"
32 )
33
34 const (
35 // Verify that this generated code is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37 // Verify that runtime/protoimpl is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39 )
40
41 // Information about a review of a place.
42 type Review struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // A reference representing this place review which may be used to look up
48 // this place review again (also called the API "resource" name:
49 // `places/{place_id}/reviews/{review}`).
50 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
51 // A string of formatted recent time, expressing the review time relative
52 // to the current time in a form appropriate for the language and country.
53 RelativePublishTimeDescription string `protobuf:"bytes,2,opt,name=relative_publish_time_description,json=relativePublishTimeDescription,proto3" json:"relative_publish_time_description,omitempty"`
54 // The localized text of the review.
55 Text *localized_text.LocalizedText `protobuf:"bytes,9,opt,name=text,proto3" json:"text,omitempty"`
56 // The review text in its original language.
57 OriginalText *localized_text.LocalizedText `protobuf:"bytes,12,opt,name=original_text,json=originalText,proto3" json:"original_text,omitempty"`
58 // A number between 1.0 and 5.0, also called the number of stars.
59 Rating float64 `protobuf:"fixed64,7,opt,name=rating,proto3" json:"rating,omitempty"`
60 // This review's author.
61 AuthorAttribution *AuthorAttribution `protobuf:"bytes,13,opt,name=author_attribution,json=authorAttribution,proto3" json:"author_attribution,omitempty"`
62 // Timestamp for the review.
63 PublishTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"`
64 // A link where users can flag a problem with the review.
65 FlagContentUri string `protobuf:"bytes,15,opt,name=flag_content_uri,json=flagContentUri,proto3" json:"flag_content_uri,omitempty"`
66 // A link to show the review on Google Maps.
67 GoogleMapsUri string `protobuf:"bytes,16,opt,name=google_maps_uri,json=googleMapsUri,proto3" json:"google_maps_uri,omitempty"`
68 }
69
70 func (x *Review) Reset() {
71 *x = Review{}
72 mi := &file_google_maps_places_v1_review_proto_msgTypes[0]
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 ms.StoreMessageInfo(mi)
75 }
76
77 func (x *Review) String() string {
78 return protoimpl.X.MessageStringOf(x)
79 }
80
81 func (*Review) ProtoMessage() {}
82
83 func (x *Review) ProtoReflect() protoreflect.Message {
84 mi := &file_google_maps_places_v1_review_proto_msgTypes[0]
85 if x != nil {
86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87 if ms.LoadMessageInfo() == nil {
88 ms.StoreMessageInfo(mi)
89 }
90 return ms
91 }
92 return mi.MessageOf(x)
93 }
94
95 // Deprecated: Use Review.ProtoReflect.Descriptor instead.
96 func (*Review) Descriptor() ([]byte, []int) {
97 return file_google_maps_places_v1_review_proto_rawDescGZIP(), []int{0}
98 }
99
100 func (x *Review) GetName() string {
101 if x != nil {
102 return x.Name
103 }
104 return ""
105 }
106
107 func (x *Review) GetRelativePublishTimeDescription() string {
108 if x != nil {
109 return x.RelativePublishTimeDescription
110 }
111 return ""
112 }
113
114 func (x *Review) GetText() *localized_text.LocalizedText {
115 if x != nil {
116 return x.Text
117 }
118 return nil
119 }
120
121 func (x *Review) GetOriginalText() *localized_text.LocalizedText {
122 if x != nil {
123 return x.OriginalText
124 }
125 return nil
126 }
127
128 func (x *Review) GetRating() float64 {
129 if x != nil {
130 return x.Rating
131 }
132 return 0
133 }
134
135 func (x *Review) GetAuthorAttribution() *AuthorAttribution {
136 if x != nil {
137 return x.AuthorAttribution
138 }
139 return nil
140 }
141
142 func (x *Review) GetPublishTime() *timestamppb.Timestamp {
143 if x != nil {
144 return x.PublishTime
145 }
146 return nil
147 }
148
149 func (x *Review) GetFlagContentUri() string {
150 if x != nil {
151 return x.FlagContentUri
152 }
153 return ""
154 }
155
156 func (x *Review) GetGoogleMapsUri() string {
157 if x != nil {
158 return x.GoogleMapsUri
159 }
160 return ""
161 }
162
163 var File_google_maps_places_v1_review_proto protoreflect.FileDescriptor
164
165 var file_google_maps_places_v1_review_proto_rawDesc = []byte{
166 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
167 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70,
168 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
169 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
170 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
171 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d,
172 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74,
173 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
174 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
175 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
176 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x61,
177 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f,
179 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x04, 0x0a, 0x06, 0x52,
180 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
181 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x21, 0x72, 0x65, 0x6c,
182 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x69,
183 0x6d, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
184 0x20, 0x01, 0x28, 0x09, 0x52, 0x1e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75,
185 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
186 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x09, 0x20, 0x01,
187 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65,
188 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x52, 0x04,
189 0x74, 0x65, 0x78, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
190 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
191 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69,
192 0x7a, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
193 0x6c, 0x54, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x18,
194 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x57, 0x0a,
195 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
196 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
197 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76,
198 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
199 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69,
200 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73,
201 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
202 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
203 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73,
204 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f,
205 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52,
206 0x0e, 0x66, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x69, 0x12,
207 0x26, 0x0a, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x75,
208 0x72, 0x69, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
209 0x4d, 0x61, 0x70, 0x73, 0x55, 0x72, 0x69, 0x3a, 0x53, 0xea, 0x41, 0x50, 0x0a, 0x1c, 0x70, 0x6c,
210 0x61, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
211 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1f, 0x70, 0x6c, 0x61, 0x63,
212 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65,
213 0x77, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x7d, 0x2a, 0x07, 0x72, 0x65, 0x76,
214 0x69, 0x65, 0x77, 0x73, 0x32, 0x06, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x42, 0x9c, 0x01, 0x0a,
215 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
216 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x52, 0x65, 0x76, 0x69,
217 0x65, 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64,
218 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d,
219 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
220 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73,
221 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f,
222 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73,
223 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70,
224 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
225 0x74, 0x6f, 0x33,
226 }
227
228 var (
229 file_google_maps_places_v1_review_proto_rawDescOnce sync.Once
230 file_google_maps_places_v1_review_proto_rawDescData = file_google_maps_places_v1_review_proto_rawDesc
231 )
232
233 func file_google_maps_places_v1_review_proto_rawDescGZIP() []byte {
234 file_google_maps_places_v1_review_proto_rawDescOnce.Do(func() {
235 file_google_maps_places_v1_review_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_review_proto_rawDescData)
236 })
237 return file_google_maps_places_v1_review_proto_rawDescData
238 }
239
240 var file_google_maps_places_v1_review_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
241 var file_google_maps_places_v1_review_proto_goTypes = []any{
242 (*Review)(nil), // 0: google.maps.places.v1.Review
243 (*localized_text.LocalizedText)(nil), // 1: google.type.LocalizedText
244 (*AuthorAttribution)(nil), // 2: google.maps.places.v1.AuthorAttribution
245 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
246 }
247 var file_google_maps_places_v1_review_proto_depIdxs = []int32{
248 1, // 0: google.maps.places.v1.Review.text:type_name -> google.type.LocalizedText
249 1, // 1: google.maps.places.v1.Review.original_text:type_name -> google.type.LocalizedText
250 2, // 2: google.maps.places.v1.Review.author_attribution:type_name -> google.maps.places.v1.AuthorAttribution
251 3, // 3: google.maps.places.v1.Review.publish_time:type_name -> google.protobuf.Timestamp
252 4, // [4:4] is the sub-list for method output_type
253 4, // [4:4] is the sub-list for method input_type
254 4, // [4:4] is the sub-list for extension type_name
255 4, // [4:4] is the sub-list for extension extendee
256 0, // [0:4] is the sub-list for field type_name
257 }
258
259 func init() { file_google_maps_places_v1_review_proto_init() }
260 func file_google_maps_places_v1_review_proto_init() {
261 if File_google_maps_places_v1_review_proto != nil {
262 return
263 }
264 file_google_maps_places_v1_attribution_proto_init()
265 type x struct{}
266 out := protoimpl.TypeBuilder{
267 File: protoimpl.DescBuilder{
268 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
269 RawDescriptor: file_google_maps_places_v1_review_proto_rawDesc,
270 NumEnums: 0,
271 NumMessages: 1,
272 NumExtensions: 0,
273 NumServices: 0,
274 },
275 GoTypes: file_google_maps_places_v1_review_proto_goTypes,
276 DependencyIndexes: file_google_maps_places_v1_review_proto_depIdxs,
277 MessageInfos: file_google_maps_places_v1_review_proto_msgTypes,
278 }.Build()
279 File_google_maps_places_v1_review_proto = out.File
280 file_google_maps_places_v1_review_proto_rawDesc = nil
281 file_google_maps_places_v1_review_proto_goTypes = nil
282 file_google_maps_places_v1_review_proto_depIdxs = nil
283 }