1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package regionlookup
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 )
35
36 const (
37
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43
44
45
46 type LookupRegionRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53 Identifiers []*RegionIdentifier `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
54
55
56
57
58
59 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
60
61
62
63
64
65 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
66 }
67
68 func (x *LookupRegionRequest) Reset() {
69 *x = LookupRegionRequest{}
70 if protoimpl.UnsafeEnabled {
71 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0]
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 ms.StoreMessageInfo(mi)
74 }
75 }
76
77 func (x *LookupRegionRequest) String() string {
78 return protoimpl.X.MessageStringOf(x)
79 }
80
81 func (*LookupRegionRequest) ProtoMessage() {}
82
83 func (x *LookupRegionRequest) ProtoReflect() protoreflect.Message {
84 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0]
85 if protoimpl.UnsafeEnabled && 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
96 func (*LookupRegionRequest) Descriptor() ([]byte, []int) {
97 return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{0}
98 }
99
100 func (x *LookupRegionRequest) GetIdentifiers() []*RegionIdentifier {
101 if x != nil {
102 return x.Identifiers
103 }
104 return nil
105 }
106
107 func (x *LookupRegionRequest) GetPageSize() int32 {
108 if x != nil {
109 return x.PageSize
110 }
111 return 0
112 }
113
114 func (x *LookupRegionRequest) GetPageToken() string {
115 if x != nil {
116 return x.PageToken
117 }
118 return ""
119 }
120
121
122
123
124 type LookupRegionResponse struct {
125 state protoimpl.MessageState
126 sizeCache protoimpl.SizeCache
127 unknownFields protoimpl.UnknownFields
128
129
130
131 Matches []*RegionMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
132
133
134 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
135 }
136
137 func (x *LookupRegionResponse) Reset() {
138 *x = LookupRegionResponse{}
139 if protoimpl.UnsafeEnabled {
140 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1]
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 ms.StoreMessageInfo(mi)
143 }
144 }
145
146 func (x *LookupRegionResponse) String() string {
147 return protoimpl.X.MessageStringOf(x)
148 }
149
150 func (*LookupRegionResponse) ProtoMessage() {}
151
152 func (x *LookupRegionResponse) ProtoReflect() protoreflect.Message {
153 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1]
154 if protoimpl.UnsafeEnabled && x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
162 }
163
164
165 func (*LookupRegionResponse) Descriptor() ([]byte, []int) {
166 return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{1}
167 }
168
169 func (x *LookupRegionResponse) GetMatches() []*RegionMatch {
170 if x != nil {
171 return x.Matches
172 }
173 return nil
174 }
175
176 func (x *LookupRegionResponse) GetNextPageToken() string {
177 if x != nil {
178 return x.NextPageToken
179 }
180 return ""
181 }
182
183
184
185
186 type SearchRegionRequest struct {
187 state protoimpl.MessageState
188 sizeCache protoimpl.SizeCache
189 unknownFields protoimpl.UnknownFields
190
191
192
193
194 SearchValues []*RegionSearchValue `protobuf:"bytes,1,rep,name=search_values,json=searchValues,proto3" json:"search_values,omitempty"`
195
196
197
198
199
200 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
201
202
203
204
205
206 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
207 }
208
209 func (x *SearchRegionRequest) Reset() {
210 *x = SearchRegionRequest{}
211 if protoimpl.UnsafeEnabled {
212 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2]
213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
214 ms.StoreMessageInfo(mi)
215 }
216 }
217
218 func (x *SearchRegionRequest) String() string {
219 return protoimpl.X.MessageStringOf(x)
220 }
221
222 func (*SearchRegionRequest) ProtoMessage() {}
223
224 func (x *SearchRegionRequest) ProtoReflect() protoreflect.Message {
225 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2]
226 if protoimpl.UnsafeEnabled && x != nil {
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 if ms.LoadMessageInfo() == nil {
229 ms.StoreMessageInfo(mi)
230 }
231 return ms
232 }
233 return mi.MessageOf(x)
234 }
235
236
237 func (*SearchRegionRequest) Descriptor() ([]byte, []int) {
238 return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{2}
239 }
240
241 func (x *SearchRegionRequest) GetSearchValues() []*RegionSearchValue {
242 if x != nil {
243 return x.SearchValues
244 }
245 return nil
246 }
247
248 func (x *SearchRegionRequest) GetPageSize() int32 {
249 if x != nil {
250 return x.PageSize
251 }
252 return 0
253 }
254
255 func (x *SearchRegionRequest) GetPageToken() string {
256 if x != nil {
257 return x.PageToken
258 }
259 return ""
260 }
261
262
263
264
265 type SearchRegionResponse struct {
266 state protoimpl.MessageState
267 sizeCache protoimpl.SizeCache
268 unknownFields protoimpl.UnknownFields
269
270
271
272 Matches []*RegionMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
273
274
275 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
276 }
277
278 func (x *SearchRegionResponse) Reset() {
279 *x = SearchRegionResponse{}
280 if protoimpl.UnsafeEnabled {
281 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3]
282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
283 ms.StoreMessageInfo(mi)
284 }
285 }
286
287 func (x *SearchRegionResponse) String() string {
288 return protoimpl.X.MessageStringOf(x)
289 }
290
291 func (*SearchRegionResponse) ProtoMessage() {}
292
293 func (x *SearchRegionResponse) ProtoReflect() protoreflect.Message {
294 mi := &file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3]
295 if protoimpl.UnsafeEnabled && x != nil {
296 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
297 if ms.LoadMessageInfo() == nil {
298 ms.StoreMessageInfo(mi)
299 }
300 return ms
301 }
302 return mi.MessageOf(x)
303 }
304
305
306 func (*SearchRegionResponse) Descriptor() ([]byte, []int) {
307 return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP(), []int{3}
308 }
309
310 func (x *SearchRegionResponse) GetMatches() []*RegionMatch {
311 if x != nil {
312 return x.Matches
313 }
314 return nil
315 }
316
317 func (x *SearchRegionResponse) GetNextPageToken() string {
318 if x != nil {
319 return x.NextPageToken
320 }
321 return ""
322 }
323
324 var File_google_maps_regionlookup_v1alpha_region_lookup_service_proto protoreflect.FileDescriptor
325
326 var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc = []byte{
327 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65,
328 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
329 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
330 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20,
331 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69,
332 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
333 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
334 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
335 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
336 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
337 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
338 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
339 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
340 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72,
341 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c,
342 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68,
343 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d,
344 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
345 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
346 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x70, 0x72,
347 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65,
348 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x54, 0x0a, 0x0b, 0x69,
349 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
350 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72,
351 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c,
352 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
353 0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72,
354 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
355 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,
356 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
357 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x87, 0x01,
358 0x0a, 0x14, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65,
359 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,
360 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
361 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b,
362 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
363 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12,
364 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
365 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
366 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72,
367 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
368 0x58, 0x0a, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
369 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
370 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75,
371 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
372 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x61,
373 0x72, 0x63, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67,
374 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61,
375 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
376 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65,
377 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
378 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47,
379 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
380 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65,
381 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
382 0x68, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x07,
383 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f,
384 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
385 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32,
386 0xf2, 0x02, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
387 0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f,
388 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
389 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61,
390 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f,
391 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
392 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f,
393 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b,
394 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
395 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
396 0x68, 0x61, 0x3a, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x3a,
397 0x01, 0x2a, 0x12, 0x9f, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67,
398 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
399 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76,
400 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67,
401 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f,
402 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
403 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x65,
404 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
405 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x61,
406 0x6c, 0x70, 0x68, 0x61, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f,
407 0x6e, 0x3a, 0x01, 0x2a, 0x1a, 0x1e, 0xca, 0x41, 0x1b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
408 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
409 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0xe2, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
410 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c,
411 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x18, 0x52,
412 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69,
413 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
414 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
415 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
416 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b,
417 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x6f,
418 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x06, 0x4d, 0x52, 0x4c,
419 0x56, 0x31, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70,
420 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x56,
421 0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
422 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
423 0x70, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
424 0x33,
425 }
426
427 var (
428 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescOnce sync.Once
429 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData = file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc
430 )
431
432 func file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescGZIP() []byte {
433 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescOnce.Do(func() {
434 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData)
435 })
436 return file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDescData
437 }
438
439 var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
440 var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes = []interface{}{
441 (*LookupRegionRequest)(nil),
442 (*LookupRegionResponse)(nil),
443 (*SearchRegionRequest)(nil),
444 (*SearchRegionResponse)(nil),
445 (*RegionIdentifier)(nil),
446 (*RegionMatch)(nil),
447 (*RegionSearchValue)(nil),
448 }
449 var file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs = []int32{
450 4,
451 5,
452 6,
453 5,
454 0,
455 2,
456 1,
457 3,
458 6,
459 4,
460 4,
461 4,
462 0,
463 }
464
465 func init() { file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_init() }
466 func file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_init() {
467 if File_google_maps_regionlookup_v1alpha_region_lookup_service_proto != nil {
468 return
469 }
470 file_google_maps_regionlookup_v1alpha_region_identifier_proto_init()
471 file_google_maps_regionlookup_v1alpha_region_match_proto_init()
472 file_google_maps_regionlookup_v1alpha_region_search_values_proto_init()
473 if !protoimpl.UnsafeEnabled {
474 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
475 switch v := v.(*LookupRegionRequest); i {
476 case 0:
477 return &v.state
478 case 1:
479 return &v.sizeCache
480 case 2:
481 return &v.unknownFields
482 default:
483 return nil
484 }
485 }
486 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
487 switch v := v.(*LookupRegionResponse); i {
488 case 0:
489 return &v.state
490 case 1:
491 return &v.sizeCache
492 case 2:
493 return &v.unknownFields
494 default:
495 return nil
496 }
497 }
498 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
499 switch v := v.(*SearchRegionRequest); i {
500 case 0:
501 return &v.state
502 case 1:
503 return &v.sizeCache
504 case 2:
505 return &v.unknownFields
506 default:
507 return nil
508 }
509 }
510 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
511 switch v := v.(*SearchRegionResponse); i {
512 case 0:
513 return &v.state
514 case 1:
515 return &v.sizeCache
516 case 2:
517 return &v.unknownFields
518 default:
519 return nil
520 }
521 }
522 }
523 type x struct{}
524 out := protoimpl.TypeBuilder{
525 File: protoimpl.DescBuilder{
526 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
527 RawDescriptor: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc,
528 NumEnums: 0,
529 NumMessages: 4,
530 NumExtensions: 0,
531 NumServices: 1,
532 },
533 GoTypes: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes,
534 DependencyIndexes: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs,
535 MessageInfos: file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_msgTypes,
536 }.Build()
537 File_google_maps_regionlookup_v1alpha_region_lookup_service_proto = out.File
538 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_rawDesc = nil
539 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_goTypes = nil
540 file_google_maps_regionlookup_v1alpha_region_lookup_service_proto_depIdxs = nil
541 }
542
543
544 var _ context.Context
545 var _ grpc.ClientConnInterface
546
547
548
549 const _ = grpc.SupportPackageIsVersion6
550
551
552
553
554 type RegionLookupClient interface {
555
556
557
558
559
560
561
562
563
564
565
566 LookupRegion(ctx context.Context, in *LookupRegionRequest, opts ...grpc.CallOption) (*LookupRegionResponse, error)
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581 SearchRegion(ctx context.Context, in *SearchRegionRequest, opts ...grpc.CallOption) (*SearchRegionResponse, error)
582 }
583
584 type regionLookupClient struct {
585 cc grpc.ClientConnInterface
586 }
587
588 func NewRegionLookupClient(cc grpc.ClientConnInterface) RegionLookupClient {
589 return ®ionLookupClient{cc}
590 }
591
592 func (c *regionLookupClient) LookupRegion(ctx context.Context, in *LookupRegionRequest, opts ...grpc.CallOption) (*LookupRegionResponse, error) {
593 out := new(LookupRegionResponse)
594 err := c.cc.Invoke(ctx, "/google.maps.regionlookup.v1alpha.RegionLookup/LookupRegion", in, out, opts...)
595 if err != nil {
596 return nil, err
597 }
598 return out, nil
599 }
600
601 func (c *regionLookupClient) SearchRegion(ctx context.Context, in *SearchRegionRequest, opts ...grpc.CallOption) (*SearchRegionResponse, error) {
602 out := new(SearchRegionResponse)
603 err := c.cc.Invoke(ctx, "/google.maps.regionlookup.v1alpha.RegionLookup/SearchRegion", in, out, opts...)
604 if err != nil {
605 return nil, err
606 }
607 return out, nil
608 }
609
610
611 type RegionLookupServer interface {
612
613
614
615
616
617
618
619
620
621
622
623 LookupRegion(context.Context, *LookupRegionRequest) (*LookupRegionResponse, error)
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638 SearchRegion(context.Context, *SearchRegionRequest) (*SearchRegionResponse, error)
639 }
640
641
642 type UnimplementedRegionLookupServer struct {
643 }
644
645 func (*UnimplementedRegionLookupServer) LookupRegion(context.Context, *LookupRegionRequest) (*LookupRegionResponse, error) {
646 return nil, status.Errorf(codes.Unimplemented, "method LookupRegion not implemented")
647 }
648 func (*UnimplementedRegionLookupServer) SearchRegion(context.Context, *SearchRegionRequest) (*SearchRegionResponse, error) {
649 return nil, status.Errorf(codes.Unimplemented, "method SearchRegion not implemented")
650 }
651
652 func RegisterRegionLookupServer(s *grpc.Server, srv RegionLookupServer) {
653 s.RegisterService(&_RegionLookup_serviceDesc, srv)
654 }
655
656 func _RegionLookup_LookupRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
657 in := new(LookupRegionRequest)
658 if err := dec(in); err != nil {
659 return nil, err
660 }
661 if interceptor == nil {
662 return srv.(RegionLookupServer).LookupRegion(ctx, in)
663 }
664 info := &grpc.UnaryServerInfo{
665 Server: srv,
666 FullMethod: "/google.maps.regionlookup.v1alpha.RegionLookup/LookupRegion",
667 }
668 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
669 return srv.(RegionLookupServer).LookupRegion(ctx, req.(*LookupRegionRequest))
670 }
671 return interceptor(ctx, in, info, handler)
672 }
673
674 func _RegionLookup_SearchRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
675 in := new(SearchRegionRequest)
676 if err := dec(in); err != nil {
677 return nil, err
678 }
679 if interceptor == nil {
680 return srv.(RegionLookupServer).SearchRegion(ctx, in)
681 }
682 info := &grpc.UnaryServerInfo{
683 Server: srv,
684 FullMethod: "/google.maps.regionlookup.v1alpha.RegionLookup/SearchRegion",
685 }
686 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
687 return srv.(RegionLookupServer).SearchRegion(ctx, req.(*SearchRegionRequest))
688 }
689 return interceptor(ctx, in, info, handler)
690 }
691
692 var _RegionLookup_serviceDesc = grpc.ServiceDesc{
693 ServiceName: "google.maps.regionlookup.v1alpha.RegionLookup",
694 HandlerType: (*RegionLookupServer)(nil),
695 Methods: []grpc.MethodDesc{
696 {
697 MethodName: "LookupRegion",
698 Handler: _RegionLookup_LookupRegion_Handler,
699 },
700 {
701 MethodName: "SearchRegion",
702 Handler: _RegionLookup_SearchRegion_Handler,
703 },
704 },
705 Streams: []grpc.StreamDesc{},
706 Metadata: "google/maps/regionlookup/v1alpha/region_lookup_service.proto",
707 }
708
View as plain text