languages_public.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. // Next = 7;
  44. }
  45. message SampleTextProto {
  46. optional string masthead_full = 1;
  47. optional string masthead_partial = 2;
  48. optional string styles = 3;
  49. optional string tester = 4;
  50. optional string poster_sm = 5;
  51. optional string poster_md = 6;
  52. optional string poster_lg = 7;
  53. optional string specimen_48 = 8;
  54. optional string specimen_36 = 9;
  55. optional string specimen_32 = 10;
  56. optional string specimen_21 = 11;
  57. optional string specimen_16 = 12;
  58. optional string note = 13;
  59. }