forked from nyaruka/phonenumbers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phonemetadata.pb.go
761 lines (697 loc) · 35.4 KB
/
phonemetadata.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: phonemetadata.proto
package phonenumbers
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type NumberFormat struct {
// pattern is a regex that is used to match the national (significant)
// number. For example, the pattern "(20)(\d{4})(\d{4})" will match number
// "2070313000", which is the national (significant) number for Google London.
// Note the presence of the parentheses, which are capturing groups what
// specifies the grouping of numbers.
Pattern *string `protobuf:"bytes,1,req,name=pattern" json:"pattern,omitempty"`
// format specifies how the national (significant) number matched by
// pattern should be formatted.
// Using the same example as above, format could contain "$1 $2 $3",
// meaning that the number should be formatted as "20 7031 3000".
// Each $x are replaced by the numbers captured by group x in the
// regex specified by pattern.
Format *string `protobuf:"bytes,2,req,name=format" json:"format,omitempty"`
// This field is a regex that is used to match a certain number of digits
// at the beginning of the national (significant) number. When the match is
// successful, the accompanying pattern and format should be used to format
// this number. For example, if leading_digits="[1-3]|44", then all the
// national numbers starting with 1, 2, 3 or 44 should be formatted using the
// accompanying pattern and format.
//
// The first leadingDigitsPattern matches up to the first three digits of the
// national (significant) number; the next one matches the first four digits,
// then the first five and so on, until the leadingDigitsPattern can uniquely
// identify one pattern and format to be used to format the number.
//
// In the case when only one formatting pattern exists, no
// leading_digits_pattern is needed.
LeadingDigitsPattern []string `protobuf:"bytes,3,rep,name=leading_digits_pattern,json=leadingDigitsPattern" json:"leading_digits_pattern,omitempty"`
// This field specifies how the national prefix ($NP) together with the first
// group ($FG) in the national significant number should be formatted in
// the NATIONAL format when a national prefix exists for a certain country.
// For example, when this field contains "($NP$FG)", a number from Beijing,
// China (whose $NP = 0), which would by default be formatted without
// national prefix as 10 1234 5678 in NATIONAL format, will instead be
// formatted as (010) 1234 5678; to format it as (0)10 1234 5678, the field
// would contain "($NP)$FG". Note $FG should always be present in this field,
// but $NP can be omitted. For example, having "$FG" could indicate the
// number should be formatted in NATIONAL format without the national prefix.
// This is commonly used to override the rule specified for the territory in
// the XML file.
//
// When this field is missing, a number will be formatted without national
// prefix in NATIONAL format. This field does not affect how a number
// is formatted in other formats, such as INTERNATIONAL.
NationalPrefixFormattingRule *string `protobuf:"bytes,4,opt,name=national_prefix_formatting_rule,json=nationalPrefixFormattingRule" json:"national_prefix_formatting_rule,omitempty"`
// This field specifies whether the $NP can be omitted when formatting a
// number in national format, even though it usually wouldn't be. For example,
// a UK number would be formatted by our library as 020 XXXX XXXX. If we have
// commonly seen this number written by people without the leading 0, for
// example as (20) XXXX XXXX, this field would be set to true. This will be
// inherited from the value set for the territory in the XML file, unless a
// national_prefix_optional_when_formatting is defined specifically for this
// NumberFormat.
NationalPrefixOptionalWhenFormatting *bool `protobuf:"varint,6,opt,name=national_prefix_optional_when_formatting,json=nationalPrefixOptionalWhenFormatting,def=0" json:"national_prefix_optional_when_formatting,omitempty"`
// This field specifies how any carrier code ($CC) together with the first
// group ($FG) in the national significant number should be formatted
// when formatWithCarrierCode is called, if carrier codes are used for a
// certain country.
DomesticCarrierCodeFormattingRule *string `protobuf:"bytes,5,opt,name=domestic_carrier_code_formatting_rule,json=domesticCarrierCodeFormattingRule" json:"domestic_carrier_code_formatting_rule,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NumberFormat) Reset() { *m = NumberFormat{} }
func (m *NumberFormat) String() string { return proto.CompactTextString(m) }
func (*NumberFormat) ProtoMessage() {}
func (*NumberFormat) Descriptor() ([]byte, []int) {
return fileDescriptor_phonemetadata_21ddef0b61d9532d, []int{0}
}
func (m *NumberFormat) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NumberFormat.Unmarshal(m, b)
}
func (m *NumberFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NumberFormat.Marshal(b, m, deterministic)
}
func (dst *NumberFormat) XXX_Merge(src proto.Message) {
xxx_messageInfo_NumberFormat.Merge(dst, src)
}
func (m *NumberFormat) XXX_Size() int {
return xxx_messageInfo_NumberFormat.Size(m)
}
func (m *NumberFormat) XXX_DiscardUnknown() {
xxx_messageInfo_NumberFormat.DiscardUnknown(m)
}
var xxx_messageInfo_NumberFormat proto.InternalMessageInfo
const Default_NumberFormat_NationalPrefixOptionalWhenFormatting bool = false
func (m *NumberFormat) GetPattern() string {
if m != nil && m.Pattern != nil {
return *m.Pattern
}
return ""
}
func (m *NumberFormat) GetFormat() string {
if m != nil && m.Format != nil {
return *m.Format
}
return ""
}
func (m *NumberFormat) GetLeadingDigitsPattern() []string {
if m != nil {
return m.LeadingDigitsPattern
}
return nil
}
func (m *NumberFormat) GetNationalPrefixFormattingRule() string {
if m != nil && m.NationalPrefixFormattingRule != nil {
return *m.NationalPrefixFormattingRule
}
return ""
}
func (m *NumberFormat) GetNationalPrefixOptionalWhenFormatting() bool {
if m != nil && m.NationalPrefixOptionalWhenFormatting != nil {
return *m.NationalPrefixOptionalWhenFormatting
}
return Default_NumberFormat_NationalPrefixOptionalWhenFormatting
}
func (m *NumberFormat) GetDomesticCarrierCodeFormattingRule() string {
if m != nil && m.DomesticCarrierCodeFormattingRule != nil {
return *m.DomesticCarrierCodeFormattingRule
}
return ""
}
// If you add, remove, or rename fields, or change their semantics, check if you
// should change the excludable field sets or the behavior in MetadataFilter.
type PhoneNumberDesc struct {
// The national_number_pattern is the pattern that a valid national
// significant number would match. This specifies information such as its
// total length and leading digits.
NationalNumberPattern *string `protobuf:"bytes,2,opt,name=national_number_pattern,json=nationalNumberPattern" json:"national_number_pattern,omitempty"`
// These represent the lengths a phone number from this region can be. They
// will be sorted from smallest to biggest. Note that these lengths are for
// the full number, without country calling code or national prefix. For
// example, for the Swiss number +41789270000, in local format 0789270000,
// this would be 9.
// This could be used to highlight tokens in a text that may be a phone
// number, or to quickly prune numbers that could not possibly be a phone
// number for this locale.
PossibleLength []int32 `protobuf:"varint,9,rep,name=possible_length,json=possibleLength" json:"possible_length,omitempty"`
// These represent the lengths that only local phone numbers (without an area
// code) from this region can be. They will be sorted from smallest to
// biggest. For example, since the American number 456-1234 may be locally
// diallable, although not diallable from outside the area, 7 could be a
// possible value.
// This could be used to highlight tokens in a text that may be a phone
// number.
// To our knowledge, area codes are usually only relevant for some fixed-line
// and mobile numbers, so this field should only be set for those types of
// numbers (and the general description) - however there are exceptions for
// NANPA countries.
// This data is used to calculate whether a number could be a possible number
// for a particular type.
PossibleLengthLocalOnly []int32 `protobuf:"varint,10,rep,name=possible_length_local_only,json=possibleLengthLocalOnly" json:"possible_length_local_only,omitempty"`
// An example national significant number for the specific type. It should
// not contain any formatting information.
ExampleNumber *string `protobuf:"bytes,6,opt,name=example_number,json=exampleNumber" json:"example_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhoneNumberDesc) Reset() { *m = PhoneNumberDesc{} }
func (m *PhoneNumberDesc) String() string { return proto.CompactTextString(m) }
func (*PhoneNumberDesc) ProtoMessage() {}
func (*PhoneNumberDesc) Descriptor() ([]byte, []int) {
return fileDescriptor_phonemetadata_21ddef0b61d9532d, []int{1}
}
func (m *PhoneNumberDesc) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhoneNumberDesc.Unmarshal(m, b)
}
func (m *PhoneNumberDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhoneNumberDesc.Marshal(b, m, deterministic)
}
func (dst *PhoneNumberDesc) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhoneNumberDesc.Merge(dst, src)
}
func (m *PhoneNumberDesc) XXX_Size() int {
return xxx_messageInfo_PhoneNumberDesc.Size(m)
}
func (m *PhoneNumberDesc) XXX_DiscardUnknown() {
xxx_messageInfo_PhoneNumberDesc.DiscardUnknown(m)
}
var xxx_messageInfo_PhoneNumberDesc proto.InternalMessageInfo
func (m *PhoneNumberDesc) GetNationalNumberPattern() string {
if m != nil && m.NationalNumberPattern != nil {
return *m.NationalNumberPattern
}
return ""
}
func (m *PhoneNumberDesc) GetPossibleLength() []int32 {
if m != nil {
return m.PossibleLength
}
return nil
}
func (m *PhoneNumberDesc) GetPossibleLengthLocalOnly() []int32 {
if m != nil {
return m.PossibleLengthLocalOnly
}
return nil
}
func (m *PhoneNumberDesc) GetExampleNumber() string {
if m != nil && m.ExampleNumber != nil {
return *m.ExampleNumber
}
return ""
}
// If you add, remove, or rename fields, or change their semantics, check if you
// should change the excludable field sets or the behavior in MetadataFilter.
type PhoneMetadata struct {
// The general_desc contains information which is a superset of descriptions
// for all types of phone numbers. If any element is missing in the
// description of a specific type in the XML file, the element will inherit
// from its counterpart in the general_desc. For all types that are generally
// relevant to normal phone numbers, if the whole type is missing in the
// PhoneNumberMetadata XML file, it will not have national number data, and
// the possible lengths will be [-1].
GeneralDesc *PhoneNumberDesc `protobuf:"bytes,1,opt,name=general_desc,json=generalDesc" json:"general_desc,omitempty"`
FixedLine *PhoneNumberDesc `protobuf:"bytes,2,opt,name=fixed_line,json=fixedLine" json:"fixed_line,omitempty"`
Mobile *PhoneNumberDesc `protobuf:"bytes,3,opt,name=mobile" json:"mobile,omitempty"`
TollFree *PhoneNumberDesc `protobuf:"bytes,4,opt,name=toll_free,json=tollFree" json:"toll_free,omitempty"`
PremiumRate *PhoneNumberDesc `protobuf:"bytes,5,opt,name=premium_rate,json=premiumRate" json:"premium_rate,omitempty"`
SharedCost *PhoneNumberDesc `protobuf:"bytes,6,opt,name=shared_cost,json=sharedCost" json:"shared_cost,omitempty"`
PersonalNumber *PhoneNumberDesc `protobuf:"bytes,7,opt,name=personal_number,json=personalNumber" json:"personal_number,omitempty"`
Voip *PhoneNumberDesc `protobuf:"bytes,8,opt,name=voip" json:"voip,omitempty"`
Pager *PhoneNumberDesc `protobuf:"bytes,21,opt,name=pager" json:"pager,omitempty"`
Uan *PhoneNumberDesc `protobuf:"bytes,25,opt,name=uan" json:"uan,omitempty"`
Emergency *PhoneNumberDesc `protobuf:"bytes,27,opt,name=emergency" json:"emergency,omitempty"`
Voicemail *PhoneNumberDesc `protobuf:"bytes,28,opt,name=voicemail" json:"voicemail,omitempty"`
ShortCode *PhoneNumberDesc `protobuf:"bytes,29,opt,name=short_code,json=shortCode" json:"short_code,omitempty"`
StandardRate *PhoneNumberDesc `protobuf:"bytes,30,opt,name=standard_rate,json=standardRate" json:"standard_rate,omitempty"`
CarrierSpecific *PhoneNumberDesc `protobuf:"bytes,31,opt,name=carrier_specific,json=carrierSpecific" json:"carrier_specific,omitempty"`
SmsServices *PhoneNumberDesc `protobuf:"bytes,33,opt,name=sms_services,json=smsServices" json:"sms_services,omitempty"`
// The rules here distinguish the numbers that are only able to be dialled
// nationally.
NoInternationalDialling *PhoneNumberDesc `protobuf:"bytes,24,opt,name=no_international_dialling,json=noInternationalDialling" json:"no_international_dialling,omitempty"`
// The CLDR 2-letter representation of a country/region, with the exception of
// "country calling codes" used for non-geographical entities, such as
// Universal International Toll Free Number (+800). These are all given the ID
// "001", since this is the numeric region code for the world according to UN
// M.49: http://en.wikipedia.org/wiki/UN_M.49
Id *string `protobuf:"bytes,9,req,name=id" json:"id,omitempty"`
// The country calling code that one would dial from overseas when trying to
// dial a phone number in this country. For example, this would be "64" for
// New Zealand.
CountryCode *int32 `protobuf:"varint,10,opt,name=country_code,json=countryCode" json:"country_code,omitempty"`
// The international_prefix of country A is the number that needs to be
// dialled from country A to another country (country B). This is followed
// by the country code for country B. Note that some countries may have more
// than one international prefix, and for those cases, a regular expression
// matching the international prefixes will be stored in this field.
InternationalPrefix *string `protobuf:"bytes,11,opt,name=international_prefix,json=internationalPrefix" json:"international_prefix,omitempty"`
// If more than one international prefix is present, a preferred prefix can
// be specified here for out-of-country formatting purposes. If this field is
// not present, and multiple international prefixes are present, then "+"
// will be used instead.
PreferredInternationalPrefix *string `protobuf:"bytes,17,opt,name=preferred_international_prefix,json=preferredInternationalPrefix" json:"preferred_international_prefix,omitempty"`
// The national prefix of country A is the number that needs to be dialled
// before the national significant number when dialling internally. This
// would not be dialled when dialling internationally. For example, in New
// Zealand, the number that would be locally dialled as 09 345 3456 would be
// dialled from overseas as +64 9 345 3456. In this case, 0 is the national
// prefix.
NationalPrefix *string `protobuf:"bytes,12,opt,name=national_prefix,json=nationalPrefix" json:"national_prefix,omitempty"`
// The preferred prefix when specifying an extension in this country. This is
// used for formatting only, and if this is not specified, a suitable default
// should be used instead. For example, if you wanted extensions to be
// formatted in the following way:
// 1 (365) 345 445 ext. 2345
// " ext. " should be the preferred extension prefix.
PreferredExtnPrefix *string `protobuf:"bytes,13,opt,name=preferred_extn_prefix,json=preferredExtnPrefix" json:"preferred_extn_prefix,omitempty"`
// This field is used for cases where the national prefix of a country
// contains a carrier selection code, and is written in the form of a
// regular expression. For example, to dial the number 2222-2222 in
// Fortaleza, Brazil (area code 85) using the long distance carrier Oi
// (selection code 31), one would dial 0 31 85 2222 2222. Assuming the
// only other possible carrier selection code is 32, the field will
// contain "03[12]".
//
// When it is missing from the XML file, this field inherits the value of
// national_prefix, if that is present.
NationalPrefixForParsing *string `protobuf:"bytes,15,opt,name=national_prefix_for_parsing,json=nationalPrefixForParsing" json:"national_prefix_for_parsing,omitempty"`
// This field is only populated and used under very rare situations.
// For example, mobile numbers in Argentina are written in two completely
// different ways when dialed in-country and out-of-country
// (e.g. 0343 15 555 1212 is exactly the same number as +54 9 343 555 1212).
// This field is used together with national_prefix_for_parsing to transform
// the number into a particular representation for storing in the phonenumber
// proto buffer in those rare cases.
NationalPrefixTransformRule *string `protobuf:"bytes,16,opt,name=national_prefix_transform_rule,json=nationalPrefixTransformRule" json:"national_prefix_transform_rule,omitempty"`
// Specifies whether the mobile and fixed-line patterns are the same or not.
// This is used to speed up determining phone number type in countries where
// these two types of phone numbers can never be distinguished.
SameMobileAndFixedLinePattern *bool `protobuf:"varint,18,opt,name=same_mobile_and_fixed_line_pattern,json=sameMobileAndFixedLinePattern,def=0" json:"same_mobile_and_fixed_line_pattern,omitempty"`
// Note that the number format here is used for formatting only, not parsing.
// Hence all the varied ways a user *may* write a number need not be recorded
// - just the ideal way we would like to format it for them. When this element
// is absent, the national significant number will be formatted as a whole
// without any formatting applied.
NumberFormat []*NumberFormat `protobuf:"bytes,19,rep,name=number_format,json=numberFormat" json:"number_format,omitempty"`
// This field is populated only when the national significant number is
// formatted differently when it forms part of the INTERNATIONAL format
// and NATIONAL format. A case in point is mobile numbers in Argentina:
// The number, which would be written in INTERNATIONAL format as
// +54 9 343 555 1212, will be written as 0343 15 555 1212 for NATIONAL
// format. In this case, the prefix 9 is inserted when dialling from
// overseas, but otherwise the prefix 0 and the carrier selection code
// 15 (inserted after the area code of 343) is used.
// Note: this field is populated by setting a value for <intlFormat> inside
// the <numberFormat> tag in the XML file. If <intlFormat> is not set then it
// defaults to the same value as the <format> tag.
//
// Examples:
// To set the <intlFormat> to a different value than the <format>:
// <numberFormat pattern=....>
// <format>$1 $2 $3</format>
// <intlFormat>$1-$2-$3</intlFormat>
// </numberFormat>
//
// To have a format only used for national formatting, set <intlFormat> to
// "NA":
// <numberFormat pattern=....>
// <format>$1 $2 $3</format>
// <intlFormat>NA</intlFormat>
// </numberFormat>
IntlNumberFormat []*NumberFormat `protobuf:"bytes,20,rep,name=intl_number_format,json=intlNumberFormat" json:"intl_number_format,omitempty"`
// This field is set when this country is considered to be the main country
// for a calling code. It may not be set by more than one country with the
// same calling code, and it should not be set by countries with a unique
// calling code. This can be used to indicate that "GB" is the main country
// for the calling code "44" for example, rather than Jersey or the Isle of
// Man.
MainCountryForCode *bool `protobuf:"varint,22,opt,name=main_country_for_code,json=mainCountryForCode,def=0" json:"main_country_for_code,omitempty"`
// This field is populated only for countries or regions that share a country
// calling code. If a number matches this pattern, it could belong to this
// region. This is not intended as a replacement for IsValidForRegion since a
// matching prefix is insufficient for a number to be valid. Furthermore, it
// does not contain all the prefixes valid for a region - for example, 800
// numbers are valid for all NANPA countries and are hence not listed here.
// This field should be a regular expression of the expected prefix match.
// It is used merely as a short-cut for working out which region a number
// comes from in the case that there is only one, so leading_digit prefixes
// should not overlap.
LeadingDigits *string `protobuf:"bytes,23,opt,name=leading_digits,json=leadingDigits" json:"leading_digits,omitempty"`
// Deprecated: do not use. Will be deletd when there are no references to this
// later.
LeadingZeroPossible *bool `protobuf:"varint,26,opt,name=leading_zero_possible,json=leadingZeroPossible,def=0" json:"leading_zero_possible,omitempty"`
// This field is set when this country has implemented mobile number
// portability. This means that transferring mobile numbers between carriers
// is allowed. A consequence of this is that phone prefix to carrier mapping
// is less reliable.
MobileNumberPortableRegion *bool `protobuf:"varint,32,opt,name=mobile_number_portable_region,json=mobileNumberPortableRegion,def=0" json:"mobile_number_portable_region,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhoneMetadata) Reset() { *m = PhoneMetadata{} }
func (m *PhoneMetadata) String() string { return proto.CompactTextString(m) }
func (*PhoneMetadata) ProtoMessage() {}
func (*PhoneMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_phonemetadata_21ddef0b61d9532d, []int{2}
}
func (m *PhoneMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhoneMetadata.Unmarshal(m, b)
}
func (m *PhoneMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhoneMetadata.Marshal(b, m, deterministic)
}
func (dst *PhoneMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhoneMetadata.Merge(dst, src)
}
func (m *PhoneMetadata) XXX_Size() int {
return xxx_messageInfo_PhoneMetadata.Size(m)
}
func (m *PhoneMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_PhoneMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_PhoneMetadata proto.InternalMessageInfo
const Default_PhoneMetadata_SameMobileAndFixedLinePattern bool = false
const Default_PhoneMetadata_MainCountryForCode bool = false
const Default_PhoneMetadata_LeadingZeroPossible bool = false
const Default_PhoneMetadata_MobileNumberPortableRegion bool = false
func (m *PhoneMetadata) GetGeneralDesc() *PhoneNumberDesc {
if m != nil {
return m.GeneralDesc
}
return nil
}
func (m *PhoneMetadata) GetFixedLine() *PhoneNumberDesc {
if m != nil {
return m.FixedLine
}
return nil
}
func (m *PhoneMetadata) GetMobile() *PhoneNumberDesc {
if m != nil {
return m.Mobile
}
return nil
}
func (m *PhoneMetadata) GetTollFree() *PhoneNumberDesc {
if m != nil {
return m.TollFree
}
return nil
}
func (m *PhoneMetadata) GetPremiumRate() *PhoneNumberDesc {
if m != nil {
return m.PremiumRate
}
return nil
}
func (m *PhoneMetadata) GetSharedCost() *PhoneNumberDesc {
if m != nil {
return m.SharedCost
}
return nil
}
func (m *PhoneMetadata) GetPersonalNumber() *PhoneNumberDesc {
if m != nil {
return m.PersonalNumber
}
return nil
}
func (m *PhoneMetadata) GetVoip() *PhoneNumberDesc {
if m != nil {
return m.Voip
}
return nil
}
func (m *PhoneMetadata) GetPager() *PhoneNumberDesc {
if m != nil {
return m.Pager
}
return nil
}
func (m *PhoneMetadata) GetUan() *PhoneNumberDesc {
if m != nil {
return m.Uan
}
return nil
}
func (m *PhoneMetadata) GetEmergency() *PhoneNumberDesc {
if m != nil {
return m.Emergency
}
return nil
}
func (m *PhoneMetadata) GetVoicemail() *PhoneNumberDesc {
if m != nil {
return m.Voicemail
}
return nil
}
func (m *PhoneMetadata) GetShortCode() *PhoneNumberDesc {
if m != nil {
return m.ShortCode
}
return nil
}
func (m *PhoneMetadata) GetStandardRate() *PhoneNumberDesc {
if m != nil {
return m.StandardRate
}
return nil
}
func (m *PhoneMetadata) GetCarrierSpecific() *PhoneNumberDesc {
if m != nil {
return m.CarrierSpecific
}
return nil
}
func (m *PhoneMetadata) GetSmsServices() *PhoneNumberDesc {
if m != nil {
return m.SmsServices
}
return nil
}
func (m *PhoneMetadata) GetNoInternationalDialling() *PhoneNumberDesc {
if m != nil {
return m.NoInternationalDialling
}
return nil
}
func (m *PhoneMetadata) GetId() string {
if m != nil && m.Id != nil {
return *m.Id
}
return ""
}
func (m *PhoneMetadata) GetCountryCode() int32 {
if m != nil && m.CountryCode != nil {
return *m.CountryCode
}
return 0
}
func (m *PhoneMetadata) GetInternationalPrefix() string {
if m != nil && m.InternationalPrefix != nil {
return *m.InternationalPrefix
}
return ""
}
func (m *PhoneMetadata) GetPreferredInternationalPrefix() string {
if m != nil && m.PreferredInternationalPrefix != nil {
return *m.PreferredInternationalPrefix
}
return ""
}
func (m *PhoneMetadata) GetNationalPrefix() string {
if m != nil && m.NationalPrefix != nil {
return *m.NationalPrefix
}
return ""
}
func (m *PhoneMetadata) GetPreferredExtnPrefix() string {
if m != nil && m.PreferredExtnPrefix != nil {
return *m.PreferredExtnPrefix
}
return ""
}
func (m *PhoneMetadata) GetNationalPrefixForParsing() string {
if m != nil && m.NationalPrefixForParsing != nil {
return *m.NationalPrefixForParsing
}
return ""
}
func (m *PhoneMetadata) GetNationalPrefixTransformRule() string {
if m != nil && m.NationalPrefixTransformRule != nil {
return *m.NationalPrefixTransformRule
}
return ""
}
func (m *PhoneMetadata) GetSameMobileAndFixedLinePattern() bool {
if m != nil && m.SameMobileAndFixedLinePattern != nil {
return *m.SameMobileAndFixedLinePattern
}
return Default_PhoneMetadata_SameMobileAndFixedLinePattern
}
func (m *PhoneMetadata) GetNumberFormat() []*NumberFormat {
if m != nil {
return m.NumberFormat
}
return nil
}
func (m *PhoneMetadata) GetIntlNumberFormat() []*NumberFormat {
if m != nil {
return m.IntlNumberFormat
}
return nil
}
func (m *PhoneMetadata) GetMainCountryForCode() bool {
if m != nil && m.MainCountryForCode != nil {
return *m.MainCountryForCode
}
return Default_PhoneMetadata_MainCountryForCode
}
func (m *PhoneMetadata) GetLeadingDigits() string {
if m != nil && m.LeadingDigits != nil {
return *m.LeadingDigits
}
return ""
}
func (m *PhoneMetadata) GetLeadingZeroPossible() bool {
if m != nil && m.LeadingZeroPossible != nil {
return *m.LeadingZeroPossible
}
return Default_PhoneMetadata_LeadingZeroPossible
}
func (m *PhoneMetadata) GetMobileNumberPortableRegion() bool {
if m != nil && m.MobileNumberPortableRegion != nil {
return *m.MobileNumberPortableRegion
}
return Default_PhoneMetadata_MobileNumberPortableRegion
}
type PhoneMetadataCollection struct {
Metadata []*PhoneMetadata `protobuf:"bytes,1,rep,name=metadata" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhoneMetadataCollection) Reset() { *m = PhoneMetadataCollection{} }
func (m *PhoneMetadataCollection) String() string { return proto.CompactTextString(m) }
func (*PhoneMetadataCollection) ProtoMessage() {}
func (*PhoneMetadataCollection) Descriptor() ([]byte, []int) {
return fileDescriptor_phonemetadata_21ddef0b61d9532d, []int{3}
}
func (m *PhoneMetadataCollection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhoneMetadataCollection.Unmarshal(m, b)
}
func (m *PhoneMetadataCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhoneMetadataCollection.Marshal(b, m, deterministic)
}
func (dst *PhoneMetadataCollection) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhoneMetadataCollection.Merge(dst, src)
}
func (m *PhoneMetadataCollection) XXX_Size() int {
return xxx_messageInfo_PhoneMetadataCollection.Size(m)
}
func (m *PhoneMetadataCollection) XXX_DiscardUnknown() {
xxx_messageInfo_PhoneMetadataCollection.DiscardUnknown(m)
}
var xxx_messageInfo_PhoneMetadataCollection proto.InternalMessageInfo
func (m *PhoneMetadataCollection) GetMetadata() []*PhoneMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func init() {
proto.RegisterType((*NumberFormat)(nil), "phonenumbers.NumberFormat")
proto.RegisterType((*PhoneNumberDesc)(nil), "phonenumbers.PhoneNumberDesc")
proto.RegisterType((*PhoneMetadata)(nil), "phonenumbers.PhoneMetadata")
proto.RegisterType((*PhoneMetadataCollection)(nil), "phonenumbers.PhoneMetadataCollection")
}
func init() { proto.RegisterFile("phonemetadata.proto", fileDescriptor_phonemetadata_21ddef0b61d9532d) }
var fileDescriptor_phonemetadata_21ddef0b61d9532d = []byte{
// 1039 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0xeb, 0x6e, 0xdb, 0x36,
0x14, 0xc7, 0x61, 0xbb, 0x49, 0xe3, 0x63, 0x27, 0xce, 0x98, 0x1b, 0x9b, 0x5b, 0x9d, 0x60, 0x45,
0xfd, 0x29, 0x43, 0xb2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