-
Notifications
You must be signed in to change notification settings - Fork 0
/
country.proto
57 lines (48 loc) · 2.1 KB
/
country.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright 2020-2024 SIX AFTER, INC (SIX AFTER)
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: SIX AFTER, INC (SIX AFTER)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax="proto3";
package sixafter.types;
option go_package="github.com/sixafter/types;types";
option cc_enable_arenas = true;
option java_package = "com.sixafter.types";
option java_multiple_files = true;
option java_outer_classname = "CountryProto";
option objc_class_prefix = "TPB";
option csharp_namespace = "SixAfter.Types.WellKnownTypes";
// The `Country` message represents a country as defined by the ISO-3166-1 standard.
// It is commonly used for internationalization, geolocation, and regulatory purposes.
message Country {
// The commonly used name of the country.
// Example: "United States".
string name = 1;
// The formal or official name of the country.
// Example: "United States of America".
string formal_name = 2;
// The ISO 3166-1 alpha-2 code for the country.
// This is a two-letter country code commonly used in international standards and systems.
// Example: "US" for the United States.
string alphabetic_code_2 = 3;
// The ISO 3166-1 alpha-3 code for the country.
// This is a three-letter country code that offers more specificity than the alpha-2 code.
// Example: "USA" for the United States.
string alphabetic_code_3 = 4;
// The ISO 3166-1 numeric code for the country.
// This is a three-digit code that is language-neutral and often used in databases or systems
// where numeric identifiers are preferred.
// Example: 840 for the United States.
uint32 numeric_code = 5;
}