languages_public.proto 2.0 KB

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