languages_public.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. // Next = 3;
  18. }
  19. message LanguageProto {
  20. optional string id = 1; // Either ${lang} or ${lang}_${script}
  21. optional string language = 2; // BCP 47
  22. optional string script = 3;
  23. optional string name = 4;
  24. optional string preferred_name = 5;
  25. optional string autonym = 6; // Name of language as written in that language
  26. optional int32 population = 7;
  27. repeated string region = 8;
  28. optional ExemplarCharsProto exemplar_chars = 9;
  29. optional SampleTextProto sample_text = 10;
  30. optional bool historical = 11;
  31. repeated string source = 12;
  32. optional string note = 13;
  33. // Next = 12;
  34. }
  35. // Space-separated lists of characters representative of a given language.
  36. message ExemplarCharsProto {
  37. optional string base = 1;
  38. optional string auxiliary = 2;
  39. optional string marks = 3;
  40. optional string numerals = 4;
  41. optional string punctuation = 5;
  42. optional string index = 6;
  43. optional string not_required = 7; // Base characters which can be ignored when determining language support
  44. // Next = 8;
  45. }
  46. message SampleTextProto {
  47. optional string masthead_full = 1;
  48. optional string masthead_partial = 2;
  49. optional string styles = 3;
  50. optional string tester = 4;
  51. optional string poster_sm = 5;
  52. optional string poster_md = 6;
  53. optional string poster_lg = 7;
  54. optional string specimen_48 = 8;
  55. optional string specimen_36 = 9;
  56. optional string specimen_32 = 10;
  57. optional string specimen_21 = 11;
  58. optional string specimen_16 = 12;
  59. optional string note = 13;
  60. }