rich Language message

This commit is contained in:
Lex Berezhny 2019-03-27 18:41:54 -04:00
parent c19954f250
commit f9d01576b9

View file

@ -52,8 +52,7 @@ message Stream {
message Fee {
enum Currency {
UNKNOWN_CURRENCY = 0;
LBC = 1;
LBC = 0;
USD = 2;
}
Currency currency = 1;
@ -82,192 +81,404 @@ message Audio {
uint32 duration = 1;
}
enum Language {
UNKNOWN_LANGUAGE = 0;
en = 1;
aa = 2;
ab = 3;
ae = 4;
af = 5;
ak = 6;
am = 7;
an = 8;
ar = 9;
as = 10;
av = 11;
ay = 12;
az = 13;
ba = 14;
be = 15;
bg = 16;
bh = 17;
bi = 18;
bm = 19;
bn = 20;
bo = 21;
br = 22;
bs = 23;
ca = 24;
ce = 25;
ch = 26;
co = 27;
cr = 28;
cs = 29;
cu = 30;
cv = 31;
cy = 32;
da = 33;
de = 34;
dv = 35;
dz = 36;
ee = 37;
el = 38;
eo = 39;
es = 40;
et = 41;
eu = 42;
fa = 43;
ff = 44;
fi = 45;
fj = 46;
fo = 47;
fr = 48;
fy = 49;
ga = 50;
gd = 51;
gl = 52;
gn = 53;
gu = 54;
gv = 55;
ha = 56;
he = 57;
hi = 58;
ho = 59;
hr = 60;
ht = 61;
hu = 62;
hy = 63;
hz = 64;
ia = 65;
id = 66;
ie = 67;
ig = 68;
ii = 69;
ik = 70;
io = 71;
is = 72;
it = 73;
iu = 74;
ja = 75;
jv = 76;
ka = 77;
kg = 78;
ki = 79;
kj = 80;
kk = 81;
kl = 82;
km = 83;
kn = 84;
ko = 85;
kr = 86;
ks = 87;
ku = 88;
kv = 89;
kw = 90;
ky = 91;
la = 92;
lb = 93;
lg = 94;
li = 95;
ln = 96;
lo = 97;
lt = 98;
lu = 99;
lv = 100;
mg = 101;
mh = 102;
mi = 103;
mk = 104;
ml = 105;
mn = 106;
mr = 107;
ms = 108;
mt = 109;
my = 110;
na = 111;
nb = 112;
nd = 113;
ne = 114;
ng = 115;
nl = 116;
nn = 117;
no = 118;
nr = 119;
nv = 120;
ny = 121;
oc = 122;
oj = 123;
om = 124;
or = 125;
os = 126;
pa = 127;
pi = 128;
pl = 129;
ps = 130;
pt = 131;
qu = 132;
rm = 133;
rn = 134;
ro = 135;
ru = 136;
rw = 137;
sa = 138;
sc = 139;
sd = 140;
se = 141;
sg = 142;
si = 143;
sk = 144;
sl = 145;
sm = 146;
sn = 147;
so = 148;
sq = 149;
sr = 150;
ss = 151;
st = 152;
su = 153;
sv = 154;
sw = 155;
ta = 156;
te = 157;
tg = 158;
th = 159;
ti = 160;
tk = 161;
tl = 162;
tn = 163;
to = 164;
tr = 165;
ts = 166;
tt = 167;
tw = 168;
ty = 169;
ug = 170;
uk = 171;
ur = 172;
uz = 173;
ve = 174;
vi = 175;
vo = 176;
wa = 177;
wo = 178;
xh = 179;
yi = 180;
yo = 181;
za = 182;
zh = 183;
zu = 184;
// RFC 5646
message Language {
Language language = 1;
Script script = 2;
Location.Country region = 3;
// ISO 639-1
enum Language {
UNKNOWN_LANGUAGE = 0;
en = 1;
aa = 2;
ab = 3;
ae = 4;
af = 5;
ak = 6;
am = 7;
an = 8;
ar = 9;
as = 10;
av = 11;
ay = 12;
az = 13;
ba = 14;
be = 15;
bg = 16;
bh = 17;
bi = 18;
bm = 19;
bn = 20;
bo = 21;
br = 22;
bs = 23;
ca = 24;
ce = 25;
ch = 26;
co = 27;
cr = 28;
cs = 29;
cu = 30;
cv = 31;
cy = 32;
da = 33;
de = 34;
dv = 35;
dz = 36;
ee = 37;
el = 38;
eo = 39;
es = 40;
et = 41;
eu = 42;
fa = 43;
ff = 44;
fi = 45;
fj = 46;
fo = 47;
fr = 48;
fy = 49;
ga = 50;
gd = 51;
gl = 52;
gn = 53;
gu = 54;
gv = 55;
ha = 56;
he = 57;
hi = 58;
ho = 59;
hr = 60;
ht = 61;
hu = 62;
hy = 63;
hz = 64;
ia = 65;
id = 66;
ie = 67;
ig = 68;
ii = 69;
ik = 70;
io = 71;
is = 72;
it = 73;
iu = 74;
ja = 75;
jv = 76;
ka = 77;
kg = 78;
ki = 79;
kj = 80;
kk = 81;
kl = 82;
km = 83;
kn = 84;
ko = 85;
kr = 86;
ks = 87;
ku = 88;
kv = 89;
kw = 90;
ky = 91;
la = 92;
lb = 93;
lg = 94;
li = 95;
ln = 96;
lo = 97;
lt = 98;
lu = 99;
lv = 100;
mg = 101;
mh = 102;
mi = 103;
mk = 104;
ml = 105;
mn = 106;
mr = 107;
ms = 108;
mt = 109;
my = 110;
na = 111;
nb = 112;
nd = 113;
ne = 114;
ng = 115;
nl = 116;
nn = 117;
no = 118;
nr = 119;
nv = 120;
ny = 121;
oc = 122;
oj = 123;
om = 124;
or = 125;
os = 126;
pa = 127;
pi = 128;
pl = 129;
ps = 130;
pt = 131;
qu = 132;
rm = 133;
rn = 134;
ro = 135;
ru = 136;
rw = 137;
sa = 138;
sc = 139;
sd = 140;
se = 141;
sg = 142;
si = 143;
sk = 144;
sl = 145;
sm = 146;
sn = 147;
so = 148;
sq = 149;
sr = 150;
ss = 151;
st = 152;
su = 153;
sv = 154;
sw = 155;
ta = 156;
te = 157;
tg = 158;
th = 159;
ti = 160;
tk = 161;
tl = 162;
tn = 163;
to = 164;
tr = 165;
ts = 166;
tt = 167;
tw = 168;
ty = 169;
ug = 170;
uk = 171;
ur = 172;
uz = 173;
ve = 174;
vi = 175;
vo = 176;
wa = 177;
wo = 178;
xh = 179;
yi = 180;
yo = 181;
za = 182;
zh = 183;
zu = 184;
}
// ISO 15924
enum Script {
UNKNOWN_SCRIPT = 0;
Adlm = 1;
Afak = 2;
Aghb = 3;
Ahom = 4;
Arab = 5;
Aran = 6;
Armi = 7;
Armn = 8;
Avst = 9;
Bali = 10;
Bamu = 11;
Bass = 12;
Batk = 13;
Beng = 14;
Bhks = 15;
Blis = 16;
Bopo = 17;
Brah = 18;
Brai = 19;
Bugi = 20;
Buhd = 21;
Cakm = 22;
Cans = 23;
Cari = 24;
Cham = 25;
Cher = 26;
Cirt = 27;
Copt = 28;
Cpmn = 29;
Cprt = 30;
Cyrl = 31;
Cyrs = 32;
Deva = 33;
Dogr = 34;
Dsrt = 35;
Dupl = 36;
Egyd = 37;
Egyh = 38;
Egyp = 39;
Elba = 40;
Elym = 41;
Ethi = 42;
Geok = 43;
Geor = 44;
Glag = 45;
Gong = 46;
Gonm = 47;
Goth = 48;
Gran = 49;
Grek = 50;
Gujr = 51;
Guru = 52;
Hanb = 53;
Hang = 54;
Hani = 55;
Hano = 56;
Hans = 57;
Hant = 58;
Hatr = 59;
Hebr = 60;
Hira = 61;
Hluw = 62;
Hmng = 63;
Hmnp = 64;
Hrkt = 65;
Hung = 66;
Inds = 67;
Ital = 68;
Jamo = 69;
Java = 70;
Jpan = 71;
Jurc = 72;
Kali = 73;
Kana = 74;
Khar = 75;
Khmr = 76;
Khoj = 77;
Kitl = 78;
Kits = 79;
Knda = 80;
Kore = 81;
Kpel = 82;
Kthi = 83;
Lana = 84;
Laoo = 85;
Latf = 86;
Latg = 87;
Latn = 88;
Leke = 89;
Lepc = 90;
Limb = 91;
Lina = 92;
Linb = 93;
Lisu = 94;
Loma = 95;
Lyci = 96;
Lydi = 97;
Mahj = 98;
Maka = 99;
Mand = 100;
Mani = 101;
Marc = 102;
Maya = 103;
Medf = 104;
Mend = 105;
Merc = 106;
Mero = 107;
Mlym = 108;
Modi = 109;
Mong = 110;
Moon = 111;
Mroo = 112;
Mtei = 113;
Mult = 114;
Mymr = 115;
Nand = 116;
Narb = 117;
Nbat = 118;
Newa = 119;
Nkdb = 120;
Nkgb = 121;
Nkoo = 122;
Nshu = 123;
Ogam = 124;
Olck = 125;
Orkh = 126;
Orya = 127;
Osge = 128;
Osma = 129;
Palm = 130;
Pauc = 131;
Perm = 132;
Phag = 133;
Phli = 134;
Phlp = 135;
Phlv = 136;
Phnx = 137;
Plrd = 138;
Piqd = 139;
Prti = 140;
Qaaa = 141;
Qabx = 142;
Rjng = 143;
Rohg = 144;
Roro = 145;
Runr = 146;
Samr = 147;
Sara = 148;
Sarb = 149;
Saur = 150;
Sgnw = 151;
Shaw = 152;
Shrd = 153;
Shui = 154;
Sidd = 155;
Sind = 156;
Sinh = 157;
Sogd = 158;
Sogo = 159;
Sora = 160;
Soyo = 161;
Sund = 162;
Sylo = 163;
Syrc = 164;
Syre = 165;
Syrj = 166;
Syrn = 167;
Tagb = 168;
Takr = 169;
Tale = 170;
Talu = 171;
Taml = 172;
Tang = 173;
Tavt = 174;
Telu = 175;
Teng = 176;
Tfng = 177;
Tglg = 178;
Thaa = 179;
Thai = 180;
Tibt = 181;
Tirh = 182;
Ugar = 183;
Vaii = 184;
Visp = 185;
Wara = 186;
Wcho = 187;
Wole = 188;
Xpeo = 189;
Xsux = 190;
Yiii = 191;
Zanb = 192;
Zinh = 193;
Zmth = 194;
Zsye = 195;
Zsym = 196;
Zxxx = 197;
Zyyy = 198;
Zzzz = 199;
}
}
message Location {