yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
/// Root entity for content separation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Channel {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the organization where channel should be created.
    #[prost(string, tag = "2")]
    pub organization_id: ::prost::alloc::string::String,
    /// Channel title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Channel description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// Time when channel was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last channel update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Channel settings.
    #[prost(message, optional, tag = "201")]
    pub settings: ::core::option::Option<ChannelSettings>,
}
/// Channel settings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelSettings {
    /// Advertisement settings.
    #[prost(message, optional, tag = "1")]
    pub advertisement: ::core::option::Option<AdvertisementSettings>,
    /// Referer verification settings
    #[prost(message, optional, tag = "3")]
    pub referer_verification: ::core::option::Option<RefererVerificationSettings>,
}
/// Advertisement settings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdvertisementSettings {
    /// Advertisement provider.
    #[prost(oneof = "advertisement_settings::Provider", tags = "100")]
    pub provider: ::core::option::Option<advertisement_settings::Provider>,
}
/// Nested message and enum types in `AdvertisementSettings`.
pub mod advertisement_settings {
    /// YandexDirect provider settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct YandexDirect {
        /// Enable Partner Ad for Live and VOD content.
        #[prost(bool, tag = "1")]
        pub enable: bool,
        /// Advertisement page ID.
        #[prost(int64, tag = "2")]
        pub page_id: i64,
        /// Advertisement category.
        #[prost(int64, tag = "3")]
        pub category: i64,
    }
    /// Advertisement provider.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Provider {
        #[prost(message, tag = "100")]
        YandexDirect(YandexDirect),
    }
}
/// Referer verification settings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefererVerificationSettings {
    /// Enable verification
    #[prost(bool, tag = "1")]
    pub enable: bool,
    /// List of available domains
    #[prost(string, repeated, tag = "2")]
    pub allowed_domains: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetChannelRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelsRequest {
    /// ID of the organization.
    #[prost(string, tag = "1")]
    pub organization_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "title", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListChannelsResponse {
    /// List of channels for specific organization.
    #[prost(message, repeated, tag = "1")]
    pub channels: ::prost::alloc::vec::Vec<Channel>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateChannelRequest {
    /// ID of the organization.
    #[prost(string, tag = "1")]
    pub organization_id: ::prost::alloc::string::String,
    /// Channel title.
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    /// Channel description.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Channel settings.
    #[prost(message, optional, tag = "201")]
    pub settings: ::core::option::Option<ChannelSettings>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateChannelMetadata {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateChannelRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the channel are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Channel title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Channel description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Channel settings.
    #[prost(message, optional, tag = "201")]
    pub settings: ::core::option::Option<ChannelSettings>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateChannelMetadata {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteChannelRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteChannelMetadata {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteChannelsRequest {
    /// ID of the organization.
    #[prost(string, tag = "1")]
    pub organization_id: ::prost::alloc::string::String,
    /// List of channel IDs.
    #[prost(string, repeated, tag = "2")]
    pub channel_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteChannelsMetadata {
    /// List of channel IDs.
    #[prost(string, repeated, tag = "1")]
    pub channel_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Generated client implementations.
pub mod channel_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Channel management service.
    #[derive(Debug, Clone)]
    pub struct ChannelServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ChannelServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ChannelServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ChannelServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            ChannelServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific channel.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetChannelRequest>,
        ) -> std::result::Result<tonic::Response<super::Channel>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.ChannelService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List channels for organization.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListChannelsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListChannelsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.ChannelService", "List"));
            self.inner.unary(req, path, codec).await
        }
        /// Create channel.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateChannelRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ChannelService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update channel.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateChannelRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ChannelService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete channel.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteChannelRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ChannelService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete channels.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteChannelsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ChannelService",
                        "BatchDelete",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List existing access bindings for the specified channel.
        pub async fn list_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::access::ListAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::access::ListAccessBindingsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/ListAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ChannelService",
                        "ListAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Set access bindings for the channel.
        pub async fn set_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::access::SetAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/SetAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ChannelService",
                        "SetAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update access bindings for the specified channel.
        pub async fn update_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::access::UpdateAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ChannelService/UpdateAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ChannelService",
                        "UpdateAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Episode {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the stream. Optional, empty if the episode is linked to the line
    #[prost(string, tag = "2")]
    pub stream_id: ::prost::alloc::string::String,
    /// ID of the line. Optional, empty if the episode is linked to the stream
    #[prost(string, tag = "3")]
    pub line_id: ::prost::alloc::string::String,
    /// Episode title.
    #[prost(string, tag = "4")]
    pub title: ::prost::alloc::string::String,
    /// Episode description.
    #[prost(string, tag = "5")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "6")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Episode start time.
    #[prost(message, optional, tag = "7")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Episode finish time.
    #[prost(message, optional, tag = "8")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Enables episode DVR mode.
    /// Determines how many last seconds of the stream are available for watching.
    ///
    /// Possible values:
    ///   * `0`: infinite dvr size, the full length of the stream allowed to display
    ///   * `>0`: size of dvr window in seconds, the minimum value is 30s
    #[prost(int64, tag = "9")]
    pub dvr_seconds: i64,
    #[prost(enumeration = "episode::VisibilityStatus", tag = "10")]
    pub visibility_status: i32,
    /// Time when episode was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last episode update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Episode access rights.
    #[prost(oneof = "episode::AccessRights", tags = "1000, 1002, 1003")]
    pub access_rights: ::core::option::Option<episode::AccessRights>,
}
/// Nested message and enum types in `Episode`.
pub mod episode {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum VisibilityStatus {
        Unspecified = 0,
        Published = 1,
        Unpublished = 2,
    }
    impl VisibilityStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                VisibilityStatus::Unspecified => "VISIBILITY_STATUS_UNSPECIFIED",
                VisibilityStatus::Published => "PUBLISHED",
                VisibilityStatus::Unpublished => "UNPUBLISHED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "VISIBILITY_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "PUBLISHED" => Some(Self::Published),
                "UNPUBLISHED" => Some(Self::Unpublished),
                _ => None,
            }
        }
    }
    /// Episode access rights.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Episode is available to everyone.
        #[prost(message, tag = "1000")]
        PublicAccess(super::EpisodePublicAccessRights),
        /// Checking access rights using the authorization system.
        #[prost(message, tag = "1002")]
        AuthSystemAccess(super::EpisodeAuthSystemAccessRights),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "1003")]
        SignUrlAccess(super::EpisodeSignUrlAccessRights),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodePublicAccessRights {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodeAuthSystemAccessRights {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodeSignUrlAccessRights {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Manifest {
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
    #[prost(enumeration = "manifest::ManifestType", tag = "2")]
    pub r#type: i32,
}
/// Nested message and enum types in `Manifest`.
pub mod manifest {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ManifestType {
        Unspecified = 0,
        Dash = 1,
        Hls = 2,
    }
    impl ManifestType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                ManifestType::Unspecified => "MANIFEST_TYPE_UNSPECIFIED",
                ManifestType::Dash => "DASH",
                ManifestType::Hls => "HLS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "MANIFEST_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "DASH" => Some(Self::Dash),
                "HLS" => Some(Self::Hls),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEpisodeRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEpisodesRequest {
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
    #[prost(oneof = "list_episodes_request::ParentId", tags = "1, 2")]
    pub parent_id: ::core::option::Option<list_episodes_request::ParentId>,
}
/// Nested message and enum types in `ListEpisodesRequest`.
pub mod list_episodes_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ParentId {
        /// ID of the stream.
        #[prost(string, tag = "1")]
        StreamId(::prost::alloc::string::String),
        /// ID of the line.
        #[prost(string, tag = "2")]
        LineId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEpisodesResponse {
    /// List of episodes for specific parent_id.
    #[prost(message, repeated, tag = "1")]
    pub episodes: ::prost::alloc::vec::Vec<Episode>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetEpisodesRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of requested episode IDs.
    #[prost(string, repeated, tag = "2")]
    pub episode_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetEpisodesResponse {
    /// List of episodes for specific channel.
    #[prost(message, repeated, tag = "1")]
    pub episodes: ::prost::alloc::vec::Vec<Episode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEpisodeRequest {
    /// Episode title.
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    /// Episode description.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "4")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Episode start time.
    #[prost(message, optional, tag = "5")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Episode finish time.
    #[prost(message, optional, tag = "6")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Enables episode DVR mode.
    /// Determines how many last seconds of the stream are available.
    ///
    /// Possible values:
    ///   * `0`: infinite dvr size, the full length of the stream allowed to display
    ///   * `>0`: size of dvr window in seconds, the minimum value is 30s
    #[prost(int64, tag = "7")]
    pub dvr_seconds: i64,
    #[prost(oneof = "create_episode_request::ParentId", tags = "100, 101")]
    pub parent_id: ::core::option::Option<create_episode_request::ParentId>,
    /// Episode access rights.
    #[prost(oneof = "create_episode_request::AccessRights", tags = "1000, 1002, 1003")]
    pub access_rights: ::core::option::Option<create_episode_request::AccessRights>,
}
/// Nested message and enum types in `CreateEpisodeRequest`.
pub mod create_episode_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ParentId {
        /// ID of the stream.
        #[prost(string, tag = "100")]
        StreamId(::prost::alloc::string::String),
        /// ID of the line.
        #[prost(string, tag = "101")]
        LineId(::prost::alloc::string::String),
    }
    /// Episode access rights.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Episode is available to everyone.
        #[prost(message, tag = "1000")]
        PublicAccess(super::EpisodePublicAccessParams),
        /// Checking access rights using the authorization system.
        #[prost(message, tag = "1002")]
        AuthSystemAccess(super::EpisodeAuthSystemAccessParams),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "1003")]
        SignUrlAccess(super::EpisodeSignUrlAccessParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodePublicAccessParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodeAuthSystemAccessParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodeSignUrlAccessParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateEpisodeMetadata {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateEpisodeRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the episode are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Episode title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Episode description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "5")]
    pub thumbnail_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "6")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Episode finish time.
    #[prost(message, optional, tag = "7")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Enables episode DVR mode.
    /// Determines how many last seconds of the stream are available.
    ///
    /// Possible values:
    ///   * `0`: infinite dvr size, the full length of the stream allowed to display
    ///   * `>0`: size of dvr window in seconds, the minimum value is 30s
    #[prost(int64, tag = "8")]
    pub dvr_seconds: i64,
    /// Episode access rights.
    #[prost(oneof = "update_episode_request::AccessRights", tags = "1000, 1002, 1003")]
    pub access_rights: ::core::option::Option<update_episode_request::AccessRights>,
}
/// Nested message and enum types in `UpdateEpisodeRequest`.
pub mod update_episode_request {
    /// Episode access rights.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Episode is available to everyone.
        #[prost(message, tag = "1000")]
        PublicAccess(super::EpisodePublicAccessParams),
        /// Checking access rights using the authorization system.
        #[prost(message, tag = "1002")]
        AuthSystemAccess(super::EpisodeAuthSystemAccessParams),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "1003")]
        SignUrlAccess(super::EpisodeSignUrlAccessParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateEpisodeMetadata {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteEpisodeRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteEpisodeMetadata {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteEpisodesRequest {
    #[prost(string, repeated, tag = "1")]
    pub episode_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(oneof = "batch_delete_episodes_request::Id", tags = "100, 101")]
    pub id: ::core::option::Option<batch_delete_episodes_request::Id>,
}
/// Nested message and enum types in `BatchDeleteEpisodesRequest`.
pub mod batch_delete_episodes_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Id {
        /// ID of the stream.
        #[prost(string, tag = "100")]
        StreamId(::prost::alloc::string::String),
        /// ID of the line.
        #[prost(string, tag = "101")]
        LineId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteEpisodesMetadata {
    #[prost(string, repeated, tag = "1")]
    pub episode_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformEpisodeActionRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
    #[prost(oneof = "perform_episode_action_request::Action", tags = "1002, 1003")]
    pub action: ::core::option::Option<perform_episode_action_request::Action>,
}
/// Nested message and enum types in `PerformEpisodeActionRequest`.
pub mod perform_episode_action_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        #[prost(message, tag = "1002")]
        Publish(super::PublishEpisodeAction),
        #[prost(message, tag = "1003")]
        Unpublish(super::UnpublishEpisodeAction),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublishEpisodeAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnpublishEpisodeAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformEpisodeActionMetadata {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEpisodePlayerUrlRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub params: ::core::option::Option<EpisodePlayerParams>,
    /// Optional field, used to set custom url expiration duration for episodes with sign_url_access
    #[prost(message, optional, tag = "3")]
    pub signed_url_expiration_duration: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpisodePlayerParams {
    /// If true, a player will be muted by default.
    #[prost(bool, tag = "1")]
    pub mute: bool,
    /// If true, playback will start automatically.
    #[prost(bool, tag = "2")]
    pub autoplay: bool,
    /// If true, a player interface will be hidden by default.
    #[prost(bool, tag = "3")]
    pub hidden: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEpisodePlayerUrlResponse {
    /// Direct link to the episode.
    #[prost(string, tag = "1")]
    pub player_url: ::prost::alloc::string::String,
    /// HTML embed code in Iframe format.
    #[prost(string, tag = "2")]
    pub html: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEpisodeManifestsRequest {
    /// ID of the episode.
    #[prost(string, tag = "1")]
    pub episode_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEpisodeManifestsResponse {
    #[prost(message, repeated, tag = "1")]
    pub manifests: ::prost::alloc::vec::Vec<Manifest>,
}
/// Generated client implementations.
pub mod episode_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Episode management service.
    #[derive(Debug, Clone)]
    pub struct EpisodeServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl EpisodeServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> EpisodeServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> EpisodeServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            EpisodeServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific channel.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetEpisodeRequest>,
        ) -> std::result::Result<tonic::Response<super::Episode>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List episodes for stream or line.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListEpisodesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListEpisodesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "List"));
            self.inner.unary(req, path, codec).await
        }
        /// Batch get episodes for channel.
        pub async fn batch_get(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGetEpisodesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGetEpisodesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/BatchGet",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "BatchGet"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create episode.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateEpisodeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update episode.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateEpisodeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete episode.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteEpisodeRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.EpisodeService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete episodes.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteEpisodesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.EpisodeService",
                        "BatchDelete",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Perform an action on the episode.
        pub async fn perform_action(
            &mut self,
            request: impl tonic::IntoRequest<super::PerformEpisodeActionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/PerformAction",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.EpisodeService",
                        "PerformAction",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get player url.
        pub async fn get_player_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GetEpisodePlayerUrlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetEpisodePlayerUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/GetPlayerURL",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.EpisodeService",
                        "GetPlayerURL",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get manifest urls.
        pub async fn get_manifests(
            &mut self,
            request: impl tonic::IntoRequest<super::GetEpisodeManifestsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetEpisodeManifestsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.EpisodeService/GetManifests",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.EpisodeService",
                        "GetManifests",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Entity representing an ordered list of videos or episodes.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Playlist {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the channel to create the playlist in.
    #[prost(string, tag = "2")]
    pub channel_id: ::prost::alloc::string::String,
    /// Playlist title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Playlist description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// List of playlist items.
    #[prost(message, repeated, tag = "5")]
    pub items: ::prost::alloc::vec::Vec<PlaylistItem>,
    /// Time when playlist was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last playlist update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlaylistItem {
    /// Item position (zero-indexed).
    #[prost(int64, tag = "1")]
    pub position: i64,
    #[prost(oneof = "playlist_item::Id", tags = "100, 101")]
    pub id: ::core::option::Option<playlist_item::Id>,
}
/// Nested message and enum types in `PlaylistItem`.
pub mod playlist_item {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Id {
        /// ID of the video.
        #[prost(string, tag = "100")]
        VideoId(::prost::alloc::string::String),
        /// ID of the episode.
        #[prost(string, tag = "101")]
        EpisodeId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPlaylistRequest {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPlaylistsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "title", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListPlaylistsResponse {
    /// List of playlists for specific channel.
    #[prost(message, repeated, tag = "1")]
    pub playlists: ::prost::alloc::vec::Vec<Playlist>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePlaylistRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// Playlist title.
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    /// Playlist description.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// List of playlist items.
    #[prost(message, repeated, tag = "4")]
    pub items: ::prost::alloc::vec::Vec<PlaylistItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePlaylistMetadata {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePlaylistRequest {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the playlist are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Playlist title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Playlist description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// List of playlist items.
    #[prost(message, repeated, tag = "5")]
    pub items: ::prost::alloc::vec::Vec<PlaylistItem>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePlaylistMetadata {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePlaylistRequest {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeletePlaylistMetadata {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeletePlaylistsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of playlist IDs.
    #[prost(string, repeated, tag = "2")]
    pub playlist_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeletePlaylistsMetadata {
    /// List of playlist IDs.
    #[prost(string, repeated, tag = "1")]
    pub playlist_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPlaylistPlayerUrlRequest {
    /// ID of the playlist.
    #[prost(string, tag = "1")]
    pub playlist_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub params: ::core::option::Option<PlaylistPlayerParams>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlaylistPlayerParams {
    /// If true, a player will be muted by default.
    #[prost(bool, tag = "1")]
    pub mute: bool,
    /// If true, playback will start automatically.
    #[prost(bool, tag = "2")]
    pub autoplay: bool,
    /// If true, a player interface will be hidden by default.
    #[prost(bool, tag = "3")]
    pub hidden: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPlaylistPlayerUrlResponse {
    /// Direct link to the playlist.
    #[prost(string, tag = "1")]
    pub player_url: ::prost::alloc::string::String,
    /// HTML embed code in Iframe format.
    #[prost(string, tag = "2")]
    pub html: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod playlist_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Playlist management service.
    #[derive(Debug, Clone)]
    pub struct PlaylistServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl PlaylistServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> PlaylistServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> PlaylistServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            PlaylistServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific playlist.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetPlaylistRequest>,
        ) -> std::result::Result<tonic::Response<super::Playlist>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.PlaylistService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List playlists for a channel.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListPlaylistsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListPlaylistsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.PlaylistService", "List"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create playlist.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreatePlaylistRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.PlaylistService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update playlist.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdatePlaylistRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.PlaylistService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete playlist.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeletePlaylistRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.PlaylistService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete playlists.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeletePlaylistsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.PlaylistService",
                        "BatchDelete",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get player url.
        pub async fn get_player_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GetPlaylistPlayerUrlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetPlaylistPlayerUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.PlaylistService/GetPlayerURL",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.PlaylistService",
                        "GetPlayerURL",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stream {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the channel where the stream was created.
    #[prost(string, tag = "2")]
    pub channel_id: ::prost::alloc::string::String,
    /// ID of the line to which stream is linked.
    #[prost(string, tag = "3")]
    pub line_id: ::prost::alloc::string::String,
    /// Stream title.
    #[prost(string, tag = "4")]
    pub title: ::prost::alloc::string::String,
    /// Stream description.
    #[prost(string, tag = "5")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "6")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Stream status.
    #[prost(enumeration = "stream::StreamStatus", tag = "8")]
    pub status: i32,
    /// Stream start time.
    #[prost(message, optional, tag = "9")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Stream publish time. Time when stream switched to ONAIR status.
    #[prost(message, optional, tag = "10")]
    pub publish_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Stream finish time.
    #[prost(message, optional, tag = "11")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Automatically publish stream when ready.
    /// Switches status from READY to ONAIR.
    #[prost(message, optional, tag = "12")]
    pub auto_publish: ::core::option::Option<bool>,
    /// Time when stream was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last stream update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Stream type.
    #[prost(oneof = "stream::StreamType", tags = "1000, 1001")]
    pub stream_type: ::core::option::Option<stream::StreamType>,
}
/// Nested message and enum types in `Stream`.
pub mod stream {
    /// Stream status.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum StreamStatus {
        /// Stream status unspecified.
        Unspecified = 0,
        /// Stream offline.
        Offline = 1,
        /// Preparing the infrastructure for receiving video signal.
        Preparing = 2,
        /// Everything is ready to launch stream.
        Ready = 3,
        /// Stream onair.
        Onair = 4,
        /// Stream finished.
        Finished = 5,
    }
    impl StreamStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                StreamStatus::Unspecified => "STREAM_STATUS_UNSPECIFIED",
                StreamStatus::Offline => "OFFLINE",
                StreamStatus::Preparing => "PREPARING",
                StreamStatus::Ready => "READY",
                StreamStatus::Onair => "ONAIR",
                StreamStatus::Finished => "FINISHED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STREAM_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "OFFLINE" => Some(Self::Offline),
                "PREPARING" => Some(Self::Preparing),
                "READY" => Some(Self::Ready),
                "ONAIR" => Some(Self::Onair),
                "FINISHED" => Some(Self::Finished),
                _ => None,
            }
        }
    }
    /// Stream type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum StreamType {
        /// On-demand stream. Starts immediately when a signal appears.
        #[prost(message, tag = "1000")]
        OnDemand(super::OnDemand),
        /// Schedule stream. Starts or finished at the specified time.
        #[prost(message, tag = "1001")]
        Schedule(super::Schedule),
    }
}
/// On-demand stream type.
/// This type of streams should be started and finished explicitly.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnDemand {}
/// Schedule stream type.
/// This type of streams start and finish automatically at the specified time.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Schedule {
    #[prost(message, optional, tag = "1")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "2")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Entity that is responsible for the incoming video signal settings.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamLine {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the channel to which this stream line belongs.
    #[prost(string, tag = "2")]
    pub channel_id: ::prost::alloc::string::String,
    /// Title of the stream line.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// ID of the thumbnail image associated with the stream line..
    #[prost(string, tag = "4")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Time when the stream line was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time when the stream line was last updated.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Specifies the input type and settings for the video signal source.
    #[prost(oneof = "stream_line::InputType", tags = "1000, 1002")]
    pub input_type: ::core::option::Option<stream_line::InputType>,
    /// Specifies the control type of the stream line.
    #[prost(oneof = "stream_line::LineType", tags = "2000, 2001")]
    pub line_type: ::core::option::Option<stream_line::LineType>,
}
/// Nested message and enum types in `StreamLine`.
pub mod stream_line {
    /// Specifies the input type and settings for the video signal source.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum InputType {
        /// Real-Time Messaging Protocol (RTMP) push input settings.
        #[prost(message, tag = "1000")]
        RtmpPush(super::RtmpPushInput),
        /// Real-Time Messaging Protocol (RTMP) pull input type.
        #[prost(message, tag = "1002")]
        RtmpPull(super::RtmpPullInput),
    }
    /// Specifies the control type of the stream line.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum LineType {
        /// Manual control of stream.
        #[prost(message, tag = "2000")]
        ManualLine(super::ManualLine),
        /// Automatic control of stream.
        #[prost(message, tag = "2001")]
        AutoLine(super::AutoLine),
    }
}
/// Represents the stream key used for pushing video streams.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PushStreamKey {
    /// The unique stream key.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
}
/// Settings for an RTMP (Real-Time Messaging Protocol) push input.
/// Used when the video stream is pushed to an RTMP server.
/// @see <https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol>
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RtmpPushInput {
    /// RTMP server url.
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
/// Settings for an RTMP pull input.
/// Used when the service pulls the video stream from an RTMP source.
/// @see <https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol>
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RtmpPullInput {
    /// RTMP url for receiving video signal.
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
/// Represents a manual line type where the stream control is handled manually.
/// This means that stream start/stop actions are performed by the user.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManualLine {}
/// Represents an automatic line type where the stream control is handled automatically.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoLine {
    /// The status of the automatic line.
    #[prost(enumeration = "auto_line::AutoLineStatus", tag = "1")]
    pub status: i32,
}
/// Nested message and enum types in `AutoLine`.
pub mod auto_line {
    /// Enum representing the status of an automatic stream line.
    /// Indicates whether the automatic line is active or deactivated.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AutoLineStatus {
        /// Auto line status unspecified.
        Unspecified = 0,
        /// The automatic line is deactivated and not currently active.
        Deactivated = 1,
        /// The automatic line is active and operational.
        Active = 2,
    }
    impl AutoLineStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                AutoLineStatus::Unspecified => "AUTO_LINE_STATUS_UNSPECIFIED",
                AutoLineStatus::Deactivated => "DEACTIVATED",
                AutoLineStatus::Active => "ACTIVE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "AUTO_LINE_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "DEACTIVATED" => Some(Self::Deactivated),
                "ACTIVE" => Some(Self::Active),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStreamLineRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStreamLinesRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "title", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStreamLinesResponse {
    /// List of lines for channel.
    #[prost(message, repeated, tag = "1")]
    pub stream_lines: ::prost::alloc::vec::Vec<StreamLine>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetStreamLinesRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of requested stream line IDs.
    #[prost(string, repeated, tag = "2")]
    pub stream_line_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetStreamLinesResponse {
    /// List of lines for specific channel.
    #[prost(message, repeated, tag = "1")]
    pub stream_lines: ::prost::alloc::vec::Vec<StreamLine>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateStreamLineRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// Line title.
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "3")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Video signal settings.
    #[prost(oneof = "create_stream_line_request::InputParams", tags = "1000, 1002")]
    pub input_params: ::core::option::Option<create_stream_line_request::InputParams>,
    /// Line type.
    #[prost(oneof = "create_stream_line_request::LineTypeParams", tags = "2000, 2001")]
    pub line_type_params: ::core::option::Option<
        create_stream_line_request::LineTypeParams,
    >,
}
/// Nested message and enum types in `CreateStreamLineRequest`.
pub mod create_stream_line_request {
    /// Video signal settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum InputParams {
        /// RTMP push input type.
        #[prost(message, tag = "1000")]
        RtmpPush(super::RtmpPushParams),
        /// RTMP pull input type.
        #[prost(message, tag = "1002")]
        RtmpPull(super::RtmpPullParams),
    }
    /// Line type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum LineTypeParams {
        /// Manual control of stream.
        #[prost(message, tag = "2000")]
        ManualLine(super::ManualLineParams),
        /// Automatic control of stream.
        #[prost(message, tag = "2001")]
        AutoLine(super::AutoLineParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateStreamLineMetadata {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamLineRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the line are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Line title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "4")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Video signal settings.
    #[prost(oneof = "update_stream_line_request::InputParams", tags = "1000, 1002")]
    pub input_params: ::core::option::Option<update_stream_line_request::InputParams>,
}
/// Nested message and enum types in `UpdateStreamLineRequest`.
pub mod update_stream_line_request {
    /// Video signal settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum InputParams {
        /// RTMP push input type.
        #[prost(message, tag = "1000")]
        RtmpPush(super::RtmpPushParams),
        /// RTMP pull input type.
        #[prost(message, tag = "1002")]
        RtmpPull(super::RtmpPullParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamLineMetadata {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteStreamLineRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteStreamLineMetadata {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteStreamLinesRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of line IDs.
    #[prost(string, repeated, tag = "2")]
    pub stream_line_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteStreamLinesMetadata {
    /// List of line IDs.
    #[prost(string, repeated, tag = "1")]
    pub stream_line_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformLineActionRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
    #[prost(oneof = "perform_line_action_request::Action", tags = "1000, 1001")]
    pub action: ::core::option::Option<perform_line_action_request::Action>,
}
/// Nested message and enum types in `PerformLineActionRequest`.
pub mod perform_line_action_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        #[prost(message, tag = "1000")]
        Activate(super::ActivateAction),
        #[prost(message, tag = "1001")]
        Deactivate(super::DeactivateAction),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformLineActionMetadata {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RtmpPushParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RtmpPullParams {
    /// URL of a RTMP streaming server.
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManualLineParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoLineParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivateAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeactivateAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStreamKeyRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamKeyRequest {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamKeyMetadata {
    /// ID of the line.
    #[prost(string, tag = "1")]
    pub stream_line_id: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod stream_line_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Stream line management service.
    #[derive(Debug, Clone)]
    pub struct StreamLineServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl StreamLineServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> StreamLineServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> StreamLineServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            StreamLineServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific stream line.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetStreamLineRequest>,
        ) -> std::result::Result<tonic::Response<super::StreamLine>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamLineService", "Get"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List lines for channel.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListStreamLinesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListStreamLinesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamLineService", "List"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch get lines for channel.
        pub async fn batch_get(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGetStreamLinesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGetStreamLinesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/BatchGet",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamLineService",
                        "BatchGet",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create stream line.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateStreamLineRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamLineService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update stream line.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateStreamLineRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamLineService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete stream line.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteStreamLineRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamLineService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete stream lines.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteStreamLinesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamLineService",
                        "BatchDelete",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Perform an action on the line.
        pub async fn perform_action(
            &mut self,
            request: impl tonic::IntoRequest<super::PerformLineActionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/PerformAction",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamLineService",
                        "PerformAction",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get unique stream key.
        pub async fn get_stream_key(
            &mut self,
            request: impl tonic::IntoRequest<super::GetStreamKeyRequest>,
        ) -> std::result::Result<tonic::Response<super::PushStreamKey>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/GetStreamKey",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamLineService",
                        "GetStreamKey",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update stream key.
        pub async fn update_stream_key(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateStreamKeyRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamLineService/UpdateStreamKey",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamLineService",
                        "UpdateStreamKey",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStreamRequest {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStreamsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "title", "startTime", "finishTime", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title", "lineId", "status"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStreamsResponse {
    /// List of streams for channel.
    #[prost(message, repeated, tag = "1")]
    pub streams: ::prost::alloc::vec::Vec<Stream>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetStreamsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of requested stream IDs.
    #[prost(string, repeated, tag = "2")]
    pub stream_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetStreamsResponse {
    /// List of streams for specific channel.
    #[prost(message, repeated, tag = "1")]
    pub streams: ::prost::alloc::vec::Vec<Stream>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateStreamRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// ID of the line.
    #[prost(string, tag = "2")]
    pub line_id: ::prost::alloc::string::String,
    /// Stream title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Stream description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "5")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Automatically publish stream when ready.
    /// Switches status from READY to ONAIR.
    #[prost(message, optional, tag = "6")]
    pub auto_publish: ::core::option::Option<bool>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Stream type.
    #[prost(oneof = "create_stream_request::StreamType", tags = "1000, 1001")]
    pub stream_type: ::core::option::Option<create_stream_request::StreamType>,
}
/// Nested message and enum types in `CreateStreamRequest`.
pub mod create_stream_request {
    /// Stream type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum StreamType {
        /// On-demand stream. Starts immediately when a signal appears.
        #[prost(message, tag = "1000")]
        OnDemand(super::OnDemandParams),
        /// Schedule stream. Starts or finishes at the specified time.
        #[prost(message, tag = "1001")]
        Schedule(super::ScheduleParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnDemandParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScheduleParams {
    #[prost(message, optional, tag = "1")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "2")]
    pub finish_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateStreamMetadata {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamRequest {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the stream are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// ID of the line.
    #[prost(string, tag = "3")]
    pub line_id: ::prost::alloc::string::String,
    /// Stream title.
    #[prost(string, tag = "4")]
    pub title: ::prost::alloc::string::String,
    /// Stream description.
    #[prost(string, tag = "5")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "6")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Automatically publish stream when ready.
    /// Switches status from READY to ONAIR.
    #[prost(message, optional, tag = "7")]
    pub auto_publish: ::core::option::Option<bool>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Stream type.
    #[prost(oneof = "update_stream_request::StreamType", tags = "1000, 1001")]
    pub stream_type: ::core::option::Option<update_stream_request::StreamType>,
}
/// Nested message and enum types in `UpdateStreamRequest`.
pub mod update_stream_request {
    /// Stream type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum StreamType {
        /// On demand stream. It starts immediately when a signal appears.
        #[prost(message, tag = "1000")]
        OnDemand(super::OnDemandParams),
        /// Schedule stream. Determines when to start receiving the signal or finish time.
        #[prost(message, tag = "1001")]
        Schedule(super::ScheduleParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateStreamMetadata {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteStreamRequest {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteStreamMetadata {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteStreamsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of stream IDs.
    #[prost(string, repeated, tag = "2")]
    pub stream_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteStreamsMetadata {
    /// List of stream IDs.
    #[prost(string, repeated, tag = "1")]
    pub stream_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformStreamActionRequest {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
    #[prost(oneof = "perform_stream_action_request::Action", tags = "1000, 1002")]
    pub action: ::core::option::Option<perform_stream_action_request::Action>,
}
/// Nested message and enum types in `PerformStreamActionRequest`.
pub mod perform_stream_action_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        #[prost(message, tag = "1000")]
        Publish(super::PublishAction),
        #[prost(message, tag = "1002")]
        Stop(super::StopAction),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublishAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformStreamActionMetadata {
    /// ID of the stream.
    #[prost(string, tag = "1")]
    pub stream_id: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod stream_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Stream management service.
    #[derive(Debug, Clone)]
    pub struct StreamServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl StreamServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> StreamServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> StreamServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            StreamServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific stream.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetStreamRequest>,
        ) -> std::result::Result<tonic::Response<super::Stream>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.StreamService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List streams for channel.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListStreamsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListStreamsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.StreamService", "List"));
            self.inner.unary(req, path, codec).await
        }
        /// Batch get streams for channel.
        pub async fn batch_get(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGetStreamsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGetStreamsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/BatchGet",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamService", "BatchGet"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create stream.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateStreamRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update stream.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateStreamRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete stream.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteStreamRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete streams.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteStreamsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.StreamService", "BatchDelete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Perform an action on the stream.
        pub async fn perform_action(
            &mut self,
            request: impl tonic::IntoRequest<super::PerformStreamActionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.StreamService/PerformAction",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.StreamService",
                        "PerformAction",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Subtitle {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Subtitle language in any of the following formats:
    /// * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3
    /// * two-letter code according to ISO 639-1
    #[prost(string, tag = "2")]
    pub language: ::prost::alloc::string::String,
    /// Subtitle caption to be displayed on screen during video playback.
    #[prost(string, tag = "3")]
    pub label: ::prost::alloc::string::String,
    /// Subtitle status.
    #[prost(enumeration = "subtitle::SubtitleStatus", tag = "4")]
    pub status: i32,
    /// Source type.
    #[prost(enumeration = "subtitle::SubtitleSourceType", tag = "6")]
    pub source_type: i32,
    /// Subtitle filename.
    #[prost(string, tag = "5")]
    pub filename: ::prost::alloc::string::String,
    /// Time when subtitle was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last subtitle update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(oneof = "subtitle::ParentId", tags = "1000")]
    pub parent_id: ::core::option::Option<subtitle::ParentId>,
}
/// Nested message and enum types in `Subtitle`.
pub mod subtitle {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum SubtitleStatus {
        /// Subtitle status unspecified.
        Unspecified = 0,
        /// Waiting for all the bytes to be loaded.
        WaitUploading = 1,
        /// Uploading is complete.
        Uploaded = 2,
    }
    impl SubtitleStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                SubtitleStatus::Unspecified => "SUBTITLE_STATUS_UNSPECIFIED",
                SubtitleStatus::WaitUploading => "WAIT_UPLOADING",
                SubtitleStatus::Uploaded => "UPLOADED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SUBTITLE_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "WAIT_UPLOADING" => Some(Self::WaitUploading),
                "UPLOADED" => Some(Self::Uploaded),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum SubtitleSourceType {
        /// Subtitle source type unspecified.
        Unspecified = 0,
        /// Manually uploaded subtitle.
        Manual = 1,
        /// Automatically generated subtitle.
        Generated = 2,
    }
    impl SubtitleSourceType {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                SubtitleSourceType::Unspecified => "SUBTITLE_SOURCE_TYPE_UNSPECIFIED",
                SubtitleSourceType::Manual => "MANUAL",
                SubtitleSourceType::Generated => "GENERATED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SUBTITLE_SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "MANUAL" => Some(Self::Manual),
                "GENERATED" => Some(Self::Generated),
                _ => None,
            }
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ParentId {
        /// ID of the video.
        #[prost(string, tag = "1000")]
        VideoId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSubtitleRequest {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub subtitle_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSubtitlesRequest {
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    #[prost(oneof = "list_subtitles_request::ParentId", tags = "1000")]
    pub parent_id: ::core::option::Option<list_subtitles_request::ParentId>,
}
/// Nested message and enum types in `ListSubtitlesRequest`.
pub mod list_subtitles_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ParentId {
        /// ID of the video.
        #[prost(string, tag = "1000")]
        VideoId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSubtitlesResponse {
    #[prost(message, repeated, tag = "1")]
    pub subtitles: ::prost::alloc::vec::Vec<Subtitle>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSubtitleRequest {
    /// Subtitle language in any of the following formats:
    /// * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3
    /// * two-letter code according to ISO 639-1
    #[prost(string, tag = "1")]
    pub language: ::prost::alloc::string::String,
    /// Contains the subtitle label (or title) that will be displayed on screen during video playback.
    /// Should provide a concise and accurate representation of the spoken content.
    /// If not provided, it will be auto-generated based on the specified language.
    #[prost(string, tag = "2")]
    pub label: ::prost::alloc::string::String,
    #[prost(oneof = "create_subtitle_request::ParentId", tags = "1000")]
    pub parent_id: ::core::option::Option<create_subtitle_request::ParentId>,
    /// Source type.
    #[prost(oneof = "create_subtitle_request::Source", tags = "1100")]
    pub source: ::core::option::Option<create_subtitle_request::Source>,
}
/// Nested message and enum types in `CreateSubtitleRequest`.
pub mod create_subtitle_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ParentId {
        /// ID of the video.
        #[prost(string, tag = "1000")]
        VideoId(::prost::alloc::string::String),
    }
    /// Source type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Source {
        /// Upload subtitle.
        #[prost(message, tag = "1100")]
        Upload(super::SubtitleUploadParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubtitleUploadParams {
    #[prost(string, tag = "1")]
    pub filename: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSubtitleMetadata {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub subtitle_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateSubtitleUploadUrlRequest {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub subtitle_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateSubtitleUploadUrlResponse {
    /// Upload url.
    #[prost(string, tag = "1")]
    pub upload_url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSubtitleRequest {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub subtitle_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSubtitleMetadata {
    /// ID of the subtitle.
    #[prost(string, tag = "1")]
    pub subtitle_id: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod subtitle_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Subtitle management service.
    #[derive(Debug, Clone)]
    pub struct SubtitleServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl SubtitleServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> SubtitleServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> SubtitleServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            SubtitleServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get a specific subtitle.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetSubtitleRequest>,
        ) -> std::result::Result<tonic::Response<super::Subtitle>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.SubtitleService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.SubtitleService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List subtitles.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListSubtitlesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListSubtitlesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.SubtitleService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.SubtitleService", "List"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create a new subtitle.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateSubtitleRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.SubtitleService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.SubtitleService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Generate an upload URL to add a new subtitle file.
        pub async fn generate_upload_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GenerateSubtitleUploadUrlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GenerateSubtitleUploadUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.SubtitleService/GenerateUploadURL",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.SubtitleService",
                        "GenerateUploadURL",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete a specific subtitle.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteSubtitleRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.SubtitleService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.SubtitleService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Thumbnail {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the channel where the thumbnail was created.
    #[prost(string, tag = "2")]
    pub channel_id: ::prost::alloc::string::String,
    /// Time when thumbnail was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetThumbnailRequest {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListThumbnailRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListThumbnailResponse {
    /// List of thumbnails.
    #[prost(message, repeated, tag = "1")]
    pub thumbnails: ::prost::alloc::vec::Vec<Thumbnail>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateThumbnailRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateThumbnailMetadata {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGenerateDownloadUrLsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of thumbnails IDs.
    #[prost(string, repeated, tag = "2")]
    pub thumbnail_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGenerateDownloadUrLsResponse {
    /// List of download urls.
    #[prost(message, repeated, tag = "1")]
    pub download_urls: ::prost::alloc::vec::Vec<ThumbnailDownloadUrl>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThumbnailDownloadUrl {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Original download url.
    #[prost(string, tag = "2")]
    pub original_url: ::prost::alloc::string::String,
    /// List of download urls, one per each available image size.
    #[prost(message, repeated, tag = "3")]
    pub scaled_urls: ::prost::alloc::vec::Vec<thumbnail_download_url::ScaledUrl>,
}
/// Nested message and enum types in `ThumbnailDownloadURL`.
pub mod thumbnail_download_url {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ScaledUrl {
        /// Download url.
        #[prost(string, tag = "1")]
        pub url: ::prost::alloc::string::String,
        /// Maximum width of the rectangle to inscribe the thumbnail into.
        #[prost(int64, tag = "2")]
        pub max_width: i64,
        /// Maximum height of the rectangle to inscribe the thumbnail into.
        #[prost(int64, tag = "3")]
        pub max_height: i64,
        /// Image format.
        #[prost(enumeration = "ImageFormat", tag = "4")]
        pub image_format: i32,
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ImageFormat {
        /// Image format unspecified.
        Unspecified = 0,
        /// JPEG image format.
        Jpeg = 1,
        /// WebP image format.
        Webp = 2,
    }
    impl ImageFormat {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                ImageFormat::Unspecified => "IMAGE_FORMAT_UNSPECIFIED",
                ImageFormat::Jpeg => "JPEG",
                ImageFormat::Webp => "WEBP",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "IMAGE_FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
                "JPEG" => Some(Self::Jpeg),
                "WEBP" => Some(Self::Webp),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateThumbnailUploadUrlRequest {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateThumbnailUploadUrlResponse {
    /// Upload url.
    #[prost(string, tag = "1")]
    pub upload_url: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteThumbnailRequest {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteThumbnailMetadata {
    /// ID of the thumbnail.
    #[prost(string, tag = "1")]
    pub thumbnail_id: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod thumbnail_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Thumbnail management service.
    #[derive(Debug, Clone)]
    pub struct ThumbnailServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ThumbnailServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ThumbnailServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ThumbnailServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            ThumbnailServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific thumbnail.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetThumbnailRequest>,
        ) -> std::result::Result<tonic::Response<super::Thumbnail>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ThumbnailService", "Get"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List thumbnails for channel.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListThumbnailRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListThumbnailResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ThumbnailService", "List"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create thumbnail.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateThumbnailRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ThumbnailService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Generate urls for downloading images.
        pub async fn batch_generate_download_ur_ls(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGenerateDownloadUrLsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGenerateDownloadUrLsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/BatchGenerateDownloadURLs",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ThumbnailService",
                        "BatchGenerateDownloadURLs",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Generate url for uploading an image.
        pub async fn generate_upload_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GenerateThumbnailUploadUrlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GenerateThumbnailUploadUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/GenerateUploadURL",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.ThumbnailService",
                        "GenerateUploadURL",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete thumbnail.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteThumbnailRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.ThumbnailService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.ThumbnailService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Video {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the channel where the video was created.
    #[prost(string, tag = "2")]
    pub channel_id: ::prost::alloc::string::String,
    /// Video title displayed to users.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Detailed description of the video.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// ID of the video's thumbnail image.
    #[prost(string, tag = "5")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Video status.
    #[prost(enumeration = "video::VideoStatus", tag = "6")]
    pub status: i32,
    /// Error message describing the reason for video processing failure, if any.
    #[prost(string, tag = "18")]
    pub error_message: ::prost::alloc::string::String,
    /// Visibility status of the video.
    #[prost(enumeration = "video::VisibilityStatus", tag = "9")]
    pub visibility_status: i32,
    /// Video duration. Optional, may be empty until the transcoding result is ready.
    #[prost(message, optional, tag = "8")]
    pub duration: ::core::option::Option<::prost_types::Duration>,
    /// Auto-transcoding setting.
    /// Set ENABLE to automatically initiate transcoding after upload,
    /// or DISABLE for manual initiation via the Transcode() method.
    #[prost(enumeration = "AutoTranscode", tag = "11")]
    pub auto_transcode: i32,
    /// Enable advertisement for this video.
    /// Default: true.
    /// Set explicitly to false to disable advertisements for a specific video.
    #[prost(message, optional, tag = "17")]
    pub enable_ad: ::core::option::Option<bool>,
    /// List of IDs defining the active subtitles for the video.
    #[prost(string, repeated, tag = "12")]
    pub subtitle_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Additional video processing features and their results.
    #[prost(message, optional, tag = "13")]
    pub features: ::core::option::Option<VideoFeatures>,
    /// Time when video was created.
    #[prost(message, optional, tag = "100")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Time of last video update.
    #[prost(message, optional, tag = "101")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Video upload source definition (one source variant must be chosen).
    #[prost(oneof = "video::Source", tags = "1000")]
    pub source: ::core::option::Option<video::Source>,
    /// Video access permission settings.
    #[prost(oneof = "video::AccessRights", tags = "2000, 2003")]
    pub access_rights: ::core::option::Option<video::AccessRights>,
}
/// Nested message and enum types in `Video`.
pub mod video {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum VideoStatus {
        /// Video status unspecified.
        Unspecified = 0,
        /// Waiting for all the bytes to be loaded.
        WaitUploading = 1,
        /// Fully uploaded, ready to be transcoded.
        Uploaded = 2,
        /// Video is being processed.
        Processing = 4,
        /// Successfully processed and ready for use.
        Ready = 5,
        /// Video processing has failed.
        Error = 7,
    }
    impl VideoStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                VideoStatus::Unspecified => "VIDEO_STATUS_UNSPECIFIED",
                VideoStatus::WaitUploading => "WAIT_UPLOADING",
                VideoStatus::Uploaded => "UPLOADED",
                VideoStatus::Processing => "PROCESSING",
                VideoStatus::Ready => "READY",
                VideoStatus::Error => "ERROR",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "VIDEO_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "WAIT_UPLOADING" => Some(Self::WaitUploading),
                "UPLOADED" => Some(Self::Uploaded),
                "PROCESSING" => Some(Self::Processing),
                "READY" => Some(Self::Ready),
                "ERROR" => Some(Self::Error),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum VisibilityStatus {
        /// Visibility status unspecified.
        Unspecified = 0,
        /// Video published and available for public viewing.
        Published = 1,
        /// Video unpublished, available only to administrators.
        Unpublished = 2,
    }
    impl VisibilityStatus {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                VisibilityStatus::Unspecified => "VISIBILITY_STATUS_UNSPECIFIED",
                VisibilityStatus::Published => "PUBLISHED",
                VisibilityStatus::Unpublished => "UNPUBLISHED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "VISIBILITY_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "PUBLISHED" => Some(Self::Published),
                "UNPUBLISHED" => Some(Self::Unpublished),
                _ => None,
            }
        }
    }
    /// Video upload source definition (one source variant must be chosen).
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Source {
        /// Upload video using the tus protocol.
        #[prost(message, tag = "1000")]
        Tusd(super::VideoTusdSource),
    }
    /// Video access permission settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Publicly accessible video available for viewing by anyone with the direct link.
        /// No additional authorization or access control is applied.
        #[prost(message, tag = "2000")]
        PublicAccess(super::VideoPublicAccessRights),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "2003")]
        SignUrlAccess(super::VideoSignUrlAccessRights),
    }
}
/// Video upload source via tus protocol.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoTusdSource {
    /// URL for uploading video via the tus protocol.
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
    /// Size of the uploaded file, in bytes.
    #[prost(int64, tag = "2")]
    pub file_size: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoPublicAccessRights {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoSignUrlAccessRights {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoFeatures {
    /// Summarization result.
    #[prost(message, optional, tag = "1")]
    pub summary: ::core::option::Option<video_features::Summary>,
}
/// Nested message and enum types in `VideoFeatures`.
pub mod video_features {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Summary {
        #[prost(enumeration = "FeatureResult", tag = "1")]
        pub result: i32,
        #[prost(message, repeated, tag = "3")]
        pub urls: ::prost::alloc::vec::Vec<summary::SummaryUrl>,
    }
    /// Nested message and enum types in `Summary`.
    pub mod summary {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct SummaryUrl {
            #[prost(string, tag = "1")]
            pub url: ::prost::alloc::string::String,
            /// Input audio track index (one-based).
            #[prost(int64, tag = "2")]
            pub track_index: i64,
            /// Source track language (three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3).
            /// Either provided in transcoding settings earlier or automatically deduced.
            #[prost(string, tag = "3")]
            pub src_lang: ::prost::alloc::string::String,
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum FeatureResult {
        Unspecified = 0,
        /// Feature has not been requested.
        NotRequested = 1,
        /// Feature is being processed.
        Processing = 2,
        /// Feature processing completed successfully.
        Success = 3,
        /// Feature processing has failed.
        Failed = 4,
    }
    impl FeatureResult {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                FeatureResult::Unspecified => "FEATURE_RESULT_UNSPECIFIED",
                FeatureResult::NotRequested => "NOT_REQUESTED",
                FeatureResult::Processing => "PROCESSING",
                FeatureResult::Success => "SUCCESS",
                FeatureResult::Failed => "FAILED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "FEATURE_RESULT_UNSPECIFIED" => Some(Self::Unspecified),
                "NOT_REQUESTED" => Some(Self::NotRequested),
                "PROCESSING" => Some(Self::Processing),
                "SUCCESS" => Some(Self::Success),
                "FAILED" => Some(Self::Failed),
                _ => None,
            }
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AutoTranscode {
    /// Unspecified auto transcoding value.
    Unspecified = 0,
    /// Enable auto transcoding.
    Enable = 1,
    /// Disable auto transcoding.
    Disable = 2,
}
impl AutoTranscode {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            AutoTranscode::Unspecified => "AUTO_TRANSCODE_UNSPECIFIED",
            AutoTranscode::Enable => "ENABLE",
            AutoTranscode::Disable => "DISABLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "AUTO_TRANSCODE_UNSPECIFIED" => Some(Self::Unspecified),
            "ENABLE" => Some(Self::Enable),
            "DISABLE" => Some(Self::Disable),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVideoRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVideoRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// The maximum number of the results per page to return.
    /// Default value: 100.
    #[prost(int64, tag = "100")]
    pub page_size: i64,
    /// Page token for getting the next page of the result.
    #[prost(string, tag = "101")]
    pub page_token: ::prost::alloc::string::String,
    /// By which column the listing should be ordered and in which direction,
    /// format is "<field> <order>" (e.g. "createdAt desc").
    /// Default: "id asc".
    /// Possible fields: ["id", "title", "createdAt", "updatedAt"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "102")]
    pub order_by: ::prost::alloc::string::String,
    /// Filter expression that filters resources listed in the response.
    /// Expressions are composed of terms connected by logic operators.
    /// If value contains spaces or quotes,
    /// it should be in quotes (`'` or `"`) with the inner quotes being backslash escaped.
    /// Example: "key1='value' AND key2='value'".
    /// Supported operators: ["AND", "OR"].
    /// Supported fields: ["id", "title", "status", "visibilityStatus"].
    /// Both snake_case and camelCase are supported for fields.
    #[prost(string, tag = "103")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVideoResponse {
    #[prost(message, repeated, tag = "1")]
    pub videos: ::prost::alloc::vec::Vec<Video>,
    /// Token for getting the next page.
    #[prost(string, tag = "100")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetVideosRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of requested video IDs.
    #[prost(string, repeated, tag = "2")]
    pub video_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetVideosResponse {
    /// List of videos for channel.
    #[prost(message, repeated, tag = "1")]
    pub videos: ::prost::alloc::vec::Vec<Video>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVideoRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// Video title.
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    /// Video description.
    #[prost(string, tag = "3")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "4")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Auto start transcoding.
    #[prost(enumeration = "AutoTranscode", tag = "5")]
    pub auto_transcode: i32,
    /// Automatically publish video after transcoding.
    /// Switches visibility status to PUBLISHED.
    #[prost(message, optional, tag = "7")]
    pub auto_publish: ::core::option::Option<bool>,
    /// Enable advertisement for this video.
    /// Default: true.
    /// Set explicitly to false to disable advertisements for a specific video.
    #[prost(message, optional, tag = "8")]
    pub enable_ad: ::core::option::Option<bool>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Source type.
    #[prost(oneof = "create_video_request::Source", tags = "1000")]
    pub source: ::core::option::Option<create_video_request::Source>,
    /// Video access permission settings.
    #[prost(oneof = "create_video_request::AccessRights", tags = "2000, 2003")]
    pub access_rights: ::core::option::Option<create_video_request::AccessRights>,
}
/// Nested message and enum types in `CreateVideoRequest`.
pub mod create_video_request {
    /// Source type.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Source {
        /// Upload video using the tus protocol.
        #[prost(message, tag = "1000")]
        Tusd(super::VideoTusdParams),
    }
    /// Video access permission settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Publicly accessible video available for viewing by anyone with the direct link.
        /// No additional authorization or access control is applied.
        #[prost(message, tag = "2000")]
        PublicAccess(super::VideoPublicAccessParams),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "2003")]
        SignUrlAccess(super::VideoSignUrlAccessParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoTusdParams {
    /// File size.
    #[prost(int64, tag = "1")]
    pub file_size: i64,
    /// File name.
    #[prost(string, tag = "2")]
    pub file_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoPublicAccessParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoSignUrlAccessParams {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVideoMetadata {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateVideoRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the video are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Video title.
    #[prost(string, tag = "3")]
    pub title: ::prost::alloc::string::String,
    /// Video description.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// ID of the thumbnail.
    #[prost(string, tag = "5")]
    pub thumbnail_id: ::prost::alloc::string::String,
    /// Auto start transcoding.
    #[prost(enumeration = "AutoTranscode", tag = "6")]
    pub auto_transcode: i32,
    /// Enable advertisement for this video.
    /// Default: true.
    /// Use this to disable advertisement for a specific video.
    #[prost(message, optional, tag = "8")]
    pub enable_ad: ::core::option::Option<bool>,
    /// Custom labels as `` key:value `` pairs. Maximum 64 per resource.
    #[prost(map = "string, string", tag = "200")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Video access permission settings.
    #[prost(oneof = "update_video_request::AccessRights", tags = "2000, 2003")]
    pub access_rights: ::core::option::Option<update_video_request::AccessRights>,
}
/// Nested message and enum types in `UpdateVideoRequest`.
pub mod update_video_request {
    /// Video access permission settings.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum AccessRights {
        /// Publicly accessible video available for viewing by anyone with the direct link.
        /// No additional authorization or access control is applied.
        #[prost(message, tag = "2000")]
        PublicAccess(super::VideoPublicAccessParams),
        /// Checking access rights using url's signature.
        #[prost(message, tag = "2003")]
        SignUrlAccess(super::VideoSignUrlAccessParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateVideoMetadata {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TranscodeVideoRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
    /// Field mask that specifies which transcoding specific fields of the video
    /// are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub field_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// IDs of active manually uploaded video subtitles.
    #[prost(string, repeated, tag = "3")]
    pub subtitle_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Video translation settings.
    #[prost(message, optional, tag = "4")]
    pub translation_settings: ::core::option::Option<VideoTranslationSettings>,
    /// Video summarization settings.
    #[prost(message, optional, tag = "5")]
    pub summarization_settings: ::core::option::Option<VideoSummarizationSettings>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoTranslationSettings {
    /// Translation settings for each track.
    #[prost(message, repeated, tag = "1")]
    pub tracks: ::prost::alloc::vec::Vec<video_translation_settings::TranslationTrack>,
}
/// Nested message and enum types in `VideoTranslationSettings`.
pub mod video_translation_settings {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TranslationTrack {
        /// Input track settings.
        #[prost(message, optional, tag = "1")]
        pub input_track: ::core::option::Option<InputTrack>,
        /// Settings for target subtitle tracks.
        #[prost(message, repeated, tag = "2")]
        pub subtitles: ::prost::alloc::vec::Vec<SubtitleTrack>,
        /// Settings for target audio tracks.
        #[prost(message, repeated, tag = "3")]
        pub audio: ::prost::alloc::vec::Vec<AudioTrack>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct InputTrack {
        /// Input audio track index (one-based).
        #[prost(int64, tag = "1")]
        pub track_index: i64,
        /// Source track language in any of the following formats:
        /// * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3
        /// * two-letter code according to ISO 639-1
        /// Track language will be deduced automatically if not provided.
        /// In the latter case the deduction accuracy is not guaranteed.
        /// For better performance please do specify the source track language when possible.
        #[prost(string, tag = "2")]
        pub src_lang: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SubtitleTrack {
        /// Target language in any of the following formats:
        /// * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3
        /// * two-letter code according to ISO 639-1
        #[prost(string, tag = "1")]
        pub dst_lang: ::prost::alloc::string::String,
        /// Track label to be displayed on the screen during video playback.
        #[prost(string, tag = "2")]
        pub label: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AudioTrack {
        /// Target language in any of the following formats:
        /// * three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3
        /// * two-letter code according to ISO 639-1
        #[prost(string, tag = "1")]
        pub dst_lang: ::prost::alloc::string::String,
        /// Track label to be displayed on the screen during video playback.
        #[prost(string, tag = "2")]
        pub label: ::prost::alloc::string::String,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoSummarizationSettings {
    /// Summarization settings for each track.
    #[prost(message, repeated, tag = "2")]
    pub tracks: ::prost::alloc::vec::Vec<
        video_summarization_settings::SummarizationTrack,
    >,
    /// Summarize all available tracks.
    /// If enabled, `tracks` parameter is ignored.
    /// Enables automatic source language deduction for each track
    /// and thus may lead to performance degradation.
    #[prost(bool, tag = "3")]
    pub process_all_tracks: bool,
}
/// Nested message and enum types in `VideoSummarizationSettings`.
pub mod video_summarization_settings {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SummarizationTrack {
        /// Input track settings.
        #[prost(message, optional, tag = "1")]
        pub input_track: ::core::option::Option<InputTrack>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct InputTrack {
        /// Input audio track index (one-based).
        #[prost(int64, tag = "1")]
        pub track_index: i64,
        /// Source track language (three-letter code according to ISO 639-2/T, ISO 639-2/B, or ISO 639-3).
        /// It will be deduced automatically if not provided.
        /// In the latter case the deduction accuracy is not guaranteed.
        /// For better performance please do specify the source track language when possible.
        #[prost(string, tag = "2")]
        pub src_lang: ::prost::alloc::string::String,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TranscodeVideoMetadata {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteVideoRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteVideoMetadata {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteVideosRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of video IDs.
    #[prost(string, repeated, tag = "2")]
    pub video_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchDeleteVideosMetadata {
    /// List of video IDs.
    #[prost(string, repeated, tag = "1")]
    pub video_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformVideoActionRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
    #[prost(oneof = "perform_video_action_request::Action", tags = "1000, 1001")]
    pub action: ::core::option::Option<perform_video_action_request::Action>,
}
/// Nested message and enum types in `PerformVideoActionRequest`.
pub mod perform_video_action_request {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        #[prost(message, tag = "1000")]
        Publish(super::PublishVideoAction),
        #[prost(message, tag = "1001")]
        Unpublish(super::UnpublishVideoAction),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublishVideoAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnpublishVideoAction {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PerformVideoActionMetadata {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVideoPlayerUrlRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub params: ::core::option::Option<VideoPlayerParams>,
    /// Optional field, used to set custom url expiration duration for videos with sign_url_access
    #[prost(message, optional, tag = "3")]
    pub signed_url_expiration_duration: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoPlayerParams {
    /// If true, a player will be muted by default.
    #[prost(bool, tag = "1")]
    pub mute: bool,
    /// If true, playback will start automatically.
    #[prost(bool, tag = "2")]
    pub autoplay: bool,
    /// If true, a player interface will be hidden by default.
    #[prost(bool, tag = "3")]
    pub hidden: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVideoPlayerUrlResponse {
    /// Direct link to the video.
    #[prost(string, tag = "1")]
    pub player_url: ::prost::alloc::string::String,
    /// HTML embed code in Iframe format.
    #[prost(string, tag = "2")]
    pub html: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetVideoPlayerUrLsRequest {
    /// ID of the channel.
    #[prost(string, tag = "1")]
    pub channel_id: ::prost::alloc::string::String,
    /// List of requested video IDs.
    #[prost(string, repeated, tag = "2")]
    pub video_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub params: ::core::option::Option<VideoPlayerParams>,
    /// Optional field, used to set custom url expiration duration for videos with sign_url_access
    #[prost(message, optional, tag = "4")]
    pub signed_url_expiration_duration: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetVideoPlayerUrLsResponse {
    #[prost(string, repeated, tag = "1")]
    pub player_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVideoManifestsRequest {
    /// ID of the video.
    #[prost(string, tag = "1")]
    pub video_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVideoManifestsResponse {
    #[prost(message, repeated, tag = "1")]
    pub manifests: ::prost::alloc::vec::Vec<Manifest>,
}
/// Generated client implementations.
pub mod video_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Video management service.
    #[derive(Debug, Clone)]
    pub struct VideoServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl VideoServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> VideoServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> VideoServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            VideoServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Get the specific video.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetVideoRequest>,
        ) -> std::result::Result<tonic::Response<super::Video>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.VideoService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// List videos for channel.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListVideoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListVideoResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.VideoService", "List"));
            self.inner.unary(req, path, codec).await
        }
        /// Batch get videos in specific channel.
        pub async fn batch_get(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGetVideosRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGetVideosResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/BatchGet",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.VideoService", "BatchGet"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Create video.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateVideoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.VideoService", "Create"));
            self.inner.unary(req, path, codec).await
        }
        /// Update video.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateVideoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.VideoService", "Update"));
            self.inner.unary(req, path, codec).await
        }
        /// Transcode video.
        pub async fn transcode(
            &mut self,
            request: impl tonic::IntoRequest<super::TranscodeVideoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/Transcode",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.VideoService", "Transcode"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete video.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteVideoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.video.v1.VideoService", "Delete"));
            self.inner.unary(req, path, codec).await
        }
        /// Batch delete videos.
        pub async fn batch_delete(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchDeleteVideosRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/BatchDelete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.VideoService", "BatchDelete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Perform an action on the video.
        pub async fn perform_action(
            &mut self,
            request: impl tonic::IntoRequest<super::PerformVideoActionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/PerformAction",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.VideoService",
                        "PerformAction",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get player url.
        pub async fn get_player_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GetVideoPlayerUrlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetVideoPlayerUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/GetPlayerURL",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.VideoService", "GetPlayerURL"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Batch get player urls.
        pub async fn batch_get_player_ur_ls(
            &mut self,
            request: impl tonic::IntoRequest<super::BatchGetVideoPlayerUrLsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BatchGetVideoPlayerUrLsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/BatchGetPlayerURLs",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.video.v1.VideoService",
                        "BatchGetPlayerURLs",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get manifest urls.
        pub async fn get_manifests(
            &mut self,
            request: impl tonic::IntoRequest<super::GetVideoManifestsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetVideoManifestsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.video.v1.VideoService/GetManifests",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.video.v1.VideoService", "GetManifests"),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}