• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
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
16syntax = "proto2";
17
18option optimize_for = LITE_RUNTIME;
19package i18n.phonenumbers;
20
21message GeocodingInfo {
22    repeated PrefixesInfo prefixes_info = 1;
23    repeated string languages = 2;
24    required LanguageCodeInfo language_code_info = 3;
25    repeated CountriesInfo countries_info = 4;
26    repeated int32 countries = 5;
27    required CountryCodeInfo country_code_info = 6;
28}
29
30message PrefixesInfo {
31    required int32 prefixes_num = 1;
32    repeated int32 prefixes = 2;
33    repeated string descriptions = 3;
34    required int32 lengths_num = 4;
35    repeated int32 lengths = 5;
36}
37
38message LanguageCodeInfo {
39    required int32 language_codes_num = 1;
40    repeated string language_codes = 2;
41}
42
43message CountriesInfo {
44    required int32 country_languages_num = 1;
45    repeated string country_languages = 2;
46}
47
48message CountryCodeInfo {
49    required int32 country_codes_num = 1;
50    repeated int32 country_codes = 2;
51}
52