| 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 Iterable as _Iterable |
| 17 |
from typing import Optional as _Optional |
| 18 |
|
| 19 |
from google.protobuf import descriptor as _descriptor |
| 20 |
from google.protobuf import message as _message |
| 21 |
from google.protobuf.internal import containers as _containers |
| 22 |
|
| 23 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 24 |
|
| 25 |
class PostalAddress(_message.Message): |
| 26 |
__slots__ = ( |
| 27 |
"revision", |
| 28 |
"region_code", |
| 29 |
"language_code", |
| 30 |
"postal_code", |
| 31 |
"sorting_code", |
| 32 |
"administrative_area", |
| 33 |
"locality", |
| 34 |
"sublocality", |
| 35 |
"address_lines", |
| 36 |
"recipients", |
| 37 |
"organization", |
| 38 |
) |
| 39 |
REVISION_FIELD_NUMBER: _ClassVar[int] |
| 40 |
REGION_CODE_FIELD_NUMBER: _ClassVar[int] |
| 41 |
LANGUAGE_CODE_FIELD_NUMBER: _ClassVar[int] |
| 42 |
POSTAL_CODE_FIELD_NUMBER: _ClassVar[int] |
| 43 |
SORTING_CODE_FIELD_NUMBER: _ClassVar[int] |
| 44 |
ADMINISTRATIVE_AREA_FIELD_NUMBER: _ClassVar[int] |
| 45 |
LOCALITY_FIELD_NUMBER: _ClassVar[int] |
| 46 |
SUBLOCALITY_FIELD_NUMBER: _ClassVar[int] |
| 47 |
ADDRESS_LINES_FIELD_NUMBER: _ClassVar[int] |
| 48 |
RECIPIENTS_FIELD_NUMBER: _ClassVar[int] |
| 49 |
ORGANIZATION_FIELD_NUMBER: _ClassVar[int] |
| 50 |
revision: int |
| 51 |
region_code: str |
| 52 |
language_code: str |
| 53 |
postal_code: str |
| 54 |
sorting_code: str |
| 55 |
administrative_area: str |
| 56 |
locality: str |
| 57 |
sublocality: str |
| 58 |
address_lines: _containers.RepeatedScalarFieldContainer[str] |
| 59 |
recipients: _containers.RepeatedScalarFieldContainer[str] |
| 60 |
organization: str |
| 61 |
def __init__( |
| 62 |
self, |
| 63 |
revision: _Optional[int] = ..., |
| 64 |
region_code: _Optional[str] = ..., |
| 65 |
language_code: _Optional[str] = ..., |
| 66 |
postal_code: _Optional[str] = ..., |
| 67 |
sorting_code: _Optional[str] = ..., |
| 68 |
administrative_area: _Optional[str] = ..., |
| 69 |
locality: _Optional[str] = ..., |
| 70 |
sublocality: _Optional[str] = ..., |
| 71 |
address_lines: _Optional[_Iterable[str]] = ..., |
| 72 |
recipients: _Optional[_Iterable[str]] = ..., |
| 73 |
organization: _Optional[str] = ..., |
| 74 |
) -> None: ... |