| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package phone_number |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
|
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
|
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 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 |
type PhoneNumber struct { |
| 66 |
state protoimpl.MessageState |
| 67 |
sizeCache protoimpl.SizeCache |
| 68 |
unknownFields protoimpl.UnknownFields |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
Kind isPhoneNumber_Kind `protobuf_oneof:"kind"` |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
Extension string `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"` |
| 89 |
} |
| 90 |
|
| 91 |
func (x *PhoneNumber) Reset() { |
| 92 |
*x = PhoneNumber{} |
| 93 |
if protoimpl.UnsafeEnabled { |
| 94 |
mi := &file_google_type_phone_number_proto_msgTypes[0] |
| 95 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 96 |
ms.StoreMessageInfo(mi) |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
func (x *PhoneNumber) String() string { |
| 101 |
return protoimpl.X.MessageStringOf(x) |
| 102 |
} |
| 103 |
|
| 104 |
func (*PhoneNumber) ProtoMessage() {} |
| 105 |
|
| 106 |
func (x *PhoneNumber) ProtoReflect() protoreflect.Message { |
| 107 |
mi := &file_google_type_phone_number_proto_msgTypes[0] |
| 108 |
if protoimpl.UnsafeEnabled && x != nil { |
| 109 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 110 |
if ms.LoadMessageInfo() == nil { |
| 111 |
ms.StoreMessageInfo(mi) |
| 112 |
} |
| 113 |
return ms |
| 114 |
} |
| 115 |
return mi.MessageOf(x) |
| 116 |
} |
| 117 |
|
| 118 |
|
| 119 |
func (*PhoneNumber) Descriptor() ([]byte, []int) { |
| 120 |
return file_google_type_phone_number_proto_rawDescGZIP(), []int{0} |
| 121 |
} |
| 122 |
|
| 123 |
func (m *PhoneNumber) GetKind() isPhoneNumber_Kind { |
| 124 |
if m != nil { |
| 125 |
return m.Kind |
| 126 |
} |
| 127 |
return nil |
| 128 |
} |
| 129 |
|
| 130 |
func (x *PhoneNumber) GetE164Number() string { |
| 131 |
if x, ok := x.GetKind().(*PhoneNumber_E164Number); ok { |
| 132 |
return x.E164Number |
| 133 |
} |
| 134 |
return "" |
| 135 |
} |
| 136 |
|
| 137 |
func (x *PhoneNumber) GetShortCode() *PhoneNumber_ShortCode { |
| 138 |
if x, ok := x.GetKind().(*PhoneNumber_ShortCode_); ok { |
| 139 |
return x.ShortCode |
| 140 |
} |
| 141 |
return nil |
| 142 |
} |
| 143 |
|
| 144 |
func (x *PhoneNumber) GetExtension() string { |
| 145 |
if x != nil { |
| 146 |
return x.Extension |
| 147 |
} |
| 148 |
return "" |
| 149 |
} |
| 150 |
|
| 151 |
type isPhoneNumber_Kind interface { |
| 152 |
isPhoneNumber_Kind() |
| 153 |
} |
| 154 |
|
| 155 |
type PhoneNumber_E164Number struct { |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
E164Number string `protobuf:"bytes,1,opt,name=e164_number,json=e164Number,proto3,oneof"` |
| 177 |
} |
| 178 |
|
| 179 |
type PhoneNumber_ShortCode_ struct { |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
ShortCode *PhoneNumber_ShortCode `protobuf:"bytes,2,opt,name=short_code,json=shortCode,proto3,oneof"` |
| 185 |
} |
| 186 |
|
| 187 |
func (*PhoneNumber_E164Number) isPhoneNumber_Kind() {} |
| 188 |
|
| 189 |
func (*PhoneNumber_ShortCode_) isPhoneNumber_Kind() {} |
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
type PhoneNumber_ShortCode struct { |
| 202 |
state protoimpl.MessageState |
| 203 |
sizeCache protoimpl.SizeCache |
| 204 |
unknownFields protoimpl.UnknownFields |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` |
| 212 |
|
| 213 |
|
| 214 |
Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` |
| 215 |
} |
| 216 |
|
| 217 |
func (x *PhoneNumber_ShortCode) Reset() { |
| 218 |
*x = PhoneNumber_ShortCode{} |
| 219 |
if protoimpl.UnsafeEnabled { |
| 220 |
mi := &file_google_type_phone_number_proto_msgTypes[1] |
| 221 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 222 |
ms.StoreMessageInfo(mi) |
| 223 |
} |
| 224 |
} |
| 225 |
|
| 226 |
func (x *PhoneNumber_ShortCode) String() string { |
| 227 |
return protoimpl.X.MessageStringOf(x) |
| 228 |
} |
| 229 |
|
| 230 |
func (*PhoneNumber_ShortCode) ProtoMessage() {} |
| 231 |
|
| 232 |
func (x *PhoneNumber_ShortCode) ProtoReflect() protoreflect.Message { |
| 233 |
mi := &file_google_type_phone_number_proto_msgTypes[1] |
| 234 |
if protoimpl.UnsafeEnabled && x != nil { |
| 235 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 236 |
if ms.LoadMessageInfo() == nil { |
| 237 |
ms.StoreMessageInfo(mi) |
| 238 |
} |
| 239 |
return ms |
| 240 |
} |
| 241 |
return mi.MessageOf(x) |
| 242 |
} |
| 243 |
|
| 244 |
|
| 245 |
func (*PhoneNumber_ShortCode) Descriptor() ([]byte, []int) { |
| 246 |
return file_google_type_phone_number_proto_rawDescGZIP(), []int{0, 0} |
| 247 |
} |
| 248 |
|
| 249 |
func (x *PhoneNumber_ShortCode) GetRegionCode() string { |
| 250 |
if x != nil { |
| 251 |
return x.RegionCode |
| 252 |
} |
| 253 |
return "" |
| 254 |
} |
| 255 |
|
| 256 |
func (x *PhoneNumber_ShortCode) GetNumber() string { |
| 257 |
if x != nil { |
| 258 |
return x.Number |
| 259 |
} |
| 260 |
return "" |
| 261 |
} |
| 262 |
|
| 263 |
var File_google_type_phone_number_proto protoreflect.FileDescriptor |
| 264 |
|
| 265 |
var file_google_type_phone_number_proto_rawDesc = []byte{ |
| 266 |
0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x70, 0x68, |
| 267 |
0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 268 |
0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0xe1, 0x01, |
| 269 |
0x0a, 0x0b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x21, 0x0a, |
| 270 |
0x0b, 0x65, 0x31, 0x36, 0x34, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, |
| 271 |
0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x31, 0x36, 0x34, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, |
| 272 |
0x12, 0x43, 0x0a, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, |
| 273 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, |
| 274 |
0x70, 0x65, 0x2e, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x53, |
| 275 |
0x68, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x73, 0x68, 0x6f, 0x72, |
| 276 |
0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, |
| 277 |
0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, |
| 278 |
0x69, 0x6f, 0x6e, 0x1a, 0x44, 0x0a, 0x09, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x64, 0x65, |
| 279 |
0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, |
| 280 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, |
| 281 |
0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 282 |
0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, |
| 283 |
0x64, 0x42, 0x71, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 284 |
0x74, 0x79, 0x70, 0x65, 0x42, 0x10, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, |
| 285 |
0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 286 |
0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, |
| 287 |
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, |
| 288 |
0x74, 0x79, 0x70, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, |
| 289 |
0x72, 0x3b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0xa2, 0x02, |
| 290 |
0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 291 |
} |
| 292 |
|
| 293 |
var ( |
| 294 |
file_google_type_phone_number_proto_rawDescOnce sync.Once |
| 295 |
file_google_type_phone_number_proto_rawDescData = file_google_type_phone_number_proto_rawDesc |
| 296 |
) |
| 297 |
|
| 298 |
func file_google_type_phone_number_proto_rawDescGZIP() []byte { |
| 299 |
file_google_type_phone_number_proto_rawDescOnce.Do(func() { |
| 300 |
file_google_type_phone_number_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_phone_number_proto_rawDescData) |
| 301 |
}) |
| 302 |
return file_google_type_phone_number_proto_rawDescData |
| 303 |
} |
| 304 |
|
| 305 |
var file_google_type_phone_number_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 306 |
var file_google_type_phone_number_proto_goTypes = []interface{}{ |
| 307 |
(*PhoneNumber)(nil), |
| 308 |
(*PhoneNumber_ShortCode)(nil), |
| 309 |
} |
| 310 |
var file_google_type_phone_number_proto_depIdxs = []int32{ |
| 311 |
1, |
| 312 |
1, |
| 313 |
1, |
| 314 |
1, |
| 315 |
1, |
| 316 |
0, |
| 317 |
} |
| 318 |
|
| 319 |
func init() { file_google_type_phone_number_proto_init() } |
| 320 |
func file_google_type_phone_number_proto_init() { |
| 321 |
if File_google_type_phone_number_proto != nil { |
| 322 |
return |
| 323 |
} |
| 324 |
if !protoimpl.UnsafeEnabled { |
| 325 |
file_google_type_phone_number_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 326 |
switch v := v.(*PhoneNumber); i { |
| 327 |
case 0: |
| 328 |
return &v.state |
| 329 |
case 1: |
| 330 |
return &v.sizeCache |
| 331 |
case 2: |
| 332 |
return &v.unknownFields |
| 333 |
default: |
| 334 |
return nil |
| 335 |
} |
| 336 |
} |
| 337 |
file_google_type_phone_number_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 338 |
switch v := v.(*PhoneNumber_ShortCode); i { |
| 339 |
case 0: |
| 340 |
return &v.state |
| 341 |
case 1: |
| 342 |
return &v.sizeCache |
| 343 |
case 2: |
| 344 |
return &v.unknownFields |
| 345 |
default: |
| 346 |
return nil |
| 347 |
} |
| 348 |
} |
| 349 |
} |
| 350 |
file_google_type_phone_number_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 351 |
(*PhoneNumber_E164Number)(nil), |
| 352 |
(*PhoneNumber_ShortCode_)(nil), |
| 353 |
} |
| 354 |
type x struct{} |
| 355 |
out := protoimpl.TypeBuilder{ |
| 356 |
File: protoimpl.DescBuilder{ |
| 357 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 358 |
RawDescriptor: file_google_type_phone_number_proto_rawDesc, |
| 359 |
NumEnums: 0, |
| 360 |
NumMessages: 2, |
| 361 |
NumExtensions: 0, |
| 362 |
NumServices: 0, |
| 363 |
}, |
| 364 |
GoTypes: file_google_type_phone_number_proto_goTypes, |
| 365 |
DependencyIndexes: file_google_type_phone_number_proto_depIdxs, |
| 366 |
MessageInfos: file_google_type_phone_number_proto_msgTypes, |
| 367 |
}.Build() |
| 368 |
File_google_type_phone_number_proto = out.File |
| 369 |
file_google_type_phone_number_proto_rawDesc = nil |
| 370 |
file_google_type_phone_number_proto_goTypes = nil |
| 371 |
file_google_type_phone_number_proto_depIdxs = nil |
| 372 |
} |