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
// This file is @generated by prost-build.
/// Options on how fetches should be made.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchOptions {
/// Custom headers to pass into fetch request.
/// Headers must have a maximum of 3 key value pairs.
/// Each key value pair must have a maximum of 256 characters per key and 256
/// characters per value.
#[prost(btree_map = "string, string", tag = "1")]
pub headers: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// Metadata used to register VOD configs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodConfig {
/// Output only. The resource name of the VOD config, in the form of
/// `projects/{project}/locations/{location}/vodConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. Source URI for the VOD stream manifest.
#[prost(string, tag = "2")]
pub source_uri: ::prost::alloc::string::String,
/// Required. The default ad tag associated with this VOD config.
#[prost(string, tag = "3")]
pub ad_tag_uri: ::prost::alloc::string::String,
/// Optional. Google Ad Manager (GAM) metadata.
#[prost(message, optional, tag = "4")]
pub gam_vod_config: ::core::option::Option<GamVodConfig>,
/// Output only. State of the VOD config.
#[prost(enumeration = "vod_config::State", tag = "5")]
pub state: i32,
/// Options for fetching source manifests and segments.
#[prost(message, optional, tag = "8")]
pub source_fetch_options: ::core::option::Option<FetchOptions>,
}
/// Nested message and enum types in `VodConfig`.
pub mod vod_config {
/// State of the VOD config.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// State is not specified.
Unspecified = 0,
/// VOD config is being created.
Creating = 1,
/// VOD config is ready for use.
Ready = 2,
/// VOD config is queued up for deletion.
Deleting = 3,
}
impl State {
/// 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 {
State::Unspecified => "STATE_UNSPECIFIED",
State::Creating => "CREATING",
State::Ready => "READY",
State::Deleting => "DELETING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATING" => Some(Self::Creating),
"READY" => Some(Self::Ready),
"DELETING" => Some(Self::Deleting),
_ => None,
}
}
}
}
/// Metadata used for GAM ad decisioning.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GamVodConfig {
/// Required. Ad Manager network code to associate with the VOD config.
#[prost(string, tag = "1")]
pub network_code: ::prost::alloc::string::String,
}
/// Metadata for used to register live configs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveConfig {
/// Output only. The resource name of the live config, in the form of
/// `projects/{project}/locations/{location}/liveConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. Source URI for the live stream manifest.
#[prost(string, tag = "2")]
pub source_uri: ::prost::alloc::string::String,
/// The default ad tag associated with this live stream config.
#[prost(string, tag = "3")]
pub ad_tag_uri: ::prost::alloc::string::String,
/// Additional metadata used to register a live stream with Google Ad Manager
/// (GAM)
#[prost(message, optional, tag = "4")]
pub gam_live_config: ::core::option::Option<GamLiveConfig>,
/// Output only. State of the live config.
#[prost(enumeration = "live_config::State", tag = "5")]
pub state: i32,
/// Required. Determines how the ads are tracked.
#[prost(enumeration = "AdTracking", tag = "6")]
pub ad_tracking: i32,
/// This must refer to a slate in the same
/// project. If Google Ad Manager (GAM) is used for ads, this string sets the
/// value of `slateCreativeId` in
/// <https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId>
#[prost(string, tag = "7")]
pub default_slate: ::prost::alloc::string::String,
/// Defines the stitcher behavior in case an ad does not align exactly with
/// the ad break boundaries. If not specified, the default is `CUT_CURRENT`.
#[prost(enumeration = "live_config::StitchingPolicy", tag = "8")]
pub stitching_policy: i32,
/// The configuration for prefetching ads.
#[prost(message, optional, tag = "10")]
pub prefetch_config: ::core::option::Option<PrefetchConfig>,
/// Options for fetching source manifests and segments.
#[prost(message, optional, tag = "16")]
pub source_fetch_options: ::core::option::Option<FetchOptions>,
}
/// Nested message and enum types in `LiveConfig`.
pub mod live_config {
/// State of the live config.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// State is not specified.
Unspecified = 0,
/// Live config is being created.
Creating = 1,
/// Live config is ready for use.
Ready = 2,
/// Live config is queued up for deletion.
Deleting = 3,
}
impl State {
/// 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 {
State::Unspecified => "STATE_UNSPECIFIED",
State::Creating => "CREATING",
State::Ready => "READY",
State::Deleting => "DELETING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATING" => Some(Self::Creating),
"READY" => Some(Self::Ready),
"DELETING" => Some(Self::Deleting),
_ => None,
}
}
}
/// Defines the ad stitching behavior in case the ad duration does not align
/// exactly with the ad break boundaries. If not specified, the default is
/// `CUT_CURRENT`.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StitchingPolicy {
/// Stitching policy is not specified.
Unspecified = 0,
/// Cuts an ad short and returns to content in the middle of the ad.
CutCurrent = 1,
/// Finishes stitching the current ad before returning to content.
CompleteAd = 2,
}
impl StitchingPolicy {
/// 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 {
StitchingPolicy::Unspecified => "STITCHING_POLICY_UNSPECIFIED",
StitchingPolicy::CutCurrent => "CUT_CURRENT",
StitchingPolicy::CompleteAd => "COMPLETE_AD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STITCHING_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"CUT_CURRENT" => Some(Self::CutCurrent),
"COMPLETE_AD" => Some(Self::CompleteAd),
_ => None,
}
}
}
}
/// The configuration for prefetch ads.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PrefetchConfig {
/// Required. Indicates whether the option to prefetch ad requests is enabled.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// The duration in seconds of the part of the break to be prefetched.
/// This field is only relevant if prefetch is enabled.
/// You should set this duration to as long as possible to increase the
/// benefits of prefetching, but not longer than the shortest ad break
/// expected. For example, for a live event with 30s and 60s ad breaks, the
/// initial duration should be set to 30s.
#[prost(message, optional, tag = "2")]
pub initial_ad_request_duration: ::core::option::Option<::prost_types::Duration>,
}
/// Metadata used to register a live stream with Google Ad Manager (GAM)
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GamLiveConfig {
/// Required. Ad Manager network code to associate with the live config.
#[prost(string, tag = "1")]
pub network_code: ::prost::alloc::string::String,
/// Output only. The asset key identifier generated for the live config.
#[prost(string, tag = "2")]
pub asset_key: ::prost::alloc::string::String,
/// Output only. The custom asset key identifier generated for the live config.
#[prost(string, tag = "3")]
pub custom_asset_key: ::prost::alloc::string::String,
}
/// Determines the ad tracking policy.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AdTracking {
/// The ad tracking policy is not specified.
Unspecified = 0,
/// Client-side ad tracking is specified. The client player is expected to
/// trigger playback and activity events itself.
Client = 1,
/// The Video Stitcher API will trigger playback events on behalf of
/// the client player.
Server = 2,
}
impl AdTracking {
/// 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 {
AdTracking::Unspecified => "AD_TRACKING_UNSPECIFIED",
AdTracking::Client => "CLIENT",
AdTracking::Server => "SERVER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AD_TRACKING_UNSPECIFIED" => Some(Self::Unspecified),
"CLIENT" => Some(Self::Client),
"SERVER" => Some(Self::Server),
_ => None,
}
}
}
/// Describes an event and a trigger URI.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
/// Describes the event that occurred.
#[prost(enumeration = "event::EventType", tag = "1")]
pub r#type: i32,
/// The URI to trigger for this event.
#[prost(string, tag = "2")]
pub uri: ::prost::alloc::string::String,
/// The ID of the event.
#[prost(string, tag = "3")]
pub id: ::prost::alloc::string::String,
/// The offset in seconds if the event type is `PROGRESS`.
#[prost(message, optional, tag = "4")]
pub offset: ::core::option::Option<::prost_types::Duration>,
}
/// Nested message and enum types in `Event`.
pub mod event {
/// Describes the event that occurred.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EventType {
/// The event type is unspecified.
Unspecified = 0,
/// First frame of creative ad viewed.
CreativeView = 1,
/// Creative ad started.
Start = 2,
/// Start of an ad break.
BreakStart = 3,
/// End of an ad break.
BreakEnd = 4,
/// Impression.
Impression = 5,
/// First quartile progress.
FirstQuartile = 6,
/// Midpoint progress.
Midpoint = 7,
/// Third quartile progress.
ThirdQuartile = 8,
/// Ad progress completed.
Complete = 9,
/// Specific progress event with an offset.
Progress = 10,
/// Player muted.
Mute = 11,
/// Player unmuted.
Unmute = 12,
/// Player paused.
Pause = 13,
/// Click event.
Click = 14,
/// Click-through event.
ClickThrough = 15,
/// Player rewinding.
Rewind = 16,
/// Player resumed.
Resume = 17,
/// Error event.
Error = 18,
/// Ad expanded to a larger size.
Expand = 21,
/// Ad collapsed to a smaller size.
Collapse = 22,
/// Non-linear ad closed.
Close = 24,
/// Linear ad closed.
CloseLinear = 25,
/// Ad skipped.
Skip = 26,
/// Accept invitation event.
AcceptInvitation = 27,
}
impl EventType {
/// 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 {
EventType::Unspecified => "EVENT_TYPE_UNSPECIFIED",
EventType::CreativeView => "CREATIVE_VIEW",
EventType::Start => "START",
EventType::BreakStart => "BREAK_START",
EventType::BreakEnd => "BREAK_END",
EventType::Impression => "IMPRESSION",
EventType::FirstQuartile => "FIRST_QUARTILE",
EventType::Midpoint => "MIDPOINT",
EventType::ThirdQuartile => "THIRD_QUARTILE",
EventType::Complete => "COMPLETE",
EventType::Progress => "PROGRESS",
EventType::Mute => "MUTE",
EventType::Unmute => "UNMUTE",
EventType::Pause => "PAUSE",
EventType::Click => "CLICK",
EventType::ClickThrough => "CLICK_THROUGH",
EventType::Rewind => "REWIND",
EventType::Resume => "RESUME",
EventType::Error => "ERROR",
EventType::Expand => "EXPAND",
EventType::Collapse => "COLLAPSE",
EventType::Close => "CLOSE",
EventType::CloseLinear => "CLOSE_LINEAR",
EventType::Skip => "SKIP",
EventType::AcceptInvitation => "ACCEPT_INVITATION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATIVE_VIEW" => Some(Self::CreativeView),
"START" => Some(Self::Start),
"BREAK_START" => Some(Self::BreakStart),
"BREAK_END" => Some(Self::BreakEnd),
"IMPRESSION" => Some(Self::Impression),
"FIRST_QUARTILE" => Some(Self::FirstQuartile),
"MIDPOINT" => Some(Self::Midpoint),
"THIRD_QUARTILE" => Some(Self::ThirdQuartile),
"COMPLETE" => Some(Self::Complete),
"PROGRESS" => Some(Self::Progress),
"MUTE" => Some(Self::Mute),
"UNMUTE" => Some(Self::Unmute),
"PAUSE" => Some(Self::Pause),
"CLICK" => Some(Self::Click),
"CLICK_THROUGH" => Some(Self::ClickThrough),
"REWIND" => Some(Self::Rewind),
"RESUME" => Some(Self::Resume),
"ERROR" => Some(Self::Error),
"EXPAND" => Some(Self::Expand),
"COLLAPSE" => Some(Self::Collapse),
"CLOSE" => Some(Self::Close),
"CLOSE_LINEAR" => Some(Self::CloseLinear),
"SKIP" => Some(Self::Skip),
"ACCEPT_INVITATION" => Some(Self::AcceptInvitation),
_ => None,
}
}
}
}
/// Indicates a time in which a list of events should be triggered
/// during media playback.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProgressEvent {
/// The time when the following tracking events occurs. The time is in
/// seconds relative to the start of the VOD asset.
#[prost(message, optional, tag = "1")]
pub time_offset: ::core::option::Option<::prost_types::Duration>,
/// The list of progress tracking events for the ad break. These can be of
/// the following IAB types: `BREAK_START`, `BREAK_END`, `IMPRESSION`,
/// `CREATIVE_VIEW`, `START`, `FIRST_QUARTILE`, `MIDPOINT`, `THIRD_QUARTILE`,
/// `COMPLETE`, `PROGRESS`.
#[prost(message, repeated, tag = "2")]
pub events: ::prost::alloc::vec::Vec<Event>,
}
/// Metadata for companion ads.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompanionAds {
/// Indicates how many of the companions should be displayed with the ad.
#[prost(enumeration = "companion_ads::DisplayRequirement", tag = "1")]
pub display_requirement: i32,
/// List of companion ads.
#[prost(message, repeated, tag = "2")]
pub companions: ::prost::alloc::vec::Vec<Companion>,
}
/// Nested message and enum types in `CompanionAds`.
pub mod companion_ads {
/// Indicates how many of the companions should be displayed with the ad.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DisplayRequirement {
/// Required companions are not specified. The default is ALL.
Unspecified = 0,
/// All companions are required to be displayed.
All = 1,
/// At least one of companions needs to be displayed.
Any = 2,
/// All companions are optional for display.
None = 3,
}
impl DisplayRequirement {
/// 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 {
DisplayRequirement::Unspecified => "DISPLAY_REQUIREMENT_UNSPECIFIED",
DisplayRequirement::All => "ALL",
DisplayRequirement::Any => "ANY",
DisplayRequirement::None => "NONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DISPLAY_REQUIREMENT_UNSPECIFIED" => Some(Self::Unspecified),
"ALL" => Some(Self::All),
"ANY" => Some(Self::Any),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
/// Metadata for a companion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Companion {
/// The API necessary to communicate with the creative if available.
#[prost(string, tag = "1")]
pub api_framework: ::prost::alloc::string::String,
/// The pixel height of the placement slot for the intended creative.
#[prost(int32, tag = "2")]
pub height_px: i32,
/// The pixel width of the placement slot for the intended creative.
#[prost(int32, tag = "3")]
pub width_px: i32,
/// The pixel height of the creative.
#[prost(int32, tag = "4")]
pub asset_height_px: i32,
/// The maximum pixel height of the creative in its expanded state.
#[prost(int32, tag = "5")]
pub expanded_height_px: i32,
/// The pixel width of the creative.
#[prost(int32, tag = "6")]
pub asset_width_px: i32,
/// The maximum pixel width of the creative in its expanded state.
#[prost(int32, tag = "7")]
pub expanded_width_px: i32,
/// The ID used to identify the desired placement on a publisher's page.
/// Values to be used should be discussed between publishers and
/// advertisers.
#[prost(string, tag = "8")]
pub ad_slot_id: ::prost::alloc::string::String,
/// The list of tracking events for the companion.
#[prost(message, repeated, tag = "9")]
pub events: ::prost::alloc::vec::Vec<Event>,
/// Ad resource associated with the companion ad.
#[prost(oneof = "companion::AdResource", tags = "10, 11, 12")]
pub ad_resource: ::core::option::Option<companion::AdResource>,
}
/// Nested message and enum types in `Companion`.
pub mod companion {
/// Ad resource associated with the companion ad.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AdResource {
/// The IFrame ad resource associated with the companion ad.
#[prost(message, tag = "10")]
IframeAdResource(super::IframeAdResource),
/// The static ad resource associated with the companion ad.
#[prost(message, tag = "11")]
StaticAdResource(super::StaticAdResource),
/// The HTML ad resource associated with the companion ad.
#[prost(message, tag = "12")]
HtmlAdResource(super::HtmlAdResource),
}
}
/// Metadata for an HTML ad resource.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HtmlAdResource {
/// The HTML to display for the ad resource.
#[prost(string, tag = "1")]
pub html_source: ::prost::alloc::string::String,
}
/// Metadata for an IFrame ad resource.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IframeAdResource {
/// URI source for an IFrame to display for the ad resource.
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
}
/// Metadata for a static ad resource.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StaticAdResource {
/// URI to the static file for the ad resource.
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
/// Describes the MIME type of the ad resource.
#[prost(string, tag = "2")]
pub creative_type: ::prost::alloc::string::String,
}
/// Metadata for a VOD session. The session expires 4 hours after its creation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSession {
/// Output only. The name of the VOD session, in the form of
/// `projects/{project_number}/locations/{location}/vodSessions/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Output only. Metadata of what was stitched into the content.
#[prost(message, optional, tag = "2")]
pub interstitials: ::core::option::Option<Interstitials>,
/// Output only. The playback URI of the stitched content.
#[prost(string, tag = "4")]
pub play_uri: ::prost::alloc::string::String,
/// URI of the media to stitch. For most use cases, you should create a
/// [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
/// rather than setting this field directly.
#[prost(string, tag = "5")]
pub source_uri: ::prost::alloc::string::String,
/// Ad tag URI. For most use cases, you should create a
/// [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information
/// rather than setting this field directly.
#[prost(string, tag = "6")]
pub ad_tag_uri: ::prost::alloc::string::String,
/// Key value pairs for ad tag macro replacement, only available for VOD
/// sessions that do not implement Google Ad manager ad insertion. If the
/// specified ad tag URI has macros, this field provides the mapping to the
/// value that will replace the macro in the ad tag URI.
///
/// Macros are designated by square brackets, for example:
///
/// Ad tag URI: `"<https://doubleclick.google.com/ad/1?geo_id=\[geoId\]"`>
///
/// Ad tag macro map: `{"geoId": "123"}`
///
/// Fully qualified ad tag:
/// `"<https://doubleclick.google.com/ad/1?geo_id=123"`>
#[prost(btree_map = "string, string", tag = "7")]
pub ad_tag_macro_map: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Additional options that affect the output of the manifest.
#[prost(message, optional, tag = "9")]
pub manifest_options: ::core::option::Option<ManifestOptions>,
/// Output only. The generated ID of the VodSession's source media.
#[prost(string, tag = "10")]
pub asset_id: ::prost::alloc::string::String,
/// Required. Determines how the ad should be tracked.
#[prost(enumeration = "AdTracking", tag = "11")]
pub ad_tracking: i32,
/// This field should be set with appropriate values if GAM is being used for
/// ads.
#[prost(message, optional, tag = "13")]
pub gam_settings: ::core::option::Option<vod_session::GamSettings>,
/// The resource name of the VOD config for this session, in the form of
/// `projects/{project}/locations/{location}/vodConfigs/{id}`.
#[prost(string, tag = "14")]
pub vod_config: ::prost::alloc::string::String,
}
/// Nested message and enum types in `VodSession`.
pub mod vod_session {
/// Defines fields related to Google Ad Manager (GAM). This should be set if
/// GAM is being used for ads.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GamSettings {
/// Required. Ad Manager network code.
#[prost(string, tag = "1")]
pub network_code: ::prost::alloc::string::String,
/// Required. The stream ID generated by Ad Manager.
#[prost(string, tag = "2")]
pub stream_id: ::prost::alloc::string::String,
}
}
/// Describes what was stitched into a VOD session's manifest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interstitials {
/// List of ad breaks ordered by time.
#[prost(message, repeated, tag = "1")]
pub ad_breaks: ::prost::alloc::vec::Vec<VodSessionAdBreak>,
/// Information related to the content of the VOD session.
#[prost(message, optional, tag = "2")]
pub session_content: ::core::option::Option<VodSessionContent>,
}
/// Metadata for an inserted ad in a VOD session.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSessionAd {
/// Duration in seconds of the ad.
#[prost(message, optional, tag = "1")]
pub duration: ::core::option::Option<::prost_types::Duration>,
/// Metadata of companion ads associated with the ad.
#[prost(message, optional, tag = "2")]
pub companion_ads: ::core::option::Option<CompanionAds>,
/// The list of progress tracking events for the ad break. These can be of
/// the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`,
/// `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`,
/// `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`,
/// `CLOSE_LINEAR`, `SKIP`.
#[prost(message, repeated, tag = "3")]
pub activity_events: ::prost::alloc::vec::Vec<Event>,
}
/// Metadata for the entire stitched content in a VOD session.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VodSessionContent {
/// The total duration in seconds of the content including the ads stitched
/// in.
#[prost(message, optional, tag = "1")]
pub duration: ::core::option::Option<::prost_types::Duration>,
}
/// Metadata for an inserted ad break.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSessionAdBreak {
/// List of events that are expected to be triggered, ordered by time.
#[prost(message, repeated, tag = "1")]
pub progress_events: ::prost::alloc::vec::Vec<ProgressEvent>,
/// Ordered list of ads stitched into the ad break.
#[prost(message, repeated, tag = "2")]
pub ads: ::prost::alloc::vec::Vec<VodSessionAd>,
/// Ad break end time in seconds relative to the start of the VOD asset.
#[prost(message, optional, tag = "3")]
pub end_time_offset: ::core::option::Option<::prost_types::Duration>,
/// Ad break start time in seconds relative to the start of the VOD asset.
#[prost(message, optional, tag = "4")]
pub start_time_offset: ::core::option::Option<::prost_types::Duration>,
}
/// Metadata for a live session. The session expires 5 minutes after the client
/// stops fetching the session's playlists.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveSession {
/// Output only. The name of the live session, in the form of
/// `projects/{project}/locations/{location}/liveSessions/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Output only. The URI to play the live session's ad-stitched stream.
#[prost(string, tag = "2")]
pub play_uri: ::prost::alloc::string::String,
/// Key value pairs for ad tag macro replacement, only available for live
/// sessions that do not implement Google Ad manager ad insertion. If the
/// specified ad tag URI has macros, this field provides the mapping to the
/// value that will replace the macro in the ad tag URI.
///
/// Macros are designated by square brackets, for example:
///
/// Ad tag URI: "<https://doubleclick.google.com/ad/1?geo_id=\[geoId\]">
///
/// Ad tag macros: `{"geoId": "123"}`
///
/// Fully qualified ad tag:
/// `"<https://doubleclick.google.com/ad/1?geo_id=123"`>
#[prost(btree_map = "string, string", tag = "6")]
pub ad_tag_macros: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Additional options that affect the output of the manifest.
#[prost(message, optional, tag = "10")]
pub manifest_options: ::core::option::Option<ManifestOptions>,
/// This field should be set with appropriate values if GAM is being used for
/// ads.
#[prost(message, optional, tag = "15")]
pub gam_settings: ::core::option::Option<live_session::GamSettings>,
/// Required. The resource name of the live config for this session, in the
/// form of `projects/{project}/locations/{location}/liveConfigs/{id}`.
#[prost(string, tag = "16")]
pub live_config: ::prost::alloc::string::String,
/// Determines how the ad should be tracked. This overrides the value set in
/// the live config for this session.
#[prost(enumeration = "AdTracking", tag = "17")]
pub ad_tracking: i32,
}
/// Nested message and enum types in `LiveSession`.
pub mod live_session {
/// Defines fields related to Google Ad Manager (GAM).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GamSettings {
/// Required. The stream ID generated by Ad Manager. This must be set if GAM
/// is being used for ads and the session uses client-side ad tracking.
#[prost(string, tag = "1")]
pub stream_id: ::prost::alloc::string::String,
/// [Targeting
/// parameters](<https://support.google.com/admanager/answer/7320899>) to send
/// to Ad Manager to generate a stream ID. This should only be set if the
/// session uses server-side ad tracking.
#[prost(btree_map = "string, string", tag = "4")]
pub targeting_parameters: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
}
/// Options for manifest generation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManifestOptions {
/// If specified, the output manifest will only return renditions matching the
/// specified filters.
#[prost(message, repeated, tag = "1")]
pub include_renditions: ::prost::alloc::vec::Vec<RenditionFilter>,
/// If specified, the output manifest will orders the video and muxed
/// renditions by bitrate according to the ordering policy.
#[prost(enumeration = "manifest_options::OrderPolicy", tag = "2")]
pub bitrate_order: i32,
}
/// Nested message and enum types in `ManifestOptions`.
pub mod manifest_options {
/// Defines the ordering policy during manifest generation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OrderPolicy {
/// Ordering policy is not specified.
Unspecified = 0,
/// Order by ascending.
Ascending = 1,
/// Order by descending.
Descending = 2,
}
impl OrderPolicy {
/// 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 {
OrderPolicy::Unspecified => "ORDER_POLICY_UNSPECIFIED",
OrderPolicy::Ascending => "ASCENDING",
OrderPolicy::Descending => "DESCENDING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ORDER_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"ASCENDING" => Some(Self::Ascending),
"DESCENDING" => Some(Self::Descending),
_ => None,
}
}
}
}
/// Filters for a video or muxed redition.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenditionFilter {
/// Bitrate in bits per second for the rendition. If set, only renditions with
/// the exact bitrate will match.
#[prost(int32, tag = "1")]
pub bitrate_bps: i32,
/// Codecs for the rendition. If set, only renditions with the exact value
/// will match.
#[prost(string, tag = "2")]
pub codecs: ::prost::alloc::string::String,
}
/// Information related to the details for one ad tag. This resource is only
/// available for live sessions that do not implement Google Ad Manager ad
/// insertion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveAdTagDetail {
/// The resource name in the form of
/// `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// A list of ad requests.
#[prost(message, repeated, tag = "2")]
pub ad_requests: ::prost::alloc::vec::Vec<AdRequest>,
}
/// Information related to the details for one ad tag. This resource is only
/// available for VOD sessions that do not implement Google Ad Manager ad
/// insertion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodAdTagDetail {
/// The name of the ad tag detail for the specified VOD session, in the form of
/// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// A list of ad requests for one ad tag.
#[prost(message, repeated, tag = "2")]
pub ad_requests: ::prost::alloc::vec::Vec<AdRequest>,
}
/// Details of an ad request to an ad server.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdRequest {
/// The ad tag URI processed with integrated macros.
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
/// The request metadata used to make the ad request.
#[prost(message, optional, tag = "2")]
pub request_metadata: ::core::option::Option<RequestMetadata>,
/// The response metadata received from the ad request.
#[prost(message, optional, tag = "3")]
pub response_metadata: ::core::option::Option<ResponseMetadata>,
}
/// Metadata for an ad request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestMetadata {
/// The HTTP headers of the ad request.
#[prost(message, optional, tag = "1")]
pub headers: ::core::option::Option<::prost_types::Struct>,
}
/// Metadata for the response of an ad request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseMetadata {
/// Error message received when making the ad request.
#[prost(string, tag = "1")]
pub error: ::prost::alloc::string::String,
/// Headers from the response.
#[prost(message, optional, tag = "2")]
pub headers: ::core::option::Option<::prost_types::Struct>,
/// Status code for the response.
#[prost(string, tag = "3")]
pub status_code: ::prost::alloc::string::String,
/// Size in bytes of the response.
#[prost(int32, tag = "4")]
pub size_bytes: i32,
/// Total time elapsed for the response.
#[prost(message, optional, tag = "5")]
pub duration: ::core::option::Option<::prost_types::Duration>,
/// The body of the response.
#[prost(string, tag = "6")]
pub body: ::prost::alloc::string::String,
}
/// Configuration for a CDN key. Used by the Video Stitcher
/// to sign URIs for fetching video manifests and signing
/// media segments for playback.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CdnKey {
/// The resource name of the CDN key, in the form of
/// `projects/{project}/locations/{location}/cdnKeys/{id}`.
/// The name is ignored when creating a CDN key.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// The hostname this key applies to.
#[prost(string, tag = "4")]
pub hostname: ::prost::alloc::string::String,
/// Configuration associated with the CDN key.
#[prost(oneof = "cdn_key::CdnKeyConfig", tags = "5, 6, 8")]
pub cdn_key_config: ::core::option::Option<cdn_key::CdnKeyConfig>,
}
/// Nested message and enum types in `CdnKey`.
pub mod cdn_key {
/// Configuration associated with the CDN key.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CdnKeyConfig {
/// The configuration for a Google Cloud CDN key.
#[prost(message, tag = "5")]
GoogleCdnKey(super::GoogleCdnKey),
/// The configuration for an Akamai CDN key.
#[prost(message, tag = "6")]
AkamaiCdnKey(super::AkamaiCdnKey),
/// The configuration for a Media CDN key.
#[prost(message, tag = "8")]
MediaCdnKey(super::MediaCdnKey),
}
}
/// Configuration for a Google Cloud CDN key.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GoogleCdnKey {
/// Input only. Secret for this Google Cloud CDN key.
#[prost(bytes = "bytes", tag = "1")]
pub private_key: ::prost::bytes::Bytes,
/// The public name of the Google Cloud CDN key.
#[prost(string, tag = "2")]
pub key_name: ::prost::alloc::string::String,
}
/// Configuration for an Akamai CDN key.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AkamaiCdnKey {
/// Input only. Token key for the Akamai CDN edge configuration.
#[prost(bytes = "bytes", tag = "1")]
pub token_key: ::prost::bytes::Bytes,
}
/// Configuration for a Media CDN key.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaCdnKey {
/// Input only. 64-byte ed25519 private key for this Media CDN key.
#[prost(bytes = "bytes", tag = "1")]
pub private_key: ::prost::bytes::Bytes,
/// The keyset name of the Media CDN key.
#[prost(string, tag = "2")]
pub key_name: ::prost::alloc::string::String,
/// Optional. If set, the URL will be signed using the Media CDN token.
/// Otherwise, the URL would be signed using the standard Media CDN signature.
#[prost(message, optional, tag = "3")]
pub token_config: ::core::option::Option<media_cdn_key::TokenConfig>,
}
/// Nested message and enum types in `MediaCdnKey`.
pub mod media_cdn_key {
/// Configuration for a Media CDN token.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TokenConfig {
/// Optional. The query parameter in which to find the token.
///
/// The name must be 1-64 characters long and match
/// the regular expression `[a-zA-Z](\[a-zA-Z0-9_-\])*` which means the
/// first character must be a letter, and all following characters
/// must be a dash, underscore, letter or digit.
///
/// Defaults to `edge-cache-token`.
#[prost(string, tag = "1")]
pub query_parameter: ::prost::alloc::string::String,
}
}
/// Slate object
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Slate {
/// Output only. The name of the slate, in the form of
/// `projects/{project_number}/locations/{location}/slates/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// The URI to fetch the source content for the slate. This URI must return an
/// MP4 video with at least one audio track.
#[prost(string, tag = "2")]
pub uri: ::prost::alloc::string::String,
/// gam_slate has all the GAM-related attributes of slates.
#[prost(message, optional, tag = "3")]
pub gam_slate: ::core::option::Option<slate::GamSlate>,
}
/// Nested message and enum types in `Slate`.
pub mod slate {
/// GamSlate object has Google Ad Manager (GAM) related properties for the
/// slate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GamSlate {
/// Required. Ad Manager network code to associate with the live config.
#[prost(string, tag = "1")]
pub network_code: ::prost::alloc::string::String,
/// Output only. The identifier generated for the slate by GAM.
#[prost(int64, tag = "2")]
pub gam_slate_id: i64,
}
}
/// Information related to the interstitial of a VOD session. This resource is
/// only available for VOD sessions that do not implement Google Ad Manager ad
/// insertion.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodStitchDetail {
/// The name of the stitch detail in the specified VOD session, in the form of
/// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// A list of ad processing details for the fetched ad playlist.
#[prost(message, repeated, tag = "3")]
pub ad_stitch_details: ::prost::alloc::vec::Vec<AdStitchDetail>,
}
/// Metadata for a stitched ad.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdStitchDetail {
/// Required. The ad break ID of the processed ad.
#[prost(string, tag = "1")]
pub ad_break_id: ::prost::alloc::string::String,
/// Required. The ad ID of the processed ad.
#[prost(string, tag = "2")]
pub ad_id: ::prost::alloc::string::String,
/// Required. The time offset of the processed ad.
#[prost(message, optional, tag = "3")]
pub ad_time_offset: ::core::option::Option<::prost_types::Duration>,
/// Optional. Indicates the reason why the ad has been skipped.
#[prost(string, tag = "4")]
pub skip_reason: ::prost::alloc::string::String,
/// Optional. The metadata of the chosen media file for the ad.
#[prost(btree_map = "string, message", tag = "5")]
pub media: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost_types::Value,
>,
}
/// Request message for VideoStitcherService.createCdnKey.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCdnKeyRequest {
/// Required. The project in which the CDN key should be created, in the form
/// of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The CDN key resource to create.
#[prost(message, optional, tag = "2")]
pub cdn_key: ::core::option::Option<CdnKey>,
/// Required. The ID to use for the CDN key, which will become the final
/// component of the CDN key's resource name.
///
/// This value should conform to RFC-1034, which restricts to
/// lower-case letters, numbers, and hyphen, with the first character a
/// letter, the last a letter or a number, and a 63 character maximum.
#[prost(string, tag = "3")]
pub cdn_key_id: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listCdnKeys.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCdnKeysRequest {
/// Required. The project that contains the list of CDN keys, in the form of
/// `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Requested page size. Server may return fewer items than requested.
/// If unspecified, server will pick an appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// A token identifying a page of results the server should return.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Filtering results
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
/// Hint for how to order the results
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
/// Response message for VideoStitcher.ListCdnKeys.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCdnKeysResponse {
/// List of CDN keys.
#[prost(message, repeated, tag = "1")]
pub cdn_keys: ::prost::alloc::vec::Vec<CdnKey>,
/// A token identifying a page of results the server should return.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations that could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Request message for VideoStitcherService.getCdnKey.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCdnKeyRequest {
/// Required. The name of the CDN key to be retrieved, in the form of
/// `projects/{project}/locations/{location}/cdnKeys/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.deleteCdnKey.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCdnKeyRequest {
/// Required. The name of the CDN key to be deleted, in the form of
/// `projects/{project_number}/locations/{location}/cdnKeys/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.updateCdnKey.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCdnKeyRequest {
/// Required. The CDN key resource which replaces the resource on the server.
#[prost(message, optional, tag = "1")]
pub cdn_key: ::core::option::Option<CdnKey>,
/// Required. The update mask applies to the resource.
/// For the `FieldMask` definition, see
/// <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Request message for VideoStitcherService.createVodSession
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVodSessionRequest {
/// Required. The project and location in which the VOD session should be
/// created, in the form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. Parameters for creating a session.
#[prost(message, optional, tag = "2")]
pub vod_session: ::core::option::Option<VodSession>,
}
/// Request message for VideoStitcherService.getVodSession
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodSessionRequest {
/// Required. The name of the VOD session to be retrieved, in the form of
/// `projects/{project_number}/locations/{location}/vodSessions/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listVodStitchDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodStitchDetailsRequest {
/// Required. The VOD session where the stitch details belong to, in the form
/// of `projects/{project}/locations/{location}/vodSessions/{id}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// The maximum number of items to return.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// The next_page_token value returned from a previous List request, if any.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// Response message for VideoStitcherService.listVodStitchDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodStitchDetailsResponse {
/// A List of stitch Details.
#[prost(message, repeated, tag = "1")]
pub vod_stitch_details: ::prost::alloc::vec::Vec<VodStitchDetail>,
/// The pagination token.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.getVodStitchDetail.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodStitchDetailRequest {
/// Required. The name of the stitch detail in the specified VOD session, in
/// the form of
/// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listVodAdTagDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodAdTagDetailsRequest {
/// Required. The VOD session which the ad tag details belong to, in the form
/// of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// The maximum number of items to return.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// The next_page_token value returned from a previous List request, if any.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// Response message for VideoStitcherService.listVodAdTagDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodAdTagDetailsResponse {
/// A List of ad tag details.
#[prost(message, repeated, tag = "1")]
pub vod_ad_tag_details: ::prost::alloc::vec::Vec<VodAdTagDetail>,
/// The pagination token.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.getVodAdTagDetail
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodAdTagDetailRequest {
/// Required. The name of the ad tag detail for the specified VOD session, in
/// the form of
/// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listLiveAdTagDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveAdTagDetailsRequest {
/// Required. The resource parent in the form of
/// `projects/{project}/locations/{location}/liveSessions/{live_session}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// The maximum number of items to return.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// The pagination token returned from a previous List request.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// Response message for VideoStitcherService.listLiveAdTagDetails.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveAdTagDetailsResponse {
/// A list of live session ad tag details.
#[prost(message, repeated, tag = "1")]
pub live_ad_tag_details: ::prost::alloc::vec::Vec<LiveAdTagDetail>,
/// The pagination token.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.getLiveAdTagDetail
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLiveAdTagDetailRequest {
/// Required. The resource name in the form of
/// `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.createSlate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSlateRequest {
/// Required. The project in which the slate should be created, in the form of
/// `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The unique identifier for the slate.
/// This value should conform to RFC-1034, which restricts to
/// lower-case letters, numbers, and hyphen, with the first character a
/// letter, the last a letter or a number, and a 63 character maximum.
#[prost(string, tag = "2")]
pub slate_id: ::prost::alloc::string::String,
/// Required. The slate to create.
#[prost(message, optional, tag = "3")]
pub slate: ::core::option::Option<Slate>,
/// A request ID to identify requests. Specify a unique request ID
/// so that if you must retry your request, the server will know to ignore
/// the request if it has already been completed. The server will guarantee
/// that for at least 60 minutes since the first request.
///
/// For example, consider a situation where you make an initial request and the
/// request times out. If you make the request again with the same request ID,
/// the server can check if original operation with the same request ID was
/// received, and if so, will ignore the second request. This prevents clients
/// from accidentally creating duplicate commitments.
///
/// The request ID must be a valid UUID with the exception that zero UUID is
/// not supported `(00000000-0000-0000-0000-000000000000)`.
#[prost(string, tag = "4")]
pub request_id: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.getSlate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSlateRequest {
/// Required. The name of the slate to be retrieved, of the slate, in the form
/// of `projects/{project_number}/locations/{location}/slates/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listSlates.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSlatesRequest {
/// Required. The project to list slates, in the form of
/// `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Requested page size. Server may return fewer items than requested.
/// If unspecified, server will pick an appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// A token identifying a page of results the server should return.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Filtering results
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
/// Hint for how to order the results
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
/// Response message for VideoStitcherService.listSlates.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSlatesResponse {
/// The list of slates
#[prost(message, repeated, tag = "1")]
pub slates: ::prost::alloc::vec::Vec<Slate>,
/// A token identifying a page of results the server should return.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations that could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Request message for VideoStitcherService.updateSlate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSlateRequest {
/// Required. The resource with updated fields.
#[prost(message, optional, tag = "1")]
pub slate: ::core::option::Option<Slate>,
/// Required. The update mask which specifies fields which should be updated.
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Request message for VideoStitcherService.deleteSlate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSlateRequest {
/// Required. The name of the slate to be deleted, in the form of
/// `projects/{project_number}/locations/{location}/slates/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.createLiveSession.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateLiveSessionRequest {
/// Required. The project and location in which the live session should be
/// created, in the form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. Parameters for creating a live session.
#[prost(message, optional, tag = "2")]
pub live_session: ::core::option::Option<LiveSession>,
}
/// Request message for VideoStitcherService.getSession.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLiveSessionRequest {
/// Required. The name of the live session, in the form of
/// `projects/{project_number}/locations/{location}/liveSessions/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.createLiveConfig
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateLiveConfigRequest {
/// Required. The project in which the live config should be created, in
/// the form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The unique identifier ID to use for the live config.
#[prost(string, tag = "2")]
pub live_config_id: ::prost::alloc::string::String,
/// Required. The live config resource to create.
#[prost(message, optional, tag = "3")]
pub live_config: ::core::option::Option<LiveConfig>,
/// A request ID to identify requests. Specify a unique request ID
/// so that if you must retry your request, the server will know to ignore
/// the request if it has already been completed. The server will guarantee
/// that for at least 60 minutes since the first request.
///
/// For example, consider a situation where you make an initial request and the
/// request times out. If you make the request again with the same request ID,
/// the server can check if original operation with the same request ID was
/// received, and if so, will ignore the second request. This prevents clients
/// from accidentally creating duplicate commitments.
///
/// The request ID must be a valid UUID with the exception that zero UUID is
/// not supported `(00000000-0000-0000-0000-000000000000)`.
#[prost(string, tag = "4")]
pub request_id: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listLiveConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveConfigsRequest {
/// Required. The project that contains the list of live configs, in the
/// form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// The maximum number of items to return.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// The next_page_token value returned from a previous List request, if any.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. The filter to apply to list results (see
/// [Filtering](<https://google.aip.dev/160>)).
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
/// Optional. Specifies the ordering of results following
/// [Cloud API
/// syntax](<https://cloud.google.com/apis/design/design_patterns#sorting_order>).
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
/// Response message for VideoStitcher.ListLiveConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveConfigsResponse {
/// List of live configs.
#[prost(message, repeated, tag = "1")]
pub live_configs: ::prost::alloc::vec::Vec<LiveConfig>,
/// The pagination token.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations that could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Request message for VideoStitcherService.getLiveConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLiveConfigRequest {
/// Required. The name of the live config to be retrieved, in the form
/// of
/// `projects/{project_number}/locations/{location}/liveConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.deleteLiveConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteLiveConfigRequest {
/// Required. The name of the live config to be deleted, in the form of
/// `projects/{project_number}/locations/{location}/liveConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.updateLiveConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateLiveConfigRequest {
/// Required. The LiveConfig resource which replaces the resource on the
/// server.
#[prost(message, optional, tag = "1")]
pub live_config: ::core::option::Option<LiveConfig>,
/// Required. The update mask applies to the resource.
/// For the `FieldMask` definition, see
/// <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Request message for VideoStitcherService.createVodConfig
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVodConfigRequest {
/// Required. The project in which the VOD config should be created, in
/// the form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The unique identifier ID to use for the VOD config.
#[prost(string, tag = "2")]
pub vod_config_id: ::prost::alloc::string::String,
/// Required. The VOD config resource to create.
#[prost(message, optional, tag = "3")]
pub vod_config: ::core::option::Option<VodConfig>,
/// Optional. A request ID to identify requests. Specify a unique request ID
/// so that if you must retry your request, the server will know to ignore
/// the request if it has already been completed. The server will guarantee
/// that for at least 60 minutes since the first request.
///
/// For example, consider a situation where you make an initial request and the
/// request times out. If you make the request again with the same request ID,
/// the server can check if original operation with the same request ID was
/// received, and if so, will ignore the second request. This prevents clients
/// from accidentally creating duplicate commitments.
///
/// The request ID must be a valid UUID with the exception that zero UUID is
/// not supported `(00000000-0000-0000-0000-000000000000)`.
#[prost(string, tag = "4")]
pub request_id: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.listVodConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodConfigsRequest {
/// Required. The project that contains the list of VOD configs, in the
/// form of `projects/{project_number}/locations/{location}`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. The maximum number of items to return.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. The next_page_token value returned from a previous List request,
/// if any.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. The filter to apply to list results (see
/// [Filtering](<https://google.aip.dev/160>)).
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
/// Optional. Specifies the ordering of results following
/// [Cloud API
/// syntax](<https://cloud.google.com/apis/design/design_patterns#sorting_order>).
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
/// Response message for VideoStitcher.ListVodConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodConfigsResponse {
/// List of VOD configs.
#[prost(message, repeated, tag = "1")]
pub vod_configs: ::prost::alloc::vec::Vec<VodConfig>,
/// The pagination token.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations that could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Request message for VideoStitcherService.getVodConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodConfigRequest {
/// Required. The name of the VOD config to be retrieved, in the form
/// of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.deleteVodConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteVodConfigRequest {
/// Required. The name of the VOD config to be deleted, in the form of
/// `projects/{project_number}/locations/{location}/vodConfigs/{id}`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Request message for VideoStitcherService.updateVodConfig.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateVodConfigRequest {
/// Required. The VOD config resource which replaces the resource on the
/// server.
#[prost(message, optional, tag = "1")]
pub vod_config: ::core::option::Option<VodConfig>,
/// Required. The update mask applies to the resource.
/// For the `FieldMask` definition, see
/// <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Represents the metadata of the long-running operation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationMetadata {
/// The time the operation was created.
#[prost(message, optional, tag = "1")]
pub create_time: ::core::option::Option<::prost_types::Timestamp>,
/// The time the operation finished running.
#[prost(message, optional, tag = "2")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
/// Server-defined resource path for the target of the operation.
#[prost(string, tag = "3")]
pub target: ::prost::alloc::string::String,
/// Name of the verb executed by the operation.
#[prost(string, tag = "4")]
pub verb: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod video_stitcher_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// Video-On-Demand content stitching API allows you to insert ads
/// into (VoD) video on demand files. You will be able to render custom
/// scrubber bars with highlighted ads, enforce ad policies, allow
/// seamless playback and tracking on native players and monetize
/// content with any standard VMAP compliant ad server.
#[derive(Debug, Clone)]
pub struct VideoStitcherServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> VideoStitcherServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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,
) -> VideoStitcherServiceClient<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> + std::marker::Send + std::marker::Sync,
{
VideoStitcherServiceClient::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
}
/// Creates a new CDN key.
pub async fn create_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::CreateCdnKeyRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateCdnKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateCdnKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all CDN keys in the specified project and location.
pub async fn list_cdn_keys(
&mut self,
request: impl tonic::IntoRequest<super::ListCdnKeysRequest>,
) -> std::result::Result<
tonic::Response<super::ListCdnKeysResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListCdnKeys",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListCdnKeys",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified CDN key.
pub async fn get_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::GetCdnKeyRequest>,
) -> std::result::Result<tonic::Response<super::CdnKey>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetCdnKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetCdnKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified CDN key.
pub async fn delete_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::DeleteCdnKeyRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteCdnKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"DeleteCdnKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified CDN key. Only update fields specified
/// in the call method body.
pub async fn update_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCdnKeyRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateCdnKey",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"UpdateCdnKey",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a client side playback VOD session and returns the full
/// tracking and playback metadata of the session.
pub async fn create_vod_session(
&mut self,
request: impl tonic::IntoRequest<super::CreateVodSessionRequest>,
) -> std::result::Result<tonic::Response<super::VodSession>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateVodSession",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateVodSession",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the full tracking, playback metadata, and relevant ad-ops
/// logs for the specified VOD session.
pub async fn get_vod_session(
&mut self,
request: impl tonic::IntoRequest<super::GetVodSessionRequest>,
) -> std::result::Result<tonic::Response<super::VodSession>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodSession",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetVodSession",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns a list of detailed stitching information of the specified VOD
/// session.
pub async fn list_vod_stitch_details(
&mut self,
request: impl tonic::IntoRequest<super::ListVodStitchDetailsRequest>,
) -> std::result::Result<
tonic::Response<super::ListVodStitchDetailsResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListVodStitchDetails",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListVodStitchDetails",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified stitching information for the specified VOD session.
pub async fn get_vod_stitch_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetVodStitchDetailRequest>,
) -> std::result::Result<
tonic::Response<super::VodStitchDetail>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodStitchDetail",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetVodStitchDetail",
),
);
self.inner.unary(req, path, codec).await
}
/// Return the list of ad tag details for the specified VOD session.
pub async fn list_vod_ad_tag_details(
&mut self,
request: impl tonic::IntoRequest<super::ListVodAdTagDetailsRequest>,
) -> std::result::Result<
tonic::Response<super::ListVodAdTagDetailsResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListVodAdTagDetails",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListVodAdTagDetails",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified ad tag detail for the specified VOD session.
pub async fn get_vod_ad_tag_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetVodAdTagDetailRequest>,
) -> std::result::Result<tonic::Response<super::VodAdTagDetail>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodAdTagDetail",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetVodAdTagDetail",
),
);
self.inner.unary(req, path, codec).await
}
/// Return the list of ad tag details for the specified live session.
pub async fn list_live_ad_tag_details(
&mut self,
request: impl tonic::IntoRequest<super::ListLiveAdTagDetailsRequest>,
) -> std::result::Result<
tonic::Response<super::ListLiveAdTagDetailsResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListLiveAdTagDetails",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListLiveAdTagDetails",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified ad tag detail for the specified live session.
pub async fn get_live_ad_tag_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetLiveAdTagDetailRequest>,
) -> std::result::Result<
tonic::Response<super::LiveAdTagDetail>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetLiveAdTagDetail",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetLiveAdTagDetail",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a slate.
pub async fn create_slate(
&mut self,
request: impl tonic::IntoRequest<super::CreateSlateRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateSlate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateSlate",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all slates in the specified project and location.
pub async fn list_slates(
&mut self,
request: impl tonic::IntoRequest<super::ListSlatesRequest>,
) -> std::result::Result<
tonic::Response<super::ListSlatesResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListSlates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListSlates",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified slate.
pub async fn get_slate(
&mut self,
request: impl tonic::IntoRequest<super::GetSlateRequest>,
) -> std::result::Result<tonic::Response<super::Slate>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetSlate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetSlate",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified slate.
pub async fn update_slate(
&mut self,
request: impl tonic::IntoRequest<super::UpdateSlateRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateSlate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"UpdateSlate",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified slate.
pub async fn delete_slate(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSlateRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteSlate",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"DeleteSlate",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new live session.
pub async fn create_live_session(
&mut self,
request: impl tonic::IntoRequest<super::CreateLiveSessionRequest>,
) -> std::result::Result<tonic::Response<super::LiveSession>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateLiveSession",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateLiveSession",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the details for the specified live session.
pub async fn get_live_session(
&mut self,
request: impl tonic::IntoRequest<super::GetLiveSessionRequest>,
) -> std::result::Result<tonic::Response<super::LiveSession>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetLiveSession",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetLiveSession",
),
);
self.inner.unary(req, path, codec).await
}
/// Registers the live config with the provided unique ID in
/// the specified region.
pub async fn create_live_config(
&mut self,
request: impl tonic::IntoRequest<super::CreateLiveConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateLiveConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateLiveConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all live configs managed by the Video Stitcher that
/// belong to the specified project and region.
pub async fn list_live_configs(
&mut self,
request: impl tonic::IntoRequest<super::ListLiveConfigsRequest>,
) -> std::result::Result<
tonic::Response<super::ListLiveConfigsResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListLiveConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListLiveConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified live config managed by the Video
/// Stitcher service.
pub async fn get_live_config(
&mut self,
request: impl tonic::IntoRequest<super::GetLiveConfigRequest>,
) -> std::result::Result<tonic::Response<super::LiveConfig>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetLiveConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetLiveConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified live config.
pub async fn delete_live_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteLiveConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteLiveConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"DeleteLiveConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified LiveConfig. Only update fields specified
/// in the call method body.
pub async fn update_live_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateLiveConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateLiveConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"UpdateLiveConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Registers the VOD config with the provided unique ID in
/// the specified region.
pub async fn create_vod_config(
&mut self,
request: impl tonic::IntoRequest<super::CreateVodConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateVodConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"CreateVodConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all VOD configs managed by the Video Stitcher API that
/// belong to the specified project and region.
pub async fn list_vod_configs(
&mut self,
request: impl tonic::IntoRequest<super::ListVodConfigsRequest>,
) -> std::result::Result<
tonic::Response<super::ListVodConfigsResponse>,
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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListVodConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"ListVodConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the specified VOD config managed by the Video
/// Stitcher API service.
pub async fn get_vod_config(
&mut self,
request: impl tonic::IntoRequest<super::GetVodConfigRequest>,
) -> std::result::Result<tonic::Response<super::VodConfig>, 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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"GetVodConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the specified VOD config.
pub async fn delete_vod_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteVodConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteVodConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"DeleteVodConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the specified VOD config. Only update fields specified
/// in the call method body.
pub async fn update_vod_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateVodConfigRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::super::super::longrunning::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(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateVodConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.video.stitcher.v1.VideoStitcherService",
"UpdateVodConfig",
),
);
self.inner.unary(req, path, codec).await
}
}
}