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 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type RegionIdentifier_PlaceType int32
41
42 const (
43
44 RegionIdentifier_PLACE_TYPE_UNSPECIFIED RegionIdentifier_PlaceType = 0
45
46 RegionIdentifier_POSTAL_CODE RegionIdentifier_PlaceType = 1
47
48 RegionIdentifier_ADMINISTRATIVE_AREA_LEVEL_1 RegionIdentifier_PlaceType = 2
49
50 RegionIdentifier_ADMINISTRATIVE_AREA_LEVEL_2 RegionIdentifier_PlaceType = 3
51
52 RegionIdentifier_LOCALITY RegionIdentifier_PlaceType = 4
53
54 RegionIdentifier_NEIGHBORHOOD RegionIdentifier_PlaceType = 5
55
56 RegionIdentifier_COUNTRY RegionIdentifier_PlaceType = 6
57
58 RegionIdentifier_SUBLOCALITY RegionIdentifier_PlaceType = 7
59
60 RegionIdentifier_ADMINISTRATIVE_AREA_LEVEL_3 RegionIdentifier_PlaceType = 8
61
62 RegionIdentifier_ADMINISTRATIVE_AREA_LEVEL_4 RegionIdentifier_PlaceType = 9
63
64 RegionIdentifier_SCHOOL_DISTRICT RegionIdentifier_PlaceType = 10
65 )
66
67
68 var (
69 RegionIdentifier_PlaceType_name = map[int32]string{
70 0: "PLACE_TYPE_UNSPECIFIED",
71 1: "POSTAL_CODE",
72 2: "ADMINISTRATIVE_AREA_LEVEL_1",
73 3: "ADMINISTRATIVE_AREA_LEVEL_2",
74 4: "LOCALITY",
75 5: "NEIGHBORHOOD",
76 6: "COUNTRY",
77 7: "SUBLOCALITY",
78 8: "ADMINISTRATIVE_AREA_LEVEL_3",
79 9: "ADMINISTRATIVE_AREA_LEVEL_4",
80 10: "SCHOOL_DISTRICT",
81 }
82 RegionIdentifier_PlaceType_value = map[string]int32{
83 "PLACE_TYPE_UNSPECIFIED": 0,
84 "POSTAL_CODE": 1,
85 "ADMINISTRATIVE_AREA_LEVEL_1": 2,
86 "ADMINISTRATIVE_AREA_LEVEL_2": 3,
87 "LOCALITY": 4,
88 "NEIGHBORHOOD": 5,
89 "COUNTRY": 6,
90 "SUBLOCALITY": 7,
91 "ADMINISTRATIVE_AREA_LEVEL_3": 8,
92 "ADMINISTRATIVE_AREA_LEVEL_4": 9,
93 "SCHOOL_DISTRICT": 10,
94 }
95 )
96
97 func (x RegionIdentifier_PlaceType) Enum() *RegionIdentifier_PlaceType {
98 p := new(RegionIdentifier_PlaceType)
99 *p = x
100 return p
101 }
102
103 func (x RegionIdentifier_PlaceType) String() string {
104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
105 }
106
107 func (RegionIdentifier_PlaceType) Descriptor() protoreflect.EnumDescriptor {
108 return file_google_maps_regionlookup_v1alpha_region_identifier_proto_enumTypes[0].Descriptor()
109 }
110
111 func (RegionIdentifier_PlaceType) Type() protoreflect.EnumType {
112 return &file_google_maps_regionlookup_v1alpha_region_identifier_proto_enumTypes[0]
113 }
114
115 func (x RegionIdentifier_PlaceType) Number() protoreflect.EnumNumber {
116 return protoreflect.EnumNumber(x)
117 }
118
119
120 func (RegionIdentifier_PlaceType) EnumDescriptor() ([]byte, []int) {
121 return file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescGZIP(), []int{0, 0}
122 }
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164 type RegionIdentifier struct {
165 state protoimpl.MessageState
166 sizeCache protoimpl.SizeCache
167 unknownFields protoimpl.UnknownFields
168
169
170
171
172
173
174 Location isRegionIdentifier_Location `protobuf_oneof:"location"`
175
176 PlaceType RegionIdentifier_PlaceType `protobuf:"varint,6,opt,name=place_type,json=placeType,proto3,enum=google.maps.regionlookup.v1alpha.RegionIdentifier_PlaceType" json:"place_type,omitempty"`
177
178
179
180 LanguageCode string `protobuf:"bytes,7,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
181
182
183 RegionCode string `protobuf:"bytes,8,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
184 }
185
186 func (x *RegionIdentifier) Reset() {
187 *x = RegionIdentifier{}
188 if protoimpl.UnsafeEnabled {
189 mi := &file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes[0]
190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
191 ms.StoreMessageInfo(mi)
192 }
193 }
194
195 func (x *RegionIdentifier) String() string {
196 return protoimpl.X.MessageStringOf(x)
197 }
198
199 func (*RegionIdentifier) ProtoMessage() {}
200
201 func (x *RegionIdentifier) ProtoReflect() protoreflect.Message {
202 mi := &file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes[0]
203 if protoimpl.UnsafeEnabled && x != nil {
204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
205 if ms.LoadMessageInfo() == nil {
206 ms.StoreMessageInfo(mi)
207 }
208 return ms
209 }
210 return mi.MessageOf(x)
211 }
212
213
214 func (*RegionIdentifier) Descriptor() ([]byte, []int) {
215 return file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescGZIP(), []int{0}
216 }
217
218 func (m *RegionIdentifier) GetLocation() isRegionIdentifier_Location {
219 if m != nil {
220 return m.Location
221 }
222 return nil
223 }
224
225 func (x *RegionIdentifier) GetPlace() string {
226 if x, ok := x.GetLocation().(*RegionIdentifier_Place); ok {
227 return x.Place
228 }
229 return ""
230 }
231
232 func (x *RegionIdentifier) GetUnitCode() string {
233 if x, ok := x.GetLocation().(*RegionIdentifier_UnitCode); ok {
234 return x.UnitCode
235 }
236 return ""
237 }
238
239 func (x *RegionIdentifier) GetPlaceType() RegionIdentifier_PlaceType {
240 if x != nil {
241 return x.PlaceType
242 }
243 return RegionIdentifier_PLACE_TYPE_UNSPECIFIED
244 }
245
246 func (x *RegionIdentifier) GetLanguageCode() string {
247 if x != nil {
248 return x.LanguageCode
249 }
250 return ""
251 }
252
253 func (x *RegionIdentifier) GetRegionCode() string {
254 if x != nil {
255 return x.RegionCode
256 }
257 return ""
258 }
259
260 type isRegionIdentifier_Location interface {
261 isRegionIdentifier_Location()
262 }
263
264 type RegionIdentifier_Place struct {
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280 Place string `protobuf:"bytes,4,opt,name=place,proto3,oneof"`
281 }
282
283 type RegionIdentifier_UnitCode struct {
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305 UnitCode string `protobuf:"bytes,5,opt,name=unit_code,json=unitCode,proto3,oneof"`
306 }
307
308 func (*RegionIdentifier_Place) isRegionIdentifier_Location() {}
309
310 func (*RegionIdentifier_UnitCode) isRegionIdentifier_Location() {}
311
312 var File_google_maps_regionlookup_v1alpha_region_identifier_proto protoreflect.FileDescriptor
313
314 var file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDesc = []byte{
315 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65,
316 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
317 0x68, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
318 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67,
319 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f,
320 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1f, 0x67, 0x6f,
321 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
322 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x04,
323 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69,
324 0x65, 0x72, 0x12, 0x16, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
325 0x09, 0x48, 0x00, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x6e,
326 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
327 0x08, 0x75, 0x6e, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x60, 0x0a, 0x0a, 0x70, 0x6c, 0x61,
328 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e,
329 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69,
330 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
331 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65,
332 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02,
333 0x52, 0x09, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c,
334 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01,
335 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65,
336 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
337 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64,
338 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
339 0x1a, 0x0a, 0x16, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
340 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x50,
341 0x4f, 0x53, 0x54, 0x41, 0x4c, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b,
342 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x41,
343 0x52, 0x45, 0x41, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x31, 0x10, 0x02, 0x12, 0x1f, 0x0a,
344 0x1b, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f,
345 0x41, 0x52, 0x45, 0x41, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x32, 0x10, 0x03, 0x12, 0x0c,
346 0x0a, 0x08, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c,
347 0x4e, 0x45, 0x49, 0x47, 0x48, 0x42, 0x4f, 0x52, 0x48, 0x4f, 0x4f, 0x44, 0x10, 0x05, 0x12, 0x0b,
348 0x0a, 0x07, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x52, 0x59, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x53,
349 0x55, 0x42, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b,
350 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x41,
351 0x52, 0x45, 0x41, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x33, 0x10, 0x08, 0x12, 0x1f, 0x0a,
352 0x1b, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x49, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x56, 0x45, 0x5f,
353 0x41, 0x52, 0x45, 0x41, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x34, 0x10, 0x09, 0x12, 0x13,
354 0x0a, 0x0f, 0x53, 0x43, 0x48, 0x4f, 0x4f, 0x4c, 0x5f, 0x44, 0x49, 0x53, 0x54, 0x52, 0x49, 0x43,
355 0x54, 0x10, 0x0a, 0x42, 0x0a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42,
356 0xdf, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
357 0x61, 0x70, 0x73, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
358 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x15, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
359 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
360 0x01, 0x5a, 0x4c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
361 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
362 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x72, 0x65,
363 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
364 0x68, 0x61, 0x3b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0xf8,
365 0x01, 0x01, 0xa2, 0x02, 0x06, 0x4d, 0x52, 0x4c, 0x56, 0x31, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f,
366 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
367 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02,
368 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x52, 0x65, 0x67,
369 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68,
370 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
371 }
372
373 var (
374 file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescOnce sync.Once
375 file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescData = file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDesc
376 )
377
378 func file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescGZIP() []byte {
379 file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescOnce.Do(func() {
380 file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescData)
381 })
382 return file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDescData
383 }
384
385 var file_google_maps_regionlookup_v1alpha_region_identifier_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
386 var file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
387 var file_google_maps_regionlookup_v1alpha_region_identifier_proto_goTypes = []interface{}{
388 (RegionIdentifier_PlaceType)(0),
389 (*RegionIdentifier)(nil),
390 }
391 var file_google_maps_regionlookup_v1alpha_region_identifier_proto_depIdxs = []int32{
392 0,
393 1,
394 1,
395 1,
396 1,
397 0,
398 }
399
400 func init() { file_google_maps_regionlookup_v1alpha_region_identifier_proto_init() }
401 func file_google_maps_regionlookup_v1alpha_region_identifier_proto_init() {
402 if File_google_maps_regionlookup_v1alpha_region_identifier_proto != nil {
403 return
404 }
405 if !protoimpl.UnsafeEnabled {
406 file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
407 switch v := v.(*RegionIdentifier); i {
408 case 0:
409 return &v.state
410 case 1:
411 return &v.sizeCache
412 case 2:
413 return &v.unknownFields
414 default:
415 return nil
416 }
417 }
418 }
419 file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes[0].OneofWrappers = []interface{}{
420 (*RegionIdentifier_Place)(nil),
421 (*RegionIdentifier_UnitCode)(nil),
422 }
423 type x struct{}
424 out := protoimpl.TypeBuilder{
425 File: protoimpl.DescBuilder{
426 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
427 RawDescriptor: file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDesc,
428 NumEnums: 1,
429 NumMessages: 1,
430 NumExtensions: 0,
431 NumServices: 0,
432 },
433 GoTypes: file_google_maps_regionlookup_v1alpha_region_identifier_proto_goTypes,
434 DependencyIndexes: file_google_maps_regionlookup_v1alpha_region_identifier_proto_depIdxs,
435 EnumInfos: file_google_maps_regionlookup_v1alpha_region_identifier_proto_enumTypes,
436 MessageInfos: file_google_maps_regionlookup_v1alpha_region_identifier_proto_msgTypes,
437 }.Build()
438 File_google_maps_regionlookup_v1alpha_region_identifier_proto = out.File
439 file_google_maps_regionlookup_v1alpha_region_identifier_proto_rawDesc = nil
440 file_google_maps_regionlookup_v1alpha_region_identifier_proto_goTypes = nil
441 file_google_maps_regionlookup_v1alpha_region_identifier_proto_depIdxs = nil
442 }
443
View as plain text