1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19option java_package = "com.android.libcore.timezone.telephonylookup.proto";
20option java_multiple_files = false;
21
22package com.android.libcore.timezone.telephonylookup.proto;
23
24message TelephonyLookup {
25    /* MCC/MNC override for a specific region */
26    repeated Network networks = 1;
27    /* Countries of a given MCC */
28    repeated MobileCountry mobile_countries = 2;
29}
30
31message Network {
32    /* A 3-digit numeric in ASCII. */
33    required string mcc = 1;
34    /* A 2- or 3-digit numeric in ASCII. */
35    required string mnc = 2;
36    /* An ISO 3166 alpha-2 code (lower case). */
37    required string countryIsoCode = 3;
38}
39
40message MobileCountry {
41    /* A 3-digit numeric in ASCII. */
42    required string mcc = 1;
43    /* ISO 3166 alpha-2 codes (lower case). */
44    repeated string countryIsoCodes = 2;
45}