| 1 |
syntax = "proto2"; |
| 2 |
|
| 3 |
/** |
| 4 |
* languages/regions/scripts proto formats. |
| 5 |
*/ |
| 6 |
package google.languages_public; |
| 7 |
|
| 8 |
// A region or territory as defined in the CLDR |
| 9 |
message RegionProto { |
| 10 |
optional string id = 1; // Region codes defined by CLDR |
| 11 |
optional string name = 2; |
| 12 |
optional int32 population = 3; |
| 13 |
repeated string region_group = 4; |
| 14 |
|
| 15 |
// Next = 5; |
| 16 |
} |
| 17 |
|
| 18 |
message ScriptProto { |
| 19 |
optional string id = 1; // Script codes defined by CLDR |
| 20 |
optional string name = 2; |
| 21 |
optional bool historical = 3; |
| 22 |
optional bool fictional = 4; |
| 23 |
optional string family = 5; |
| 24 |
optional string summary = 6; |
| 25 |
// Next = 6; |
| 26 |
} |
| 27 |
|
| 28 |
message LanguageProto { |
| 29 |
optional string id = 1; // Either ${lang} or ${lang}_${script} |
| 30 |
optional string language = 2; // BCP 47 |
| 31 |
optional string script = 3; |
| 32 |
optional string name = 4; |
| 33 |
optional string preferred_name = 5; |
| 34 |
optional string autonym = 6; // Name of language as written in that language |
| 35 |
optional int32 population = 7; |
| 36 |
repeated string region = 8; |
| 37 |
optional ExemplarCharsProto exemplar_chars = 9; |
| 38 |
optional SampleTextProto sample_text = 10; |
| 39 |
optional bool historical = 11; |
| 40 |
repeated string source = 12; |
| 41 |
optional string note = 13; |
| 42 |
|
| 43 |
// Next = 12; |
| 44 |
} |
| 45 |
|
| 46 |
// Space-separated lists of characters representative of a given language. |
| 47 |
message ExemplarCharsProto { |
| 48 |
optional string base = 1; |
| 49 |
optional string auxiliary = 2; |
| 50 |
optional string marks = 3; |
| 51 |
optional string numerals = 4; |
| 52 |
optional string punctuation = 5; |
| 53 |
optional string index = 6; |
| 54 |
optional string not_required = 7; // Base characters which can be ignored when determining language support |
| 55 |
|
| 56 |
// Next = 8; |
| 57 |
} |
| 58 |
|
| 59 |
message SampleTextProto { |
| 60 |
optional string masthead_full = 1; |
| 61 |
optional string masthead_partial = 2; |
| 62 |
optional string styles = 3; |
| 63 |
optional string tester = 4; |
| 64 |
optional string poster_sm = 5; |
| 65 |
optional string poster_md = 6; |
| 66 |
optional string poster_lg = 7; |
| 67 |
optional string specimen_48 = 8; |
| 68 |
optional string specimen_36 = 9; |
| 69 |
optional string specimen_32 = 10; |
| 70 |
optional string specimen_21 = 11; |
| 71 |
optional string specimen_16 = 12; |
| 72 |
optional string note = 13; |
| 73 |
} |