Debian Codegraph @

google/type/phone_number_pb2.pyi

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 from typing import ClassVar as _ClassVar
16 from typing import Mapping as _Mapping
17 from typing import Optional as _Optional
18 from typing import Union as _Union
19
20 from google.protobuf import descriptor as _descriptor
21 from google.protobuf import message as _message
22
23 DESCRIPTOR: _descriptor.FileDescriptor
24
25 class PhoneNumber(_message.Message):
26 __slots__ = ("e164_number", "short_code", "extension")
27 class ShortCode(_message.Message):
28 __slots__ = ("region_code", "number")
29 REGION_CODE_FIELD_NUMBER: _ClassVar[int]
30 NUMBER_FIELD_NUMBER: _ClassVar[int]
31 region_code: str
32 number: str
33 def __init__(
34 self, region_code: _Optional[str] = ..., number: _Optional[str] = ...
35 ) -> None: ...
36
37 E164_NUMBER_FIELD_NUMBER: _ClassVar[int]
38 SHORT_CODE_FIELD_NUMBER: _ClassVar[int]
39 EXTENSION_FIELD_NUMBER: _ClassVar[int]
40 e164_number: str
41 short_code: PhoneNumber.ShortCode
42 extension: str
43 def __init__(
44 self,
45 e164_number: _Optional[str] = ...,
46 short_code: _Optional[_Union[PhoneNumber.ShortCode, _Mapping]] = ...,
47 extension: _Optional[str] = ...,
48 ) -> None: ...