/usr/share/gocode/src/google.golang.org/genproto/googleapis/firestore/v1beta1/firestore.pb.go is in golang-google-genproto-dev 0.0~git20171123.7f0da29-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/v1beta1/firestore.proto
package firestore
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/protobuf/ptypes/empty"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The type of change.
type TargetChange_TargetChangeType int32
const (
// No change has occurred. Used only to send an updated `resume_token`.
TargetChange_NO_CHANGE TargetChange_TargetChangeType = 0
// The targets have been added.
TargetChange_ADD TargetChange_TargetChangeType = 1
// The targets have been removed.
TargetChange_REMOVE TargetChange_TargetChangeType = 2
// The targets reflect all changes committed before the targets were added
// to the stream.
//
// This will be sent after or with a `read_time` that is greater than or
// equal to the time at which the targets were added.
//
// Listeners can wait for this change if read-after-write semantics
// are desired.
TargetChange_CURRENT TargetChange_TargetChangeType = 3
// The targets have been reset, and a new initial state for the targets
// will be returned in subsequent changes.
//
// After the initial state is complete, `CURRENT` will be returned even
// if the target was previously indicated to be `CURRENT`.
TargetChange_RESET TargetChange_TargetChangeType = 4
)
var TargetChange_TargetChangeType_name = map[int32]string{
0: "NO_CHANGE",
1: "ADD",
2: "REMOVE",
3: "CURRENT",
4: "RESET",
}
var TargetChange_TargetChangeType_value = map[string]int32{
"NO_CHANGE": 0,
"ADD": 1,
"REMOVE": 2,
"CURRENT": 3,
"RESET": 4,
}
func (x TargetChange_TargetChangeType) String() string {
return proto.EnumName(TargetChange_TargetChangeType_name, int32(x))
}
func (TargetChange_TargetChangeType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{20, 0}
}
// The request for [Firestore.GetDocument][google.firestore.v1beta1.Firestore.GetDocument].
type GetDocumentRequest struct {
// The resource name of the Document to get. In the format:
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The fields to return. If not set, returns all fields.
//
// If the document has a field that is not present in this mask, that field
// will not be returned in the response.
Mask *DocumentMask `protobuf:"bytes,2,opt,name=mask" json:"mask,omitempty"`
// The consistency mode for this transaction.
// If not set, defaults to strong consistency.
//
// Types that are valid to be assigned to ConsistencySelector:
// *GetDocumentRequest_Transaction
// *GetDocumentRequest_ReadTime
ConsistencySelector isGetDocumentRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
}
func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} }
func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*GetDocumentRequest) ProtoMessage() {}
func (*GetDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
type isGetDocumentRequest_ConsistencySelector interface {
isGetDocumentRequest_ConsistencySelector()
}
type GetDocumentRequest_Transaction struct {
Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3,oneof"`
}
type GetDocumentRequest_ReadTime struct {
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=read_time,json=readTime,oneof"`
}
func (*GetDocumentRequest_Transaction) isGetDocumentRequest_ConsistencySelector() {}
func (*GetDocumentRequest_ReadTime) isGetDocumentRequest_ConsistencySelector() {}
func (m *GetDocumentRequest) GetConsistencySelector() isGetDocumentRequest_ConsistencySelector {
if m != nil {
return m.ConsistencySelector
}
return nil
}
func (m *GetDocumentRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetDocumentRequest) GetMask() *DocumentMask {
if m != nil {
return m.Mask
}
return nil
}
func (m *GetDocumentRequest) GetTransaction() []byte {
if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_Transaction); ok {
return x.Transaction
}
return nil
}
func (m *GetDocumentRequest) GetReadTime() *google_protobuf1.Timestamp {
if x, ok := m.GetConsistencySelector().(*GetDocumentRequest_ReadTime); ok {
return x.ReadTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*GetDocumentRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _GetDocumentRequest_OneofMarshaler, _GetDocumentRequest_OneofUnmarshaler, _GetDocumentRequest_OneofSizer, []interface{}{
(*GetDocumentRequest_Transaction)(nil),
(*GetDocumentRequest_ReadTime)(nil),
}
}
func _GetDocumentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*GetDocumentRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *GetDocumentRequest_Transaction:
b.EncodeVarint(3<<3 | proto.WireBytes)
b.EncodeRawBytes(x.Transaction)
case *GetDocumentRequest_ReadTime:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ReadTime); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("GetDocumentRequest.ConsistencySelector has unexpected type %T", x)
}
return nil
}
func _GetDocumentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*GetDocumentRequest)
switch tag {
case 3: // consistency_selector.transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.ConsistencySelector = &GetDocumentRequest_Transaction{x}
return true, err
case 5: // consistency_selector.read_time
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Timestamp)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &GetDocumentRequest_ReadTime{msg}
return true, err
default:
return false, nil
}
}
func _GetDocumentRequest_OneofSizer(msg proto.Message) (n int) {
m := msg.(*GetDocumentRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *GetDocumentRequest_Transaction:
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Transaction)))
n += len(x.Transaction)
case *GetDocumentRequest_ReadTime:
s := proto.Size(x.ReadTime)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The request for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
type ListDocumentsRequest struct {
// The parent resource name. In the format:
// `projects/{project_id}/databases/{database_id}/documents` or
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// For example:
// `projects/my-project/databases/my-database/documents` or
// `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The collection ID, relative to `parent`, to list. For example: `chatrooms`
// or `messages`.
CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId" json:"collection_id,omitempty"`
// The maximum number of documents to return.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// The `next_page_token` value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
// The order to sort results by. For example: `priority desc, name`.
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy" json:"order_by,omitempty"`
// The fields to return. If not set, returns all fields.
//
// If a document has a field that is not present in this mask, that field
// will not be returned in the response.
Mask *DocumentMask `protobuf:"bytes,7,opt,name=mask" json:"mask,omitempty"`
// The consistency mode for this transaction.
// If not set, defaults to strong consistency.
//
// Types that are valid to be assigned to ConsistencySelector:
// *ListDocumentsRequest_Transaction
// *ListDocumentsRequest_ReadTime
ConsistencySelector isListDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
// If the list should show missing documents. A missing document is a
// document that does not exist but has sub-documents. These documents will
// be returned with a key but will not have fields, [Document.create_time][google.firestore.v1beta1.Document.create_time],
// or [Document.update_time][google.firestore.v1beta1.Document.update_time] set.
//
// Requests with `show_missing` may not specify `where` or
// `order_by`.
ShowMissing bool `protobuf:"varint,12,opt,name=show_missing,json=showMissing" json:"show_missing,omitempty"`
}
func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} }
func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) }
func (*ListDocumentsRequest) ProtoMessage() {}
func (*ListDocumentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
type isListDocumentsRequest_ConsistencySelector interface {
isListDocumentsRequest_ConsistencySelector()
}
type ListDocumentsRequest_Transaction struct {
Transaction []byte `protobuf:"bytes,8,opt,name=transaction,proto3,oneof"`
}
type ListDocumentsRequest_ReadTime struct {
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,10,opt,name=read_time,json=readTime,oneof"`
}
func (*ListDocumentsRequest_Transaction) isListDocumentsRequest_ConsistencySelector() {}
func (*ListDocumentsRequest_ReadTime) isListDocumentsRequest_ConsistencySelector() {}
func (m *ListDocumentsRequest) GetConsistencySelector() isListDocumentsRequest_ConsistencySelector {
if m != nil {
return m.ConsistencySelector
}
return nil
}
func (m *ListDocumentsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListDocumentsRequest) GetCollectionId() string {
if m != nil {
return m.CollectionId
}
return ""
}
func (m *ListDocumentsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListDocumentsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
func (m *ListDocumentsRequest) GetOrderBy() string {
if m != nil {
return m.OrderBy
}
return ""
}
func (m *ListDocumentsRequest) GetMask() *DocumentMask {
if m != nil {
return m.Mask
}
return nil
}
func (m *ListDocumentsRequest) GetTransaction() []byte {
if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_Transaction); ok {
return x.Transaction
}
return nil
}
func (m *ListDocumentsRequest) GetReadTime() *google_protobuf1.Timestamp {
if x, ok := m.GetConsistencySelector().(*ListDocumentsRequest_ReadTime); ok {
return x.ReadTime
}
return nil
}
func (m *ListDocumentsRequest) GetShowMissing() bool {
if m != nil {
return m.ShowMissing
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ListDocumentsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ListDocumentsRequest_OneofMarshaler, _ListDocumentsRequest_OneofUnmarshaler, _ListDocumentsRequest_OneofSizer, []interface{}{
(*ListDocumentsRequest_Transaction)(nil),
(*ListDocumentsRequest_ReadTime)(nil),
}
}
func _ListDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ListDocumentsRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *ListDocumentsRequest_Transaction:
b.EncodeVarint(8<<3 | proto.WireBytes)
b.EncodeRawBytes(x.Transaction)
case *ListDocumentsRequest_ReadTime:
b.EncodeVarint(10<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ReadTime); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ListDocumentsRequest.ConsistencySelector has unexpected type %T", x)
}
return nil
}
func _ListDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ListDocumentsRequest)
switch tag {
case 8: // consistency_selector.transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.ConsistencySelector = &ListDocumentsRequest_Transaction{x}
return true, err
case 10: // consistency_selector.read_time
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Timestamp)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &ListDocumentsRequest_ReadTime{msg}
return true, err
default:
return false, nil
}
}
func _ListDocumentsRequest_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ListDocumentsRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *ListDocumentsRequest_Transaction:
n += proto.SizeVarint(8<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Transaction)))
n += len(x.Transaction)
case *ListDocumentsRequest_ReadTime:
s := proto.Size(x.ReadTime)
n += proto.SizeVarint(10<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The response for [Firestore.ListDocuments][google.firestore.v1beta1.Firestore.ListDocuments].
type ListDocumentsResponse struct {
// The Documents found.
Documents []*Document `protobuf:"bytes,1,rep,name=documents" json:"documents,omitempty"`
// The next page token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} }
func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) }
func (*ListDocumentsResponse) ProtoMessage() {}
func (*ListDocumentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *ListDocumentsResponse) GetDocuments() []*Document {
if m != nil {
return m.Documents
}
return nil
}
func (m *ListDocumentsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// The request for [Firestore.CreateDocument][google.firestore.v1beta1.Firestore.CreateDocument].
type CreateDocumentRequest struct {
// The parent resource. For example:
// `projects/{project_id}/databases/{database_id}/documents` or
// `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The collection ID, relative to `parent`, to list. For example: `chatrooms`.
CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId" json:"collection_id,omitempty"`
// The client-assigned document ID to use for this document.
//
// Optional. If not specified, an ID will be assigned by the service.
DocumentId string `protobuf:"bytes,3,opt,name=document_id,json=documentId" json:"document_id,omitempty"`
// The document to create. `name` must not be set.
Document *Document `protobuf:"bytes,4,opt,name=document" json:"document,omitempty"`
// The fields to return. If not set, returns all fields.
//
// If the document has a field that is not present in this mask, that field
// will not be returned in the response.
Mask *DocumentMask `protobuf:"bytes,5,opt,name=mask" json:"mask,omitempty"`
}
func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} }
func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*CreateDocumentRequest) ProtoMessage() {}
func (*CreateDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *CreateDocumentRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateDocumentRequest) GetCollectionId() string {
if m != nil {
return m.CollectionId
}
return ""
}
func (m *CreateDocumentRequest) GetDocumentId() string {
if m != nil {
return m.DocumentId
}
return ""
}
func (m *CreateDocumentRequest) GetDocument() *Document {
if m != nil {
return m.Document
}
return nil
}
func (m *CreateDocumentRequest) GetMask() *DocumentMask {
if m != nil {
return m.Mask
}
return nil
}
// The request for [Firestore.UpdateDocument][google.firestore.v1beta1.Firestore.UpdateDocument].
type UpdateDocumentRequest struct {
// The updated document.
// Creates the document if it does not already exist.
Document *Document `protobuf:"bytes,1,opt,name=document" json:"document,omitempty"`
// The fields to update.
// None of the field paths in the mask may contain a reserved name.
//
// If the document exists on the server and has fields not referenced in the
// mask, they are left unchanged.
// Fields referenced in the mask, but not present in the input document, are
// deleted from the document on the server.
UpdateMask *DocumentMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
// The fields to return. If not set, returns all fields.
//
// If the document has a field that is not present in this mask, that field
// will not be returned in the response.
Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask" json:"mask,omitempty"`
// An optional precondition on the document.
// The request will fail if this is set and not met by the target document.
CurrentDocument *Precondition `protobuf:"bytes,4,opt,name=current_document,json=currentDocument" json:"current_document,omitempty"`
}
func (m *UpdateDocumentRequest) Reset() { *m = UpdateDocumentRequest{} }
func (m *UpdateDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateDocumentRequest) ProtoMessage() {}
func (*UpdateDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *UpdateDocumentRequest) GetDocument() *Document {
if m != nil {
return m.Document
}
return nil
}
func (m *UpdateDocumentRequest) GetUpdateMask() *DocumentMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func (m *UpdateDocumentRequest) GetMask() *DocumentMask {
if m != nil {
return m.Mask
}
return nil
}
func (m *UpdateDocumentRequest) GetCurrentDocument() *Precondition {
if m != nil {
return m.CurrentDocument
}
return nil
}
// The request for [Firestore.DeleteDocument][google.firestore.v1beta1.Firestore.DeleteDocument].
type DeleteDocumentRequest struct {
// The resource name of the Document to delete. In the format:
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// An optional precondition on the document.
// The request will fail if this is set and not met by the target document.
CurrentDocument *Precondition `protobuf:"bytes,2,opt,name=current_document,json=currentDocument" json:"current_document,omitempty"`
}
func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} }
func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteDocumentRequest) ProtoMessage() {}
func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *DeleteDocumentRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeleteDocumentRequest) GetCurrentDocument() *Precondition {
if m != nil {
return m.CurrentDocument
}
return nil
}
// The request for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
type BatchGetDocumentsRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The names of the documents to retrieve. In the format:
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// The request will fail if any of the document is not a child resource of the
// given `database`. Duplicate names will be elided.
Documents []string `protobuf:"bytes,2,rep,name=documents" json:"documents,omitempty"`
// The fields to return. If not set, returns all fields.
//
// If a document has a field that is not present in this mask, that field will
// not be returned in the response.
Mask *DocumentMask `protobuf:"bytes,3,opt,name=mask" json:"mask,omitempty"`
// The consistency mode for this transaction.
// If not set, defaults to strong consistency.
//
// Types that are valid to be assigned to ConsistencySelector:
// *BatchGetDocumentsRequest_Transaction
// *BatchGetDocumentsRequest_NewTransaction
// *BatchGetDocumentsRequest_ReadTime
ConsistencySelector isBatchGetDocumentsRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
}
func (m *BatchGetDocumentsRequest) Reset() { *m = BatchGetDocumentsRequest{} }
func (m *BatchGetDocumentsRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetDocumentsRequest) ProtoMessage() {}
func (*BatchGetDocumentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
type isBatchGetDocumentsRequest_ConsistencySelector interface {
isBatchGetDocumentsRequest_ConsistencySelector()
}
type BatchGetDocumentsRequest_Transaction struct {
Transaction []byte `protobuf:"bytes,4,opt,name=transaction,proto3,oneof"`
}
type BatchGetDocumentsRequest_NewTransaction struct {
NewTransaction *TransactionOptions `protobuf:"bytes,5,opt,name=new_transaction,json=newTransaction,oneof"`
}
type BatchGetDocumentsRequest_ReadTime struct {
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,oneof"`
}
func (*BatchGetDocumentsRequest_Transaction) isBatchGetDocumentsRequest_ConsistencySelector() {}
func (*BatchGetDocumentsRequest_NewTransaction) isBatchGetDocumentsRequest_ConsistencySelector() {}
func (*BatchGetDocumentsRequest_ReadTime) isBatchGetDocumentsRequest_ConsistencySelector() {}
func (m *BatchGetDocumentsRequest) GetConsistencySelector() isBatchGetDocumentsRequest_ConsistencySelector {
if m != nil {
return m.ConsistencySelector
}
return nil
}
func (m *BatchGetDocumentsRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *BatchGetDocumentsRequest) GetDocuments() []string {
if m != nil {
return m.Documents
}
return nil
}
func (m *BatchGetDocumentsRequest) GetMask() *DocumentMask {
if m != nil {
return m.Mask
}
return nil
}
func (m *BatchGetDocumentsRequest) GetTransaction() []byte {
if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_Transaction); ok {
return x.Transaction
}
return nil
}
func (m *BatchGetDocumentsRequest) GetNewTransaction() *TransactionOptions {
if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_NewTransaction); ok {
return x.NewTransaction
}
return nil
}
func (m *BatchGetDocumentsRequest) GetReadTime() *google_protobuf1.Timestamp {
if x, ok := m.GetConsistencySelector().(*BatchGetDocumentsRequest_ReadTime); ok {
return x.ReadTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BatchGetDocumentsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BatchGetDocumentsRequest_OneofMarshaler, _BatchGetDocumentsRequest_OneofUnmarshaler, _BatchGetDocumentsRequest_OneofSizer, []interface{}{
(*BatchGetDocumentsRequest_Transaction)(nil),
(*BatchGetDocumentsRequest_NewTransaction)(nil),
(*BatchGetDocumentsRequest_ReadTime)(nil),
}
}
func _BatchGetDocumentsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BatchGetDocumentsRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *BatchGetDocumentsRequest_Transaction:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.Transaction)
case *BatchGetDocumentsRequest_NewTransaction:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NewTransaction); err != nil {
return err
}
case *BatchGetDocumentsRequest_ReadTime:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ReadTime); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("BatchGetDocumentsRequest.ConsistencySelector has unexpected type %T", x)
}
return nil
}
func _BatchGetDocumentsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BatchGetDocumentsRequest)
switch tag {
case 4: // consistency_selector.transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.ConsistencySelector = &BatchGetDocumentsRequest_Transaction{x}
return true, err
case 5: // consistency_selector.new_transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TransactionOptions)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &BatchGetDocumentsRequest_NewTransaction{msg}
return true, err
case 7: // consistency_selector.read_time
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Timestamp)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &BatchGetDocumentsRequest_ReadTime{msg}
return true, err
default:
return false, nil
}
}
func _BatchGetDocumentsRequest_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BatchGetDocumentsRequest)
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *BatchGetDocumentsRequest_Transaction:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Transaction)))
n += len(x.Transaction)
case *BatchGetDocumentsRequest_NewTransaction:
s := proto.Size(x.NewTransaction)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BatchGetDocumentsRequest_ReadTime:
s := proto.Size(x.ReadTime)
n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The streamed response for [Firestore.BatchGetDocuments][google.firestore.v1beta1.Firestore.BatchGetDocuments].
type BatchGetDocumentsResponse struct {
// A single result.
// This can be empty if the server is just returning a transaction.
//
// Types that are valid to be assigned to Result:
// *BatchGetDocumentsResponse_Found
// *BatchGetDocumentsResponse_Missing
Result isBatchGetDocumentsResponse_Result `protobuf_oneof:"result"`
// The transaction that was started as part of this request.
// Will only be set in the first response, and only if
// [BatchGetDocumentsRequest.new_transaction][google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction] was set in the request.
Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`
// The time at which the document was read.
// This may be monotically increasing, in this case the previous documents in
// the result stream are guaranteed not to have changed between their
// read_time and this one.
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime" json:"read_time,omitempty"`
}
func (m *BatchGetDocumentsResponse) Reset() { *m = BatchGetDocumentsResponse{} }
func (m *BatchGetDocumentsResponse) String() string { return proto.CompactTextString(m) }
func (*BatchGetDocumentsResponse) ProtoMessage() {}
func (*BatchGetDocumentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
type isBatchGetDocumentsResponse_Result interface {
isBatchGetDocumentsResponse_Result()
}
type BatchGetDocumentsResponse_Found struct {
Found *Document `protobuf:"bytes,1,opt,name=found,oneof"`
}
type BatchGetDocumentsResponse_Missing struct {
Missing string `protobuf:"bytes,2,opt,name=missing,oneof"`
}
func (*BatchGetDocumentsResponse_Found) isBatchGetDocumentsResponse_Result() {}
func (*BatchGetDocumentsResponse_Missing) isBatchGetDocumentsResponse_Result() {}
func (m *BatchGetDocumentsResponse) GetResult() isBatchGetDocumentsResponse_Result {
if m != nil {
return m.Result
}
return nil
}
func (m *BatchGetDocumentsResponse) GetFound() *Document {
if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Found); ok {
return x.Found
}
return nil
}
func (m *BatchGetDocumentsResponse) GetMissing() string {
if x, ok := m.GetResult().(*BatchGetDocumentsResponse_Missing); ok {
return x.Missing
}
return ""
}
func (m *BatchGetDocumentsResponse) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
func (m *BatchGetDocumentsResponse) GetReadTime() *google_protobuf1.Timestamp {
if m != nil {
return m.ReadTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*BatchGetDocumentsResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _BatchGetDocumentsResponse_OneofMarshaler, _BatchGetDocumentsResponse_OneofUnmarshaler, _BatchGetDocumentsResponse_OneofSizer, []interface{}{
(*BatchGetDocumentsResponse_Found)(nil),
(*BatchGetDocumentsResponse_Missing)(nil),
}
}
func _BatchGetDocumentsResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*BatchGetDocumentsResponse)
// result
switch x := m.Result.(type) {
case *BatchGetDocumentsResponse_Found:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Found); err != nil {
return err
}
case *BatchGetDocumentsResponse_Missing:
b.EncodeVarint(2<<3 | proto.WireBytes)
b.EncodeStringBytes(x.Missing)
case nil:
default:
return fmt.Errorf("BatchGetDocumentsResponse.Result has unexpected type %T", x)
}
return nil
}
func _BatchGetDocumentsResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*BatchGetDocumentsResponse)
switch tag {
case 1: // result.found
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Document)
err := b.DecodeMessage(msg)
m.Result = &BatchGetDocumentsResponse_Found{msg}
return true, err
case 2: // result.missing
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Result = &BatchGetDocumentsResponse_Missing{x}
return true, err
default:
return false, nil
}
}
func _BatchGetDocumentsResponse_OneofSizer(msg proto.Message) (n int) {
m := msg.(*BatchGetDocumentsResponse)
// result
switch x := m.Result.(type) {
case *BatchGetDocumentsResponse_Found:
s := proto.Size(x.Found)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *BatchGetDocumentsResponse_Missing:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Missing)))
n += len(x.Missing)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The request for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
type BeginTransactionRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The options for the transaction.
// Defaults to a read-write transaction.
Options *TransactionOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
}
func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} }
func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) }
func (*BeginTransactionRequest) ProtoMessage() {}
func (*BeginTransactionRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
func (m *BeginTransactionRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *BeginTransactionRequest) GetOptions() *TransactionOptions {
if m != nil {
return m.Options
}
return nil
}
// The response for [Firestore.BeginTransaction][google.firestore.v1beta1.Firestore.BeginTransaction].
type BeginTransactionResponse struct {
// The transaction that was started.
Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
}
func (m *BeginTransactionResponse) Reset() { *m = BeginTransactionResponse{} }
func (m *BeginTransactionResponse) String() string { return proto.CompactTextString(m) }
func (*BeginTransactionResponse) ProtoMessage() {}
func (*BeginTransactionResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
func (m *BeginTransactionResponse) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
// The request for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
type CommitRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The writes to apply.
//
// Always executed atomically and in order.
Writes []*Write `protobuf:"bytes,2,rep,name=writes" json:"writes,omitempty"`
// If set, applies all writes in this transaction, and commits it.
Transaction []byte `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`
}
func (m *CommitRequest) Reset() { *m = CommitRequest{} }
func (m *CommitRequest) String() string { return proto.CompactTextString(m) }
func (*CommitRequest) ProtoMessage() {}
func (*CommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
func (m *CommitRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *CommitRequest) GetWrites() []*Write {
if m != nil {
return m.Writes
}
return nil
}
func (m *CommitRequest) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
// The response for [Firestore.Commit][google.firestore.v1beta1.Firestore.Commit].
type CommitResponse struct {
// The result of applying the writes.
//
// This i-th write result corresponds to the i-th write in the
// request.
WriteResults []*WriteResult `protobuf:"bytes,1,rep,name=write_results,json=writeResults" json:"write_results,omitempty"`
// The time at which the commit occurred.
CommitTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=commit_time,json=commitTime" json:"commit_time,omitempty"`
}
func (m *CommitResponse) Reset() { *m = CommitResponse{} }
func (m *CommitResponse) String() string { return proto.CompactTextString(m) }
func (*CommitResponse) ProtoMessage() {}
func (*CommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} }
func (m *CommitResponse) GetWriteResults() []*WriteResult {
if m != nil {
return m.WriteResults
}
return nil
}
func (m *CommitResponse) GetCommitTime() *google_protobuf1.Timestamp {
if m != nil {
return m.CommitTime
}
return nil
}
// The request for [Firestore.Rollback][google.firestore.v1beta1.Firestore.Rollback].
type RollbackRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The transaction to roll back.
Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
}
func (m *RollbackRequest) Reset() { *m = RollbackRequest{} }
func (m *RollbackRequest) String() string { return proto.CompactTextString(m) }
func (*RollbackRequest) ProtoMessage() {}
func (*RollbackRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{12} }
func (m *RollbackRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *RollbackRequest) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
// The request for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
type RunQueryRequest struct {
// The parent resource name. In the format:
// `projects/{project_id}/databases/{database_id}/documents` or
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// For example:
// `projects/my-project/databases/my-database/documents` or
// `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The query to run.
//
// Types that are valid to be assigned to QueryType:
// *RunQueryRequest_StructuredQuery
QueryType isRunQueryRequest_QueryType `protobuf_oneof:"query_type"`
// The consistency mode for this transaction.
// If not set, defaults to strong consistency.
//
// Types that are valid to be assigned to ConsistencySelector:
// *RunQueryRequest_Transaction
// *RunQueryRequest_NewTransaction
// *RunQueryRequest_ReadTime
ConsistencySelector isRunQueryRequest_ConsistencySelector `protobuf_oneof:"consistency_selector"`
}
func (m *RunQueryRequest) Reset() { *m = RunQueryRequest{} }
func (m *RunQueryRequest) String() string { return proto.CompactTextString(m) }
func (*RunQueryRequest) ProtoMessage() {}
func (*RunQueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} }
type isRunQueryRequest_QueryType interface {
isRunQueryRequest_QueryType()
}
type isRunQueryRequest_ConsistencySelector interface {
isRunQueryRequest_ConsistencySelector()
}
type RunQueryRequest_StructuredQuery struct {
StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,oneof"`
}
type RunQueryRequest_Transaction struct {
Transaction []byte `protobuf:"bytes,5,opt,name=transaction,proto3,oneof"`
}
type RunQueryRequest_NewTransaction struct {
NewTransaction *TransactionOptions `protobuf:"bytes,6,opt,name=new_transaction,json=newTransaction,oneof"`
}
type RunQueryRequest_ReadTime struct {
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,oneof"`
}
func (*RunQueryRequest_StructuredQuery) isRunQueryRequest_QueryType() {}
func (*RunQueryRequest_Transaction) isRunQueryRequest_ConsistencySelector() {}
func (*RunQueryRequest_NewTransaction) isRunQueryRequest_ConsistencySelector() {}
func (*RunQueryRequest_ReadTime) isRunQueryRequest_ConsistencySelector() {}
func (m *RunQueryRequest) GetQueryType() isRunQueryRequest_QueryType {
if m != nil {
return m.QueryType
}
return nil
}
func (m *RunQueryRequest) GetConsistencySelector() isRunQueryRequest_ConsistencySelector {
if m != nil {
return m.ConsistencySelector
}
return nil
}
func (m *RunQueryRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *RunQueryRequest) GetStructuredQuery() *StructuredQuery {
if x, ok := m.GetQueryType().(*RunQueryRequest_StructuredQuery); ok {
return x.StructuredQuery
}
return nil
}
func (m *RunQueryRequest) GetTransaction() []byte {
if x, ok := m.GetConsistencySelector().(*RunQueryRequest_Transaction); ok {
return x.Transaction
}
return nil
}
func (m *RunQueryRequest) GetNewTransaction() *TransactionOptions {
if x, ok := m.GetConsistencySelector().(*RunQueryRequest_NewTransaction); ok {
return x.NewTransaction
}
return nil
}
func (m *RunQueryRequest) GetReadTime() *google_protobuf1.Timestamp {
if x, ok := m.GetConsistencySelector().(*RunQueryRequest_ReadTime); ok {
return x.ReadTime
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*RunQueryRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _RunQueryRequest_OneofMarshaler, _RunQueryRequest_OneofUnmarshaler, _RunQueryRequest_OneofSizer, []interface{}{
(*RunQueryRequest_StructuredQuery)(nil),
(*RunQueryRequest_Transaction)(nil),
(*RunQueryRequest_NewTransaction)(nil),
(*RunQueryRequest_ReadTime)(nil),
}
}
func _RunQueryRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*RunQueryRequest)
// query_type
switch x := m.QueryType.(type) {
case *RunQueryRequest_StructuredQuery:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StructuredQuery); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("RunQueryRequest.QueryType has unexpected type %T", x)
}
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *RunQueryRequest_Transaction:
b.EncodeVarint(5<<3 | proto.WireBytes)
b.EncodeRawBytes(x.Transaction)
case *RunQueryRequest_NewTransaction:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NewTransaction); err != nil {
return err
}
case *RunQueryRequest_ReadTime:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ReadTime); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("RunQueryRequest.ConsistencySelector has unexpected type %T", x)
}
return nil
}
func _RunQueryRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*RunQueryRequest)
switch tag {
case 2: // query_type.structured_query
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StructuredQuery)
err := b.DecodeMessage(msg)
m.QueryType = &RunQueryRequest_StructuredQuery{msg}
return true, err
case 5: // consistency_selector.transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.ConsistencySelector = &RunQueryRequest_Transaction{x}
return true, err
case 6: // consistency_selector.new_transaction
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TransactionOptions)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &RunQueryRequest_NewTransaction{msg}
return true, err
case 7: // consistency_selector.read_time
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Timestamp)
err := b.DecodeMessage(msg)
m.ConsistencySelector = &RunQueryRequest_ReadTime{msg}
return true, err
default:
return false, nil
}
}
func _RunQueryRequest_OneofSizer(msg proto.Message) (n int) {
m := msg.(*RunQueryRequest)
// query_type
switch x := m.QueryType.(type) {
case *RunQueryRequest_StructuredQuery:
s := proto.Size(x.StructuredQuery)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// consistency_selector
switch x := m.ConsistencySelector.(type) {
case *RunQueryRequest_Transaction:
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Transaction)))
n += len(x.Transaction)
case *RunQueryRequest_NewTransaction:
s := proto.Size(x.NewTransaction)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *RunQueryRequest_ReadTime:
s := proto.Size(x.ReadTime)
n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The response for [Firestore.RunQuery][google.firestore.v1beta1.Firestore.RunQuery].
type RunQueryResponse struct {
// The transaction that was started as part of this request.
// Can only be set in the first response, and only if
// [RunQueryRequest.new_transaction][google.firestore.v1beta1.RunQueryRequest.new_transaction] was set in the request.
// If set, no other fields will be set in this response.
Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
// A query result.
// Not set when reporting partial progress.
Document *Document `protobuf:"bytes,1,opt,name=document" json:"document,omitempty"`
// The time at which the document was read. This may be monotonically
// increasing; in this case, the previous documents in the result stream are
// guaranteed not to have changed between their `read_time` and this one.
//
// If the query returns no results, a response with `read_time` and no
// `document` will be sent, and this represents the time at which the query
// was run.
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime" json:"read_time,omitempty"`
// The number of results that have been skipped due to an offset between
// the last response and the current response.
SkippedResults int32 `protobuf:"varint,4,opt,name=skipped_results,json=skippedResults" json:"skipped_results,omitempty"`
}
func (m *RunQueryResponse) Reset() { *m = RunQueryResponse{} }
func (m *RunQueryResponse) String() string { return proto.CompactTextString(m) }
func (*RunQueryResponse) ProtoMessage() {}
func (*RunQueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{14} }
func (m *RunQueryResponse) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
func (m *RunQueryResponse) GetDocument() *Document {
if m != nil {
return m.Document
}
return nil
}
func (m *RunQueryResponse) GetReadTime() *google_protobuf1.Timestamp {
if m != nil {
return m.ReadTime
}
return nil
}
func (m *RunQueryResponse) GetSkippedResults() int32 {
if m != nil {
return m.SkippedResults
}
return 0
}
// The request for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
//
// The first request creates a stream, or resumes an existing one from a token.
//
// When creating a new stream, the server replies with a response containing
// only an ID and a token, to use in the next request.
//
// When resuming a stream, the server first streams any responses later than the
// given token, then a response containing only an up-to-date token, to use in
// the next request.
type WriteRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
// This is only required in the first message.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The ID of the write stream to resume.
// This may only be set in the first message. When left empty, a new write
// stream will be created.
StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"`
// The writes to apply.
//
// Always executed atomically and in order.
// This must be empty on the first request.
// This may be empty on the last request.
// This must not be empty on all other requests.
Writes []*Write `protobuf:"bytes,3,rep,name=writes" json:"writes,omitempty"`
// A stream token that was previously sent by the server.
//
// The client should set this field to the token from the most recent
// [WriteResponse][google.firestore.v1beta1.WriteResponse] it has received. This acknowledges that the client has
// received responses up to this token. After sending this token, earlier
// tokens may not be used anymore.
//
// The server may close the stream if there are too many unacknowledged
// responses.
//
// Leave this field unset when creating a new stream. To resume a stream at
// a specific point, set this field and the `stream_id` field.
//
// Leave this field unset when creating a new stream.
StreamToken []byte `protobuf:"bytes,4,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"`
// Labels associated with this write request.
Labels map[string]string `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *WriteRequest) Reset() { *m = WriteRequest{} }
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
func (*WriteRequest) ProtoMessage() {}
func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{15} }
func (m *WriteRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *WriteRequest) GetStreamId() string {
if m != nil {
return m.StreamId
}
return ""
}
func (m *WriteRequest) GetWrites() []*Write {
if m != nil {
return m.Writes
}
return nil
}
func (m *WriteRequest) GetStreamToken() []byte {
if m != nil {
return m.StreamToken
}
return nil
}
func (m *WriteRequest) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// The response for [Firestore.Write][google.firestore.v1beta1.Firestore.Write].
type WriteResponse struct {
// The ID of the stream.
// Only set on the first message, when a new stream was created.
StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"`
// A token that represents the position of this response in the stream.
// This can be used by a client to resume the stream at this point.
//
// This field is always set.
StreamToken []byte `protobuf:"bytes,2,opt,name=stream_token,json=streamToken,proto3" json:"stream_token,omitempty"`
// The result of applying the writes.
//
// This i-th write result corresponds to the i-th write in the
// request.
WriteResults []*WriteResult `protobuf:"bytes,3,rep,name=write_results,json=writeResults" json:"write_results,omitempty"`
// The time at which the commit occurred.
CommitTime *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=commit_time,json=commitTime" json:"commit_time,omitempty"`
}
func (m *WriteResponse) Reset() { *m = WriteResponse{} }
func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
func (*WriteResponse) ProtoMessage() {}
func (*WriteResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{16} }
func (m *WriteResponse) GetStreamId() string {
if m != nil {
return m.StreamId
}
return ""
}
func (m *WriteResponse) GetStreamToken() []byte {
if m != nil {
return m.StreamToken
}
return nil
}
func (m *WriteResponse) GetWriteResults() []*WriteResult {
if m != nil {
return m.WriteResults
}
return nil
}
func (m *WriteResponse) GetCommitTime() *google_protobuf1.Timestamp {
if m != nil {
return m.CommitTime
}
return nil
}
// A request for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen]
type ListenRequest struct {
// The database name. In the format:
// `projects/{project_id}/databases/{database_id}`.
Database string `protobuf:"bytes,1,opt,name=database" json:"database,omitempty"`
// The supported target changes.
//
// Types that are valid to be assigned to TargetChange:
// *ListenRequest_AddTarget
// *ListenRequest_RemoveTarget
TargetChange isListenRequest_TargetChange `protobuf_oneof:"target_change"`
// Labels associated with this target change.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *ListenRequest) Reset() { *m = ListenRequest{} }
func (m *ListenRequest) String() string { return proto.CompactTextString(m) }
func (*ListenRequest) ProtoMessage() {}
func (*ListenRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{17} }
type isListenRequest_TargetChange interface {
isListenRequest_TargetChange()
}
type ListenRequest_AddTarget struct {
AddTarget *Target `protobuf:"bytes,2,opt,name=add_target,json=addTarget,oneof"`
}
type ListenRequest_RemoveTarget struct {
RemoveTarget int32 `protobuf:"varint,3,opt,name=remove_target,json=removeTarget,oneof"`
}
func (*ListenRequest_AddTarget) isListenRequest_TargetChange() {}
func (*ListenRequest_RemoveTarget) isListenRequest_TargetChange() {}
func (m *ListenRequest) GetTargetChange() isListenRequest_TargetChange {
if m != nil {
return m.TargetChange
}
return nil
}
func (m *ListenRequest) GetDatabase() string {
if m != nil {
return m.Database
}
return ""
}
func (m *ListenRequest) GetAddTarget() *Target {
if x, ok := m.GetTargetChange().(*ListenRequest_AddTarget); ok {
return x.AddTarget
}
return nil
}
func (m *ListenRequest) GetRemoveTarget() int32 {
if x, ok := m.GetTargetChange().(*ListenRequest_RemoveTarget); ok {
return x.RemoveTarget
}
return 0
}
func (m *ListenRequest) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ListenRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ListenRequest_OneofMarshaler, _ListenRequest_OneofUnmarshaler, _ListenRequest_OneofSizer, []interface{}{
(*ListenRequest_AddTarget)(nil),
(*ListenRequest_RemoveTarget)(nil),
}
}
func _ListenRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ListenRequest)
// target_change
switch x := m.TargetChange.(type) {
case *ListenRequest_AddTarget:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AddTarget); err != nil {
return err
}
case *ListenRequest_RemoveTarget:
b.EncodeVarint(3<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.RemoveTarget))
case nil:
default:
return fmt.Errorf("ListenRequest.TargetChange has unexpected type %T", x)
}
return nil
}
func _ListenRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ListenRequest)
switch tag {
case 2: // target_change.add_target
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Target)
err := b.DecodeMessage(msg)
m.TargetChange = &ListenRequest_AddTarget{msg}
return true, err
case 3: // target_change.remove_target
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.TargetChange = &ListenRequest_RemoveTarget{int32(x)}
return true, err
default:
return false, nil
}
}
func _ListenRequest_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ListenRequest)
// target_change
switch x := m.TargetChange.(type) {
case *ListenRequest_AddTarget:
s := proto.Size(x.AddTarget)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *ListenRequest_RemoveTarget:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.RemoveTarget))
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// The response for [Firestore.Listen][google.firestore.v1beta1.Firestore.Listen].
type ListenResponse struct {
// The supported responses.
//
// Types that are valid to be assigned to ResponseType:
// *ListenResponse_TargetChange
// *ListenResponse_DocumentChange
// *ListenResponse_DocumentDelete
// *ListenResponse_DocumentRemove
// *ListenResponse_Filter
ResponseType isListenResponse_ResponseType `protobuf_oneof:"response_type"`
}
func (m *ListenResponse) Reset() { *m = ListenResponse{} }
func (m *ListenResponse) String() string { return proto.CompactTextString(m) }
func (*ListenResponse) ProtoMessage() {}
func (*ListenResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{18} }
type isListenResponse_ResponseType interface {
isListenResponse_ResponseType()
}
type ListenResponse_TargetChange struct {
TargetChange *TargetChange `protobuf:"bytes,2,opt,name=target_change,json=targetChange,oneof"`
}
type ListenResponse_DocumentChange struct {
DocumentChange *DocumentChange `protobuf:"bytes,3,opt,name=document_change,json=documentChange,oneof"`
}
type ListenResponse_DocumentDelete struct {
DocumentDelete *DocumentDelete `protobuf:"bytes,4,opt,name=document_delete,json=documentDelete,oneof"`
}
type ListenResponse_DocumentRemove struct {
DocumentRemove *DocumentRemove `protobuf:"bytes,6,opt,name=document_remove,json=documentRemove,oneof"`
}
type ListenResponse_Filter struct {
Filter *ExistenceFilter `protobuf:"bytes,5,opt,name=filter,oneof"`
}
func (*ListenResponse_TargetChange) isListenResponse_ResponseType() {}
func (*ListenResponse_DocumentChange) isListenResponse_ResponseType() {}
func (*ListenResponse_DocumentDelete) isListenResponse_ResponseType() {}
func (*ListenResponse_DocumentRemove) isListenResponse_ResponseType() {}
func (*ListenResponse_Filter) isListenResponse_ResponseType() {}
func (m *ListenResponse) GetResponseType() isListenResponse_ResponseType {
if m != nil {
return m.ResponseType
}
return nil
}
func (m *ListenResponse) GetTargetChange() *TargetChange {
if x, ok := m.GetResponseType().(*ListenResponse_TargetChange); ok {
return x.TargetChange
}
return nil
}
func (m *ListenResponse) GetDocumentChange() *DocumentChange {
if x, ok := m.GetResponseType().(*ListenResponse_DocumentChange); ok {
return x.DocumentChange
}
return nil
}
func (m *ListenResponse) GetDocumentDelete() *DocumentDelete {
if x, ok := m.GetResponseType().(*ListenResponse_DocumentDelete); ok {
return x.DocumentDelete
}
return nil
}
func (m *ListenResponse) GetDocumentRemove() *DocumentRemove {
if x, ok := m.GetResponseType().(*ListenResponse_DocumentRemove); ok {
return x.DocumentRemove
}
return nil
}
func (m *ListenResponse) GetFilter() *ExistenceFilter {
if x, ok := m.GetResponseType().(*ListenResponse_Filter); ok {
return x.Filter
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*ListenResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _ListenResponse_OneofMarshaler, _ListenResponse_OneofUnmarshaler, _ListenResponse_OneofSizer, []interface{}{
(*ListenResponse_TargetChange)(nil),
(*ListenResponse_DocumentChange)(nil),
(*ListenResponse_DocumentDelete)(nil),
(*ListenResponse_DocumentRemove)(nil),
(*ListenResponse_Filter)(nil),
}
}
func _ListenResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*ListenResponse)
// response_type
switch x := m.ResponseType.(type) {
case *ListenResponse_TargetChange:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TargetChange); err != nil {
return err
}
case *ListenResponse_DocumentChange:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DocumentChange); err != nil {
return err
}
case *ListenResponse_DocumentDelete:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DocumentDelete); err != nil {
return err
}
case *ListenResponse_DocumentRemove:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DocumentRemove); err != nil {
return err
}
case *ListenResponse_Filter:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Filter); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("ListenResponse.ResponseType has unexpected type %T", x)
}
return nil
}
func _ListenResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*ListenResponse)
switch tag {
case 2: // response_type.target_change
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TargetChange)
err := b.DecodeMessage(msg)
m.ResponseType = &ListenResponse_TargetChange{msg}
return true, err
case 3: // response_type.document_change
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DocumentChange)
err := b.DecodeMessage(msg)
m.ResponseType = &ListenResponse_DocumentChange{msg}
return true, err
case 4: // response_type.document_delete
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DocumentDelete)
err := b.DecodeMessage(msg)
m.ResponseType = &ListenResponse_DocumentDelete{msg}
return true, err
case 6: // response_type.document_remove
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DocumentRemove)
err := b.DecodeMessage(msg)
m.ResponseType = &ListenResponse_DocumentRemove{msg}
return true, err
case 5: // response_type.filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ExistenceFilter)
err := b.DecodeMessage(msg)
m.ResponseType = &ListenResponse_Filter{msg}
return true, err
default:
return false, nil
}
}
func _ListenResponse_OneofSizer(msg proto.Message) (n int) {
m := msg.(*ListenResponse)
// response_type
switch x := m.ResponseType.(type) {
case *ListenResponse_TargetChange:
s := proto.Size(x.TargetChange)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *ListenResponse_DocumentChange:
s := proto.Size(x.DocumentChange)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *ListenResponse_DocumentDelete:
s := proto.Size(x.DocumentDelete)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *ListenResponse_DocumentRemove:
s := proto.Size(x.DocumentRemove)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *ListenResponse_Filter:
s := proto.Size(x.Filter)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A specification of a set of documents to listen to.
type Target struct {
// The type of target to listen to.
//
// Types that are valid to be assigned to TargetType:
// *Target_Query
// *Target_Documents
TargetType isTarget_TargetType `protobuf_oneof:"target_type"`
// When to start listening.
//
// If not specified, all matching Documents are returned before any
// subsequent changes.
//
// Types that are valid to be assigned to ResumeType:
// *Target_ResumeToken
// *Target_ReadTime
ResumeType isTarget_ResumeType `protobuf_oneof:"resume_type"`
// A client provided target ID.
//
// If not set, the server will assign an ID for the target.
//
// Used for resuming a target without changing IDs. The IDs can either be
// client-assigned or be server-assigned in a previous stream. All targets
// with client provided IDs must be added before adding a target that needs
// a server-assigned id.
TargetId int32 `protobuf:"varint,5,opt,name=target_id,json=targetId" json:"target_id,omitempty"`
// If the target should be removed once it is current and consistent.
Once bool `protobuf:"varint,6,opt,name=once" json:"once,omitempty"`
}
func (m *Target) Reset() { *m = Target{} }
func (m *Target) String() string { return proto.CompactTextString(m) }
func (*Target) ProtoMessage() {}
func (*Target) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{19} }
type isTarget_TargetType interface {
isTarget_TargetType()
}
type isTarget_ResumeType interface {
isTarget_ResumeType()
}
type Target_Query struct {
Query *Target_QueryTarget `protobuf:"bytes,2,opt,name=query,oneof"`
}
type Target_Documents struct {
Documents *Target_DocumentsTarget `protobuf:"bytes,3,opt,name=documents,oneof"`
}
type Target_ResumeToken struct {
ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3,oneof"`
}
type Target_ReadTime struct {
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,11,opt,name=read_time,json=readTime,oneof"`
}
func (*Target_Query) isTarget_TargetType() {}
func (*Target_Documents) isTarget_TargetType() {}
func (*Target_ResumeToken) isTarget_ResumeType() {}
func (*Target_ReadTime) isTarget_ResumeType() {}
func (m *Target) GetTargetType() isTarget_TargetType {
if m != nil {
return m.TargetType
}
return nil
}
func (m *Target) GetResumeType() isTarget_ResumeType {
if m != nil {
return m.ResumeType
}
return nil
}
func (m *Target) GetQuery() *Target_QueryTarget {
if x, ok := m.GetTargetType().(*Target_Query); ok {
return x.Query
}
return nil
}
func (m *Target) GetDocuments() *Target_DocumentsTarget {
if x, ok := m.GetTargetType().(*Target_Documents); ok {
return x.Documents
}
return nil
}
func (m *Target) GetResumeToken() []byte {
if x, ok := m.GetResumeType().(*Target_ResumeToken); ok {
return x.ResumeToken
}
return nil
}
func (m *Target) GetReadTime() *google_protobuf1.Timestamp {
if x, ok := m.GetResumeType().(*Target_ReadTime); ok {
return x.ReadTime
}
return nil
}
func (m *Target) GetTargetId() int32 {
if m != nil {
return m.TargetId
}
return 0
}
func (m *Target) GetOnce() bool {
if m != nil {
return m.Once
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Target) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Target_OneofMarshaler, _Target_OneofUnmarshaler, _Target_OneofSizer, []interface{}{
(*Target_Query)(nil),
(*Target_Documents)(nil),
(*Target_ResumeToken)(nil),
(*Target_ReadTime)(nil),
}
}
func _Target_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Target)
// target_type
switch x := m.TargetType.(type) {
case *Target_Query:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Query); err != nil {
return err
}
case *Target_Documents:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Documents); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Target.TargetType has unexpected type %T", x)
}
// resume_type
switch x := m.ResumeType.(type) {
case *Target_ResumeToken:
b.EncodeVarint(4<<3 | proto.WireBytes)
b.EncodeRawBytes(x.ResumeToken)
case *Target_ReadTime:
b.EncodeVarint(11<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ReadTime); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Target.ResumeType has unexpected type %T", x)
}
return nil
}
func _Target_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Target)
switch tag {
case 2: // target_type.query
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Target_QueryTarget)
err := b.DecodeMessage(msg)
m.TargetType = &Target_Query{msg}
return true, err
case 3: // target_type.documents
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Target_DocumentsTarget)
err := b.DecodeMessage(msg)
m.TargetType = &Target_Documents{msg}
return true, err
case 4: // resume_type.resume_token
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.ResumeType = &Target_ResumeToken{x}
return true, err
case 11: // resume_type.read_time
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(google_protobuf1.Timestamp)
err := b.DecodeMessage(msg)
m.ResumeType = &Target_ReadTime{msg}
return true, err
default:
return false, nil
}
}
func _Target_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Target)
// target_type
switch x := m.TargetType.(type) {
case *Target_Query:
s := proto.Size(x.Query)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Target_Documents:
s := proto.Size(x.Documents)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
// resume_type
switch x := m.ResumeType.(type) {
case *Target_ResumeToken:
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.ResumeToken)))
n += len(x.ResumeToken)
case *Target_ReadTime:
s := proto.Size(x.ReadTime)
n += proto.SizeVarint(11<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A target specified by a set of documents names.
type Target_DocumentsTarget struct {
// The names of the documents to retrieve. In the format:
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// The request will fail if any of the document is not a child resource of
// the given `database`. Duplicate names will be elided.
Documents []string `protobuf:"bytes,2,rep,name=documents" json:"documents,omitempty"`
}
func (m *Target_DocumentsTarget) Reset() { *m = Target_DocumentsTarget{} }
func (m *Target_DocumentsTarget) String() string { return proto.CompactTextString(m) }
func (*Target_DocumentsTarget) ProtoMessage() {}
func (*Target_DocumentsTarget) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{19, 0} }
func (m *Target_DocumentsTarget) GetDocuments() []string {
if m != nil {
return m.Documents
}
return nil
}
// A target specified by a query.
type Target_QueryTarget struct {
// The parent resource name. In the format:
// `projects/{project_id}/databases/{database_id}/documents` or
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// For example:
// `projects/my-project/databases/my-database/documents` or
// `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The query to run.
//
// Types that are valid to be assigned to QueryType:
// *Target_QueryTarget_StructuredQuery
QueryType isTarget_QueryTarget_QueryType `protobuf_oneof:"query_type"`
}
func (m *Target_QueryTarget) Reset() { *m = Target_QueryTarget{} }
func (m *Target_QueryTarget) String() string { return proto.CompactTextString(m) }
func (*Target_QueryTarget) ProtoMessage() {}
func (*Target_QueryTarget) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{19, 1} }
type isTarget_QueryTarget_QueryType interface {
isTarget_QueryTarget_QueryType()
}
type Target_QueryTarget_StructuredQuery struct {
StructuredQuery *StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,oneof"`
}
func (*Target_QueryTarget_StructuredQuery) isTarget_QueryTarget_QueryType() {}
func (m *Target_QueryTarget) GetQueryType() isTarget_QueryTarget_QueryType {
if m != nil {
return m.QueryType
}
return nil
}
func (m *Target_QueryTarget) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *Target_QueryTarget) GetStructuredQuery() *StructuredQuery {
if x, ok := m.GetQueryType().(*Target_QueryTarget_StructuredQuery); ok {
return x.StructuredQuery
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Target_QueryTarget) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Target_QueryTarget_OneofMarshaler, _Target_QueryTarget_OneofUnmarshaler, _Target_QueryTarget_OneofSizer, []interface{}{
(*Target_QueryTarget_StructuredQuery)(nil),
}
}
func _Target_QueryTarget_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Target_QueryTarget)
// query_type
switch x := m.QueryType.(type) {
case *Target_QueryTarget_StructuredQuery:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StructuredQuery); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Target_QueryTarget.QueryType has unexpected type %T", x)
}
return nil
}
func _Target_QueryTarget_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Target_QueryTarget)
switch tag {
case 2: // query_type.structured_query
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StructuredQuery)
err := b.DecodeMessage(msg)
m.QueryType = &Target_QueryTarget_StructuredQuery{msg}
return true, err
default:
return false, nil
}
}
func _Target_QueryTarget_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Target_QueryTarget)
// query_type
switch x := m.QueryType.(type) {
case *Target_QueryTarget_StructuredQuery:
s := proto.Size(x.StructuredQuery)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Targets being watched have changed.
type TargetChange struct {
// The type of change that occurred.
TargetChangeType TargetChange_TargetChangeType `protobuf:"varint,1,opt,name=target_change_type,json=targetChangeType,enum=google.firestore.v1beta1.TargetChange_TargetChangeType" json:"target_change_type,omitempty"`
// The target IDs of targets that have changed.
//
// If empty, the change applies to all targets.
//
// For `target_change_type=ADD`, the order of the target IDs matches the order
// of the requests to add the targets. This allows clients to unambiguously
// associate server-assigned target IDs with added targets.
//
// For other states, the order of the target IDs is not defined.
TargetIds []int32 `protobuf:"varint,2,rep,packed,name=target_ids,json=targetIds" json:"target_ids,omitempty"`
// The error that resulted in this change, if applicable.
Cause *google_rpc.Status `protobuf:"bytes,3,opt,name=cause" json:"cause,omitempty"`
// A token that can be used to resume the stream for the given `target_ids`,
// or all targets if `target_ids` is empty.
//
// Not set on every target change.
ResumeToken []byte `protobuf:"bytes,4,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"`
// The consistent `read_time` for the given `target_ids` (omitted when the
// target_ids are not at a consistent snapshot).
//
// The stream is guaranteed to send a `read_time` with `target_ids` empty
// whenever the entire stream reaches a new consistent snapshot. ADD,
// CURRENT, and RESET messages are guaranteed to (eventually) result in a
// new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
//
// For a given stream, `read_time` is guaranteed to be monotonically
// increasing.
ReadTime *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=read_time,json=readTime" json:"read_time,omitempty"`
}
func (m *TargetChange) Reset() { *m = TargetChange{} }
func (m *TargetChange) String() string { return proto.CompactTextString(m) }
func (*TargetChange) ProtoMessage() {}
func (*TargetChange) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{20} }
func (m *TargetChange) GetTargetChangeType() TargetChange_TargetChangeType {
if m != nil {
return m.TargetChangeType
}
return TargetChange_NO_CHANGE
}
func (m *TargetChange) GetTargetIds() []int32 {
if m != nil {
return m.TargetIds
}
return nil
}
func (m *TargetChange) GetCause() *google_rpc.Status {
if m != nil {
return m.Cause
}
return nil
}
func (m *TargetChange) GetResumeToken() []byte {
if m != nil {
return m.ResumeToken
}
return nil
}
func (m *TargetChange) GetReadTime() *google_protobuf1.Timestamp {
if m != nil {
return m.ReadTime
}
return nil
}
// The request for [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
type ListCollectionIdsRequest struct {
// The parent document. In the format:
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
// For example:
// `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The maximum number of results to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// A page token. Must be a value from
// [ListCollectionIdsResponse][google.firestore.v1beta1.ListCollectionIdsResponse].
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListCollectionIdsRequest) Reset() { *m = ListCollectionIdsRequest{} }
func (m *ListCollectionIdsRequest) String() string { return proto.CompactTextString(m) }
func (*ListCollectionIdsRequest) ProtoMessage() {}
func (*ListCollectionIdsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{21} }
func (m *ListCollectionIdsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListCollectionIdsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListCollectionIdsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// The response from [Firestore.ListCollectionIds][google.firestore.v1beta1.Firestore.ListCollectionIds].
type ListCollectionIdsResponse struct {
// The collection ids.
CollectionIds []string `protobuf:"bytes,1,rep,name=collection_ids,json=collectionIds" json:"collection_ids,omitempty"`
// A page token that may be used to continue the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListCollectionIdsResponse) Reset() { *m = ListCollectionIdsResponse{} }
func (m *ListCollectionIdsResponse) String() string { return proto.CompactTextString(m) }
func (*ListCollectionIdsResponse) ProtoMessage() {}
func (*ListCollectionIdsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{22} }
func (m *ListCollectionIdsResponse) GetCollectionIds() []string {
if m != nil {
return m.CollectionIds
}
return nil
}
func (m *ListCollectionIdsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
func init() {
proto.RegisterType((*GetDocumentRequest)(nil), "google.firestore.v1beta1.GetDocumentRequest")
proto.RegisterType((*ListDocumentsRequest)(nil), "google.firestore.v1beta1.ListDocumentsRequest")
proto.RegisterType((*ListDocumentsResponse)(nil), "google.firestore.v1beta1.ListDocumentsResponse")
proto.RegisterType((*CreateDocumentRequest)(nil), "google.firestore.v1beta1.CreateDocumentRequest")
proto.RegisterType((*UpdateDocumentRequest)(nil), "google.firestore.v1beta1.UpdateDocumentRequest")
proto.RegisterType((*DeleteDocumentRequest)(nil), "google.firestore.v1beta1.DeleteDocumentRequest")
proto.RegisterType((*BatchGetDocumentsRequest)(nil), "google.firestore.v1beta1.BatchGetDocumentsRequest")
proto.RegisterType((*BatchGetDocumentsResponse)(nil), "google.firestore.v1beta1.BatchGetDocumentsResponse")
proto.RegisterType((*BeginTransactionRequest)(nil), "google.firestore.v1beta1.BeginTransactionRequest")
proto.RegisterType((*BeginTransactionResponse)(nil), "google.firestore.v1beta1.BeginTransactionResponse")
proto.RegisterType((*CommitRequest)(nil), "google.firestore.v1beta1.CommitRequest")
proto.RegisterType((*CommitResponse)(nil), "google.firestore.v1beta1.CommitResponse")
proto.RegisterType((*RollbackRequest)(nil), "google.firestore.v1beta1.RollbackRequest")
proto.RegisterType((*RunQueryRequest)(nil), "google.firestore.v1beta1.RunQueryRequest")
proto.RegisterType((*RunQueryResponse)(nil), "google.firestore.v1beta1.RunQueryResponse")
proto.RegisterType((*WriteRequest)(nil), "google.firestore.v1beta1.WriteRequest")
proto.RegisterType((*WriteResponse)(nil), "google.firestore.v1beta1.WriteResponse")
proto.RegisterType((*ListenRequest)(nil), "google.firestore.v1beta1.ListenRequest")
proto.RegisterType((*ListenResponse)(nil), "google.firestore.v1beta1.ListenResponse")
proto.RegisterType((*Target)(nil), "google.firestore.v1beta1.Target")
proto.RegisterType((*Target_DocumentsTarget)(nil), "google.firestore.v1beta1.Target.DocumentsTarget")
proto.RegisterType((*Target_QueryTarget)(nil), "google.firestore.v1beta1.Target.QueryTarget")
proto.RegisterType((*TargetChange)(nil), "google.firestore.v1beta1.TargetChange")
proto.RegisterType((*ListCollectionIdsRequest)(nil), "google.firestore.v1beta1.ListCollectionIdsRequest")
proto.RegisterType((*ListCollectionIdsResponse)(nil), "google.firestore.v1beta1.ListCollectionIdsResponse")
proto.RegisterEnum("google.firestore.v1beta1.TargetChange_TargetChangeType", TargetChange_TargetChangeType_name, TargetChange_TargetChangeType_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Firestore service
type FirestoreClient interface {
// Gets a single document.
GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error)
// Lists documents.
ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
// Creates a new document.
CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error)
// Updates or inserts a document.
UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error)
// Deletes a document.
DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error)
// Gets multiple documents.
//
// Documents returned by this method are not guaranteed to be returned in the
// same order that they were requested.
BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error)
// Starts a new transaction.
BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error)
// Commits a transaction, while optionally updating documents.
Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
// Rolls back a transaction.
Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error)
// Runs a query.
RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error)
// Streams batches of document updates and deletes, in order.
Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error)
// Listens to changes.
Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error)
// Lists all the collection IDs underneath a document.
ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error)
}
type firestoreClient struct {
cc *grpc.ClientConn
}
func NewFirestoreClient(cc *grpc.ClientConn) FirestoreClient {
return &firestoreClient{cc}
}
func (c *firestoreClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
out := new(Document)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/GetDocument", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) {
out := new(ListDocumentsResponse)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/ListDocuments", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
out := new(Document)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/CreateDocument", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
out := new(Document)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/UpdateDocument", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error) {
out := new(google_protobuf4.Empty)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/DeleteDocument", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) BatchGetDocuments(ctx context.Context, in *BatchGetDocumentsRequest, opts ...grpc.CallOption) (Firestore_BatchGetDocumentsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Firestore_serviceDesc.Streams[0], c.cc, "/google.firestore.v1beta1.Firestore/BatchGetDocuments", opts...)
if err != nil {
return nil, err
}
x := &firestoreBatchGetDocumentsClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Firestore_BatchGetDocumentsClient interface {
Recv() (*BatchGetDocumentsResponse, error)
grpc.ClientStream
}
type firestoreBatchGetDocumentsClient struct {
grpc.ClientStream
}
func (x *firestoreBatchGetDocumentsClient) Recv() (*BatchGetDocumentsResponse, error) {
m := new(BatchGetDocumentsResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *firestoreClient) BeginTransaction(ctx context.Context, in *BeginTransactionRequest, opts ...grpc.CallOption) (*BeginTransactionResponse, error) {
out := new(BeginTransactionResponse)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/BeginTransaction", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error) {
out := new(CommitResponse)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/Commit", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) Rollback(ctx context.Context, in *RollbackRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error) {
out := new(google_protobuf4.Empty)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/Rollback", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *firestoreClient) RunQuery(ctx context.Context, in *RunQueryRequest, opts ...grpc.CallOption) (Firestore_RunQueryClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Firestore_serviceDesc.Streams[1], c.cc, "/google.firestore.v1beta1.Firestore/RunQuery", opts...)
if err != nil {
return nil, err
}
x := &firestoreRunQueryClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Firestore_RunQueryClient interface {
Recv() (*RunQueryResponse, error)
grpc.ClientStream
}
type firestoreRunQueryClient struct {
grpc.ClientStream
}
func (x *firestoreRunQueryClient) Recv() (*RunQueryResponse, error) {
m := new(RunQueryResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *firestoreClient) Write(ctx context.Context, opts ...grpc.CallOption) (Firestore_WriteClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Firestore_serviceDesc.Streams[2], c.cc, "/google.firestore.v1beta1.Firestore/Write", opts...)
if err != nil {
return nil, err
}
x := &firestoreWriteClient{stream}
return x, nil
}
type Firestore_WriteClient interface {
Send(*WriteRequest) error
Recv() (*WriteResponse, error)
grpc.ClientStream
}
type firestoreWriteClient struct {
grpc.ClientStream
}
func (x *firestoreWriteClient) Send(m *WriteRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *firestoreWriteClient) Recv() (*WriteResponse, error) {
m := new(WriteResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *firestoreClient) Listen(ctx context.Context, opts ...grpc.CallOption) (Firestore_ListenClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Firestore_serviceDesc.Streams[3], c.cc, "/google.firestore.v1beta1.Firestore/Listen", opts...)
if err != nil {
return nil, err
}
x := &firestoreListenClient{stream}
return x, nil
}
type Firestore_ListenClient interface {
Send(*ListenRequest) error
Recv() (*ListenResponse, error)
grpc.ClientStream
}
type firestoreListenClient struct {
grpc.ClientStream
}
func (x *firestoreListenClient) Send(m *ListenRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *firestoreListenClient) Recv() (*ListenResponse, error) {
m := new(ListenResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *firestoreClient) ListCollectionIds(ctx context.Context, in *ListCollectionIdsRequest, opts ...grpc.CallOption) (*ListCollectionIdsResponse, error) {
out := new(ListCollectionIdsResponse)
err := grpc.Invoke(ctx, "/google.firestore.v1beta1.Firestore/ListCollectionIds", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Firestore service
type FirestoreServer interface {
// Gets a single document.
GetDocument(context.Context, *GetDocumentRequest) (*Document, error)
// Lists documents.
ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
// Creates a new document.
CreateDocument(context.Context, *CreateDocumentRequest) (*Document, error)
// Updates or inserts a document.
UpdateDocument(context.Context, *UpdateDocumentRequest) (*Document, error)
// Deletes a document.
DeleteDocument(context.Context, *DeleteDocumentRequest) (*google_protobuf4.Empty, error)
// Gets multiple documents.
//
// Documents returned by this method are not guaranteed to be returned in the
// same order that they were requested.
BatchGetDocuments(*BatchGetDocumentsRequest, Firestore_BatchGetDocumentsServer) error
// Starts a new transaction.
BeginTransaction(context.Context, *BeginTransactionRequest) (*BeginTransactionResponse, error)
// Commits a transaction, while optionally updating documents.
Commit(context.Context, *CommitRequest) (*CommitResponse, error)
// Rolls back a transaction.
Rollback(context.Context, *RollbackRequest) (*google_protobuf4.Empty, error)
// Runs a query.
RunQuery(*RunQueryRequest, Firestore_RunQueryServer) error
// Streams batches of document updates and deletes, in order.
Write(Firestore_WriteServer) error
// Listens to changes.
Listen(Firestore_ListenServer) error
// Lists all the collection IDs underneath a document.
ListCollectionIds(context.Context, *ListCollectionIdsRequest) (*ListCollectionIdsResponse, error)
}
func RegisterFirestoreServer(s *grpc.Server, srv FirestoreServer) {
s.RegisterService(&_Firestore_serviceDesc, srv)
}
func _Firestore_GetDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).GetDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/GetDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).GetDocument(ctx, req.(*GetDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDocumentsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).ListDocuments(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/ListDocuments",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).ListDocuments(ctx, req.(*ListDocumentsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).CreateDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/CreateDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).CreateDocument(ctx, req.(*CreateDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_UpdateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).UpdateDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/UpdateDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).UpdateDocument(ctx, req.(*UpdateDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteDocumentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).DeleteDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/DeleteDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_BatchGetDocuments_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(BatchGetDocumentsRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(FirestoreServer).BatchGetDocuments(m, &firestoreBatchGetDocumentsServer{stream})
}
type Firestore_BatchGetDocumentsServer interface {
Send(*BatchGetDocumentsResponse) error
grpc.ServerStream
}
type firestoreBatchGetDocumentsServer struct {
grpc.ServerStream
}
func (x *firestoreBatchGetDocumentsServer) Send(m *BatchGetDocumentsResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Firestore_BeginTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BeginTransactionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).BeginTransaction(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/BeginTransaction",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).BeginTransaction(ctx, req.(*BeginTransactionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CommitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).Commit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/Commit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).Commit(ctx, req.(*CommitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RollbackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).Rollback(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/Rollback",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).Rollback(ctx, req.(*RollbackRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Firestore_RunQuery_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(RunQueryRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(FirestoreServer).RunQuery(m, &firestoreRunQueryServer{stream})
}
type Firestore_RunQueryServer interface {
Send(*RunQueryResponse) error
grpc.ServerStream
}
type firestoreRunQueryServer struct {
grpc.ServerStream
}
func (x *firestoreRunQueryServer) Send(m *RunQueryResponse) error {
return x.ServerStream.SendMsg(m)
}
func _Firestore_Write_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(FirestoreServer).Write(&firestoreWriteServer{stream})
}
type Firestore_WriteServer interface {
Send(*WriteResponse) error
Recv() (*WriteRequest, error)
grpc.ServerStream
}
type firestoreWriteServer struct {
grpc.ServerStream
}
func (x *firestoreWriteServer) Send(m *WriteResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *firestoreWriteServer) Recv() (*WriteRequest, error) {
m := new(WriteRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _Firestore_Listen_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(FirestoreServer).Listen(&firestoreListenServer{stream})
}
type Firestore_ListenServer interface {
Send(*ListenResponse) error
Recv() (*ListenRequest, error)
grpc.ServerStream
}
type firestoreListenServer struct {
grpc.ServerStream
}
func (x *firestoreListenServer) Send(m *ListenResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *firestoreListenServer) Recv() (*ListenRequest, error) {
m := new(ListenRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _Firestore_ListCollectionIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListCollectionIdsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FirestoreServer).ListCollectionIds(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.firestore.v1beta1.Firestore/ListCollectionIds",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FirestoreServer).ListCollectionIds(ctx, req.(*ListCollectionIdsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Firestore_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.firestore.v1beta1.Firestore",
HandlerType: (*FirestoreServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetDocument",
Handler: _Firestore_GetDocument_Handler,
},
{
MethodName: "ListDocuments",
Handler: _Firestore_ListDocuments_Handler,
},
{
MethodName: "CreateDocument",
Handler: _Firestore_CreateDocument_Handler,
},
{
MethodName: "UpdateDocument",
Handler: _Firestore_UpdateDocument_Handler,
},
{
MethodName: "DeleteDocument",
Handler: _Firestore_DeleteDocument_Handler,
},
{
MethodName: "BeginTransaction",
Handler: _Firestore_BeginTransaction_Handler,
},
{
MethodName: "Commit",
Handler: _Firestore_Commit_Handler,
},
{
MethodName: "Rollback",
Handler: _Firestore_Rollback_Handler,
},
{
MethodName: "ListCollectionIds",
Handler: _Firestore_ListCollectionIds_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "BatchGetDocuments",
Handler: _Firestore_BatchGetDocuments_Handler,
ServerStreams: true,
},
{
StreamName: "RunQuery",
Handler: _Firestore_RunQuery_Handler,
ServerStreams: true,
},
{
StreamName: "Write",
Handler: _Firestore_Write_Handler,
ServerStreams: true,
ClientStreams: true,
},
{
StreamName: "Listen",
Handler: _Firestore_Listen_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "google/firestore/v1beta1/firestore.proto",
}
func init() { proto.RegisterFile("google/firestore/v1beta1/firestore.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 2180 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xcd, 0x8f, 0x1b, 0x49,
0x15, 0x77, 0xf9, 0x6b, 0xec, 0xe7, 0x8f, 0xf1, 0x96, 0x92, 0xac, 0xe3, 0x64, 0xc9, 0xd0, 0x4b,
0x12, 0x63, 0xad, 0xec, 0x64, 0x22, 0x14, 0xd6, 0x21, 0xcb, 0x66, 0x66, 0x9c, 0xf1, 0x84, 0x24,
0x33, 0xe9, 0x99, 0x4d, 0x24, 0x14, 0xc9, 0xea, 0xe9, 0xae, 0x38, 0xbd, 0x63, 0x77, 0x7b, 0xbb,
0xcb, 0x99, 0x9d, 0x5d, 0x0d, 0x02, 0x0e, 0x5c, 0x90, 0xb8, 0x70, 0x00, 0x2e, 0x1c, 0xd8, 0x03,
0xd2, 0x22, 0xe0, 0x82, 0xc4, 0x05, 0x21, 0x71, 0x43, 0x20, 0x4e, 0x48, 0x08, 0x89, 0x03, 0x1c,
0x38, 0x71, 0xe3, 0x3f, 0x40, 0x5d, 0x55, 0xdd, 0xee, 0x6e, 0x7f, 0xb5, 0x3d, 0x11, 0xb7, 0xae,
0xe7, 0x57, 0xaf, 0xde, 0xc7, 0xef, 0xbd, 0x7a, 0xf5, 0x0c, 0xd5, 0xae, 0x69, 0x76, 0x7b, 0xa4,
0xf1, 0x42, 0xb7, 0x88, 0x4d, 0x4d, 0x8b, 0x34, 0x5e, 0xdd, 0x3c, 0x24, 0x54, 0xb9, 0x39, 0xa2,
0xd4, 0x07, 0x96, 0x49, 0x4d,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