1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636
|
// Copyright 2021 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package docs provides access to the Google Docs API.
//
// For product documentation, see: https://developers.google.com/docs/
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/docs/v1"
// ...
// ctx := context.Background()
// docsService, err := docs.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
//
// docsService, err := docs.NewService(ctx, option.WithScopes(docs.DriveReadonlyScope))
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// docsService, err := docs.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// docsService, err := docs.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package docs // import "google.golang.org/api/docs/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
const apiId = "docs:v1"
const apiName = "docs"
const apiVersion = "v1"
const basePath = "https://docs.googleapis.com/"
const mtlsBasePath = "https://docs.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// See, edit, create, and delete all your Google Docs documents
DocumentsScope = "https://www.googleapis.com/auth/documents"
// See all your Google Docs documents
DocumentsReadonlyScope = "https://www.googleapis.com/auth/documents.readonly"
// See, edit, create, and delete all of your Google Drive files
DriveScope = "https://www.googleapis.com/auth/drive"
// See, edit, create, and delete only the specific Google Drive files
// you use with this app
DriveFileScope = "https://www.googleapis.com/auth/drive.file"
// See and download all your Google Drive files
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/documents",
"https://www.googleapis.com/auth/documents.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Documents = NewDocumentsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Documents *DocumentsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewDocumentsService(s *Service) *DocumentsService {
rs := &DocumentsService{s: s}
return rs
}
type DocumentsService struct {
s *Service
}
// AutoText: A ParagraphElement representing a spot in the text that is
// dynamically replaced with content that can change over time, like a
// page number.
type AutoText struct {
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. An AutoText may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// AutoText, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this AutoText.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// Type: The type of this auto text.
//
// Possible values:
// "TYPE_UNSPECIFIED" - An unspecified auto text type.
// "PAGE_NUMBER" - Type for auto text that represents the current page
// number.
// "PAGE_COUNT" - Type for auto text that represents the total number
// of pages in the document.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SuggestedDeletionIds") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SuggestedDeletionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AutoText) MarshalJSON() ([]byte, error) {
type NoMethod AutoText
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Background: Represents the background of a document.
type Background struct {
// Color: The background color.
Color *OptionalColor `json:"color,omitempty"`
// ForceSendFields is a list of field names (e.g. "Color") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Background) MarshalJSON() ([]byte, error) {
type NoMethod Background
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BackgroundSuggestionState: A mask that indicates which of the fields
// on the base Background have been changed in this suggestion. For any
// field set to true, the Backgound has a new suggested value.
type BackgroundSuggestionState struct {
// BackgroundColorSuggested: Indicates whether the current background
// color has been modified in this suggestion.
BackgroundColorSuggested bool `json:"backgroundColorSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BackgroundColorSuggested") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColorSuggested")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BackgroundSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod BackgroundSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchUpdateDocumentRequest: Request message for BatchUpdateDocument.
type BatchUpdateDocumentRequest struct {
// Requests: A list of updates to apply to the document.
Requests []*Request `json:"requests,omitempty"`
// WriteControl: Provides control over how write requests are executed.
WriteControl *WriteControl `json:"writeControl,omitempty"`
// ForceSendFields is a list of field names (e.g. "Requests") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Requests") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BatchUpdateDocumentRequest) MarshalJSON() ([]byte, error) {
type NoMethod BatchUpdateDocumentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BatchUpdateDocumentResponse: Response message from a
// BatchUpdateDocument request.
type BatchUpdateDocumentResponse struct {
// DocumentId: The ID of the document to which the updates were applied
// to.
DocumentId string `json:"documentId,omitempty"`
// Replies: The reply of the updates. This maps 1:1 with the updates,
// although replies to some requests may be empty.
Replies []*Response `json:"replies,omitempty"`
// WriteControl: The updated write control after applying the request.
WriteControl *WriteControl `json:"writeControl,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DocumentId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DocumentId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BatchUpdateDocumentResponse) MarshalJSON() ([]byte, error) {
type NoMethod BatchUpdateDocumentResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Body: The document body. The body typically contains the full
// document contents except for headers, footers and footnotes.
type Body struct {
// Content: The contents of the body. The indexes for the body's content
// begin at zero.
Content []*StructuralElement `json:"content,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Body) MarshalJSON() ([]byte, error) {
type NoMethod Body
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Bullet: Describes the bullet of a paragraph.
type Bullet struct {
// ListId: The ID of the list this paragraph belongs to.
ListId string `json:"listId,omitempty"`
// NestingLevel: The nesting level of this paragraph in the list.
NestingLevel int64 `json:"nestingLevel,omitempty"`
// TextStyle: The paragraph specific text style applied to this bullet.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "ListId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ListId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Bullet) MarshalJSON() ([]byte, error) {
type NoMethod Bullet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BulletSuggestionState: A mask that indicates which of the fields on
// the base Bullet have been changed in this suggestion. For any field
// set to true, there is a new suggested value.
type BulletSuggestionState struct {
// ListIdSuggested: Indicates if there was a suggested change to the
// list_id.
ListIdSuggested bool `json:"listIdSuggested,omitempty"`
// NestingLevelSuggested: Indicates if there was a suggested change to
// the nesting_level.
NestingLevelSuggested bool `json:"nestingLevelSuggested,omitempty"`
// TextStyleSuggestionState: A mask that indicates which of the fields
// in text style have been changed in this suggestion.
TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "ListIdSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ListIdSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BulletSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod BulletSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Color: A solid color.
type Color struct {
// RgbColor: The RGB color value.
RgbColor *RgbColor `json:"rgbColor,omitempty"`
// ForceSendFields is a list of field names (e.g. "RgbColor") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RgbColor") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Color) MarshalJSON() ([]byte, error) {
type NoMethod Color
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ColumnBreak: A ParagraphElement representing a column break. A column
// break makes the subsequent text start at the top of the next column.
type ColumnBreak struct {
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A ColumnBreak may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// ColumnBreak, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this ColumnBreak. Similar to text
// content, like text runs and footnote references, the text style of a
// column break can affect content layout as well as the styling of text
// inserted adjacent to it.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SuggestedDeletionIds") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SuggestedDeletionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ColumnBreak) MarshalJSON() ([]byte, error) {
type NoMethod ColumnBreak
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateFooterRequest: Creates a Footer. The new footer is applied to
// the SectionStyle at the location of the SectionBreak if specificed,
// otherwise it is applied to the DocumentStyle. If a footer of the
// specified type already exists, a 400 bad request error is returned.
type CreateFooterRequest struct {
// SectionBreakLocation: The location of the SectionBreak immediately
// preceding the section whose SectionStyle this footer should belong
// to. If this is unset or refers to the first section break in the
// document, the footer applies to the document style.
SectionBreakLocation *Location `json:"sectionBreakLocation,omitempty"`
// Type: The type of footer to create.
//
// Possible values:
// "HEADER_FOOTER_TYPE_UNSPECIFIED" - The header/footer type is
// unspecified.
// "DEFAULT" - A default header/footer.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SectionBreakLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SectionBreakLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CreateFooterRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateFooterRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateFooterResponse: The result of creating a footer.
type CreateFooterResponse struct {
// FooterId: The ID of the created footer.
FooterId string `json:"footerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "FooterId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FooterId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateFooterResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateFooterResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateFootnoteRequest: Creates a Footnote segment and inserts a new
// FootnoteReference to it at the given location. The new Footnote
// segment will contain a space followed by a newline character.
type CreateFootnoteRequest struct {
// EndOfSegmentLocation: Inserts the footnote reference at the end of
// the document body. Footnote references cannot be inserted inside a
// header, footer or footnote. Since footnote references can only be
// inserted in the body, the segment ID field must be empty.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts the footnote reference at a specific index in the
// document. The footnote reference must be inserted inside the bounds
// of an existing Paragraph. For instance, it cannot be inserted at a
// table's start index (i.e. between the table and its preceding
// paragraph). Footnote references cannot be inserted inside an
// equation, header, footer or footnote. Since footnote references can
// only be inserted in the body, the segment ID field must be empty.
Location *Location `json:"location,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EndOfSegmentLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndOfSegmentLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CreateFootnoteRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateFootnoteRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateFootnoteResponse: The result of creating a footnote.
type CreateFootnoteResponse struct {
// FootnoteId: The ID of the created footnote.
FootnoteId string `json:"footnoteId,omitempty"`
// ForceSendFields is a list of field names (e.g. "FootnoteId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FootnoteId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateFootnoteResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateFootnoteResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateHeaderRequest: Creates a Header. The new header is applied to
// the SectionStyle at the location of the SectionBreak if specificed,
// otherwise it is applied to the DocumentStyle. If a header of the
// specified type already exists, a 400 bad request error is returned.
type CreateHeaderRequest struct {
// SectionBreakLocation: The location of the SectionBreak which begins
// the section this header should belong to. If `section_break_location'
// is unset or if it refers to the first section break in the document
// body, the header applies to the DocumentStyle
SectionBreakLocation *Location `json:"sectionBreakLocation,omitempty"`
// Type: The type of header to create.
//
// Possible values:
// "HEADER_FOOTER_TYPE_UNSPECIFIED" - The header/footer type is
// unspecified.
// "DEFAULT" - A default header/footer.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SectionBreakLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SectionBreakLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CreateHeaderRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateHeaderRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateHeaderResponse: The result of creating a header.
type CreateHeaderResponse struct {
// HeaderId: The ID of the created header.
HeaderId string `json:"headerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeaderId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeaderId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateHeaderResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateHeaderResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateNamedRangeRequest: Creates a NamedRange referencing the given
// range.
type CreateNamedRangeRequest struct {
// Name: The name of the NamedRange. Names do not need to be unique.
// Names must be at least 1 character and no more than 256 characters,
// measured in UTF-16 code units.
Name string `json:"name,omitempty"`
// Range: The range to apply the name to.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateNamedRangeRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateNamedRangeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateNamedRangeResponse: The result of creating a named range.
type CreateNamedRangeResponse struct {
// NamedRangeId: The ID of the created named range.
NamedRangeId string `json:"namedRangeId,omitempty"`
// ForceSendFields is a list of field names (e.g. "NamedRangeId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NamedRangeId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateNamedRangeResponse) MarshalJSON() ([]byte, error) {
type NoMethod CreateNamedRangeResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateParagraphBulletsRequest: Creates bullets for all of the
// paragraphs that overlap with the given range. The nesting level of
// each paragraph will be determined by counting leading tabs in front
// of each paragraph. To avoid excess space between the bullet and the
// corresponding paragraph, these leading tabs are removed by this
// request. This may change the indices of parts of the text. If the
// paragraph immediately before paragraphs being updated is in a list
// with a matching preset, the paragraphs being updated are added to
// that preceding list.
type CreateParagraphBulletsRequest struct {
// BulletPreset: The kinds of bullet glyphs to be used.
//
// Possible values:
// "BULLET_GLYPH_PRESET_UNSPECIFIED" - The bullet glyph preset is
// unspecified.
// "BULLET_DISC_CIRCLE_SQUARE" - A bulleted list with a `DISC`,
// `CIRCLE` and `SQUARE` bullet glyph for the first 3 list nesting
// levels.
// "BULLET_DIAMONDX_ARROW3D_SQUARE" - A bulleted list with a
// `DIAMONDX`, `ARROW3D` and `SQUARE` bullet glyph for the first 3 list
// nesting levels.
// "BULLET_CHECKBOX" - A bulleted list with `CHECKBOX` bullet glyphs
// for all list nesting levels.
// "BULLET_ARROW_DIAMOND_DISC" - A bulleted list with a `ARROW`,
// `DIAMOND` and `DISC` bullet glyph for the first 3 list nesting
// levels.
// "BULLET_STAR_CIRCLE_SQUARE" - A bulleted list with a `STAR`,
// `CIRCLE` and `SQUARE` bullet glyph for the first 3 list nesting
// levels.
// "BULLET_ARROW3D_CIRCLE_SQUARE" - A bulleted list with a `ARROW3D`,
// `CIRCLE` and `SQUARE` bullet glyph for the first 3 list nesting
// levels.
// "BULLET_LEFTTRIANGLE_DIAMOND_DISC" - A bulleted list with a
// `LEFTTRIANGLE`, `DIAMOND` and `DISC` bullet glyph for the first 3
// list nesting levels.
// "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" - A bulleted list with a
// `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` bullet glyph for the first 3
// list nesting levels.
// "BULLET_DIAMOND_CIRCLE_SQUARE" - A bulleted list with a `DIAMOND`,
// `CIRCLE` and `SQUARE` bullet glyph for the first 3 list nesting
// levels.
// "NUMBERED_DECIMAL_ALPHA_ROMAN" - A numbered list with `DECIMAL`,
// `ALPHA` and `ROMAN` numeric glyphs for the first 3 list nesting
// levels, followed by periods.
// "NUMBERED_DECIMAL_ALPHA_ROMAN_PARENS" - A numbered list with
// `DECIMAL`, `ALPHA` and `ROMAN` numeric glyphs for the first 3 list
// nesting levels, followed by parenthesis.
// "NUMBERED_DECIMAL_NESTED" - A numbered list with `DECIMAL` numeric
// glyphs separated by periods, where each nesting level uses the
// previous nesting level's glyph as a prefix. For example: '1.',
// '1.1.', '2.', '2.2.'.
// "NUMBERED_UPPERALPHA_ALPHA_ROMAN" - A numbered list with
// `UPPERALPHA`, `ALPHA` and `ROMAN` numeric glyphs for the first 3 list
// nesting levels, followed by periods.
// "NUMBERED_UPPERROMAN_UPPERALPHA_DECIMAL" - A numbered list with
// `UPPERROMAN`, `UPPERALPHA` and `DECIMAL` numeric glyphs for the first
// 3 list nesting levels, followed by periods.
// "NUMBERED_ZERODECIMAL_ALPHA_ROMAN" - A numbered list with
// `ZERODECIMAL`, `ALPHA` and `ROMAN` numeric glyphs for the first 3
// list nesting levels, followed by periods.
BulletPreset string `json:"bulletPreset,omitempty"`
// Range: The range to apply the bullet preset to.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "BulletPreset") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BulletPreset") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateParagraphBulletsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CropProperties: The crop properties of an image. The crop rectangle
// is represented using fractional offsets from the original content's
// four edges. - If the offset is in the interval (0, 1), the
// corresponding edge of crop rectangle is positioned inside of the
// image's original bounding rectangle. - If the offset is negative or
// greater than 1, the corresponding edge of crop rectangle is
// positioned outside of the image's original bounding rectangle. - If
// all offsets and rotation angle are 0, the image is not cropped.
type CropProperties struct {
// Angle: The clockwise rotation angle of the crop rectangle around its
// center, in radians. Rotation is applied after the offsets.
Angle float64 `json:"angle,omitempty"`
// OffsetBottom: The offset specifies how far inwards the bottom edge of
// the crop rectangle is from the bottom edge of the original content as
// a fraction of the original content's height.
OffsetBottom float64 `json:"offsetBottom,omitempty"`
// OffsetLeft: The offset specifies how far inwards the left edge of the
// crop rectangle is from the left edge of the original content as a
// fraction of the original content's width.
OffsetLeft float64 `json:"offsetLeft,omitempty"`
// OffsetRight: The offset specifies how far inwards the right edge of
// the crop rectangle is from the right edge of the original content as
// a fraction of the original content's width.
OffsetRight float64 `json:"offsetRight,omitempty"`
// OffsetTop: The offset specifies how far inwards the top edge of the
// crop rectangle is from the top edge of the original content as a
// fraction of the original content's height.
OffsetTop float64 `json:"offsetTop,omitempty"`
// ForceSendFields is a list of field names (e.g. "Angle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Angle") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CropProperties) MarshalJSON() ([]byte, error) {
type NoMethod CropProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *CropProperties) UnmarshalJSON(data []byte) error {
type NoMethod CropProperties
var s1 struct {
Angle gensupport.JSONFloat64 `json:"angle"`
OffsetBottom gensupport.JSONFloat64 `json:"offsetBottom"`
OffsetLeft gensupport.JSONFloat64 `json:"offsetLeft"`
OffsetRight gensupport.JSONFloat64 `json:"offsetRight"`
OffsetTop gensupport.JSONFloat64 `json:"offsetTop"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Angle = float64(s1.Angle)
s.OffsetBottom = float64(s1.OffsetBottom)
s.OffsetLeft = float64(s1.OffsetLeft)
s.OffsetRight = float64(s1.OffsetRight)
s.OffsetTop = float64(s1.OffsetTop)
return nil
}
// CropPropertiesSuggestionState: A mask that indicates which of the
// fields on the base CropProperties have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type CropPropertiesSuggestionState struct {
// AngleSuggested: Indicates if there was a suggested change to angle.
AngleSuggested bool `json:"angleSuggested,omitempty"`
// OffsetBottomSuggested: Indicates if there was a suggested change to
// offset_bottom.
OffsetBottomSuggested bool `json:"offsetBottomSuggested,omitempty"`
// OffsetLeftSuggested: Indicates if there was a suggested change to
// offset_left.
OffsetLeftSuggested bool `json:"offsetLeftSuggested,omitempty"`
// OffsetRightSuggested: Indicates if there was a suggested change to
// offset_right.
OffsetRightSuggested bool `json:"offsetRightSuggested,omitempty"`
// OffsetTopSuggested: Indicates if there was a suggested change to
// offset_top.
OffsetTopSuggested bool `json:"offsetTopSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "AngleSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AngleSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CropPropertiesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod CropPropertiesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteContentRangeRequest: Deletes content from the document.
type DeleteContentRangeRequest struct {
// Range: The range of content to delete. Deleting text that crosses a
// paragraph boundary may result in changes to paragraph styles, lists,
// positioned objects and bookmarks as the two paragraphs are merged.
// Attempting to delete certain ranges can result in an invalid document
// structure in which case a 400 bad request error is returned. Some
// examples of invalid delete requests include: * Deleting one code unit
// of a surrogate pair. * Deleting the last newline character of a Body,
// Header, Footer, Footnote, TableCell or TableOfContents. * Deleting
// the start or end of a Table, TableOfContents or Equation without
// deleting the entire element. * Deleting the newline character before
// a Table, TableOfContents or SectionBreak without deleting the
// element. * Deleting individual rows or cells of a table. Deleting the
// content within a table cell is allowed.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "Range") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Range") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeleteContentRangeRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteContentRangeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteFooterRequest: Deletes a Footer from the document.
type DeleteFooterRequest struct {
// FooterId: The id of the footer to delete. If this footer is defined
// on DocumentStyle, the reference to this footer is removed, resulting
// in no footer of that type for the first section of the document. If
// this footer is defined on a SectionStyle, the reference to this
// footer is removed and the footer of that type is now continued from
// the previous section.
FooterId string `json:"footerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "FooterId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FooterId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeleteFooterRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteFooterRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteHeaderRequest: Deletes a Header from the document.
type DeleteHeaderRequest struct {
// HeaderId: The id of the header to delete. If this header is defined
// on DocumentStyle, the reference to this header is removed, resulting
// in no header of that type for the first section of the document. If
// this header is defined on a SectionStyle, the reference to this
// header is removed and the header of that type is now continued from
// the previous section.
HeaderId string `json:"headerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeaderId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeaderId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeleteHeaderRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteHeaderRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteNamedRangeRequest: Deletes a NamedRange.
type DeleteNamedRangeRequest struct {
// Name: The name of the range(s) to delete. All named ranges with the
// given name will be deleted.
Name string `json:"name,omitempty"`
// NamedRangeId: The ID of the named range to delete.
NamedRangeId string `json:"namedRangeId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeleteNamedRangeRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteNamedRangeRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteParagraphBulletsRequest: Deletes bullets from all of the
// paragraphs that overlap with the given range. The nesting level of
// each paragraph will be visually preserved by adding indent to the
// start of the corresponding paragraph.
type DeleteParagraphBulletsRequest struct {
// Range: The range to delete bullets from.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "Range") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Range") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeleteParagraphBulletsRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteParagraphBulletsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeletePositionedObjectRequest: Deletes a PositionedObject from the
// document.
type DeletePositionedObjectRequest struct {
// ObjectId: The ID of the positioned object to delete.
ObjectId string `json:"objectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeletePositionedObjectRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeletePositionedObjectRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteTableColumnRequest: Deletes a column from a table.
type DeleteTableColumnRequest struct {
// TableCellLocation: The reference table cell location from which the
// column will be deleted. The column this cell spans will be deleted.
// If this is a merged cell that spans multiple columns, all columns
// that the cell spans will be deleted. If no columns remain in the
// table after this deletion, the whole table is deleted.
TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableCellLocation")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableCellLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DeleteTableColumnRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteTableColumnRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeleteTableRowRequest: Deletes a row from a table.
type DeleteTableRowRequest struct {
// TableCellLocation: The reference table cell location from which the
// row will be deleted. The row this cell spans will be deleted. If this
// is a merged cell that spans multiple rows, all rows that the cell
// spans will be deleted. If no rows remain in the table after this
// deletion, the whole table is deleted.
TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableCellLocation")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableCellLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DeleteTableRowRequest) MarshalJSON() ([]byte, error) {
type NoMethod DeleteTableRowRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Dimension: A magnitude in a single direction in the specified units.
type Dimension struct {
// Magnitude: The magnitude.
Magnitude float64 `json:"magnitude,omitempty"`
// Unit: The units for magnitude.
//
// Possible values:
// "UNIT_UNSPECIFIED" - The units are unknown.
// "PT" - A point, 1/72 of an inch.
Unit string `json:"unit,omitempty"`
// ForceSendFields is a list of field names (e.g. "Magnitude") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Magnitude") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Dimension) MarshalJSON() ([]byte, error) {
type NoMethod Dimension
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *Dimension) UnmarshalJSON(data []byte) error {
type NoMethod Dimension
var s1 struct {
Magnitude gensupport.JSONFloat64 `json:"magnitude"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Magnitude = float64(s1.Magnitude)
return nil
}
// Document: A Google Docs document.
type Document struct {
// Body: Output only. The main body of the document.
Body *Body `json:"body,omitempty"`
// DocumentId: Output only. The ID of the document.
DocumentId string `json:"documentId,omitempty"`
// DocumentStyle: Output only. The style of the document.
DocumentStyle *DocumentStyle `json:"documentStyle,omitempty"`
// Footers: Output only. The footers in the document, keyed by footer
// ID.
Footers map[string]Footer `json:"footers,omitempty"`
// Footnotes: Output only. The footnotes in the document, keyed by
// footnote ID.
Footnotes map[string]Footnote `json:"footnotes,omitempty"`
// Headers: Output only. The headers in the document, keyed by header
// ID.
Headers map[string]Header `json:"headers,omitempty"`
// InlineObjects: Output only. The inline objects in the document, keyed
// by object ID.
InlineObjects map[string]InlineObject `json:"inlineObjects,omitempty"`
// Lists: Output only. The lists in the document, keyed by list ID.
Lists map[string]List `json:"lists,omitempty"`
// NamedRanges: Output only. The named ranges in the document, keyed by
// name.
NamedRanges map[string]NamedRanges `json:"namedRanges,omitempty"`
// NamedStyles: Output only. The named styles of the document.
NamedStyles *NamedStyles `json:"namedStyles,omitempty"`
// PositionedObjects: Output only. The positioned objects in the
// document, keyed by object ID.
PositionedObjects map[string]PositionedObject `json:"positionedObjects,omitempty"`
// RevisionId: Output only. The revision ID of the document. Can be used
// in update requests to specify which revision of a document to apply
// updates to and how the request should behave if the document has been
// edited since that revision. Only populated if the user has edit
// access to the document. The format of the revision ID may change over
// time, so it should be treated opaquely. A returned revision ID is
// only guaranteed to be valid for 24 hours after it has been returned
// and cannot be shared across users. If the revision ID is unchanged
// between calls, then the document has not changed. Conversely, a
// changed ID (for the same document and user) usually means the
// document has been updated; however, a changed ID can also be due to
// internal factors such as ID format changes.
RevisionId string `json:"revisionId,omitempty"`
// SuggestedDocumentStyleChanges: Output only. The suggested changes to
// the style of the document, keyed by suggestion ID.
SuggestedDocumentStyleChanges map[string]SuggestedDocumentStyle `json:"suggestedDocumentStyleChanges,omitempty"`
// SuggestedNamedStylesChanges: Output only. The suggested changes to
// the named styles of the document, keyed by suggestion ID.
SuggestedNamedStylesChanges map[string]SuggestedNamedStyles `json:"suggestedNamedStylesChanges,omitempty"`
// SuggestionsViewMode: Output only. The suggestions view mode applied
// to the document. Note: When editing a document, changes must be based
// on a document with SUGGESTIONS_INLINE.
//
// Possible values:
// "DEFAULT_FOR_CURRENT_ACCESS" - The SuggestionsViewMode applied to
// the returned document depends on the user's current access level. If
// the user only has view access, PREVIEW_WITHOUT_SUGGESTIONS is
// applied. Otherwise, SUGGESTIONS_INLINE is applied. This is the
// default suggestions view mode.
// "SUGGESTIONS_INLINE" - The returned document has suggestions
// inline. Suggested changes will be differentiated from base content
// within the document. Requests to retrieve a document using this mode
// will return a 403 error if the user does not have permission to view
// suggested changes.
// "PREVIEW_SUGGESTIONS_ACCEPTED" - The returned document is a preview
// with all suggested changes accepted. Requests to retrieve a document
// using this mode will return a 403 error if the user does not have
// permission to view suggested changes.
// "PREVIEW_WITHOUT_SUGGESTIONS" - The returned document is a preview
// with all suggested changes rejected if there are any suggestions in
// the document.
SuggestionsViewMode string `json:"suggestionsViewMode,omitempty"`
// Title: The title of the document.
Title string `json:"title,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Body") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Body") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Document) MarshalJSON() ([]byte, error) {
type NoMethod Document
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DocumentStyle: The style of the document.
type DocumentStyle struct {
// Background: The background of the document. Documents cannot have a
// transparent background color.
Background *Background `json:"background,omitempty"`
// DefaultFooterId: The ID of the default footer. If not set, there is
// no default footer. This property is read-only.
DefaultFooterId string `json:"defaultFooterId,omitempty"`
// DefaultHeaderId: The ID of the default header. If not set, there is
// no default header. This property is read-only.
DefaultHeaderId string `json:"defaultHeaderId,omitempty"`
// EvenPageFooterId: The ID of the footer used only for even pages. The
// value of use_even_page_header_footer determines whether to use the
// default_footer_id or this value for the footer on even pages. If not
// set, there is no even page footer. This property is read-only.
EvenPageFooterId string `json:"evenPageFooterId,omitempty"`
// EvenPageHeaderId: The ID of the header used only for even pages. The
// value of use_even_page_header_footer determines whether to use the
// default_header_id or this value for the header on even pages. If not
// set, there is no even page header. This property is read-only.
EvenPageHeaderId string `json:"evenPageHeaderId,omitempty"`
// FirstPageFooterId: The ID of the footer used only for the first page.
// If not set then a unique footer for the first page does not exist.
// The value of use_first_page_header_footer determines whether to use
// the default_footer_id or this value for the footer on the first page.
// If not set, there is no first page footer. This property is
// read-only.
FirstPageFooterId string `json:"firstPageFooterId,omitempty"`
// FirstPageHeaderId: The ID of the header used only for the first page.
// If not set then a unique header for the first page does not exist.
// The value of use_first_page_header_footer determines whether to use
// the default_header_id or this value for the header on the first page.
// If not set, there is no first page header. This property is
// read-only.
FirstPageHeaderId string `json:"firstPageHeaderId,omitempty"`
// MarginBottom: The bottom page margin. Updating the bottom page margin
// on the document style clears the bottom page margin on all section
// styles.
MarginBottom *Dimension `json:"marginBottom,omitempty"`
// MarginFooter: The amount of space between the bottom of the page and
// the contents of the footer.
MarginFooter *Dimension `json:"marginFooter,omitempty"`
// MarginHeader: The amount of space between the top of the page and the
// contents of the header.
MarginHeader *Dimension `json:"marginHeader,omitempty"`
// MarginLeft: The left page margin. Updating the left page margin on
// the document style clears the left page margin on all section styles.
// It may also cause columns to resize in all sections.
MarginLeft *Dimension `json:"marginLeft,omitempty"`
// MarginRight: The right page margin. Updating the right page margin on
// the document style clears the right page margin on all section
// styles. It may also cause columns to resize in all sections.
MarginRight *Dimension `json:"marginRight,omitempty"`
// MarginTop: The top page margin. Updating the top page margin on the
// document style clears the top page margin on all section styles.
MarginTop *Dimension `json:"marginTop,omitempty"`
// PageNumberStart: The page number from which to start counting the
// number of pages.
PageNumberStart int64 `json:"pageNumberStart,omitempty"`
// PageSize: The size of a page in the document.
PageSize *Size `json:"pageSize,omitempty"`
// UseCustomHeaderFooterMargins: Indicates whether DocumentStyle
// margin_header, SectionStyle margin_header and DocumentStyle
// margin_footer, SectionStyle margin_footer are respected. When false,
// the default values in the Docs editor for header and footer margin
// are used. This property is read-only.
UseCustomHeaderFooterMargins bool `json:"useCustomHeaderFooterMargins,omitempty"`
// UseEvenPageHeaderFooter: Indicates whether to use the even page
// header / footer IDs for the even pages.
UseEvenPageHeaderFooter bool `json:"useEvenPageHeaderFooter,omitempty"`
// UseFirstPageHeaderFooter: Indicates whether to use the first page
// header / footer IDs for the first page.
UseFirstPageHeaderFooter bool `json:"useFirstPageHeaderFooter,omitempty"`
// ForceSendFields is a list of field names (e.g. "Background") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Background") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DocumentStyle) MarshalJSON() ([]byte, error) {
type NoMethod DocumentStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DocumentStyleSuggestionState: A mask that indicates which of the
// fields on the base DocumentStyle have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type DocumentStyleSuggestionState struct {
// BackgroundSuggestionState: A mask that indicates which of the fields
// in background have been changed in this suggestion.
BackgroundSuggestionState *BackgroundSuggestionState `json:"backgroundSuggestionState,omitempty"`
// DefaultFooterIdSuggested: Indicates if there was a suggested change
// to default_footer_id.
DefaultFooterIdSuggested bool `json:"defaultFooterIdSuggested,omitempty"`
// DefaultHeaderIdSuggested: Indicates if there was a suggested change
// to default_header_id.
DefaultHeaderIdSuggested bool `json:"defaultHeaderIdSuggested,omitempty"`
// EvenPageFooterIdSuggested: Indicates if there was a suggested change
// to even_page_footer_id.
EvenPageFooterIdSuggested bool `json:"evenPageFooterIdSuggested,omitempty"`
// EvenPageHeaderIdSuggested: Indicates if there was a suggested change
// to even_page_header_id.
EvenPageHeaderIdSuggested bool `json:"evenPageHeaderIdSuggested,omitempty"`
// FirstPageFooterIdSuggested: Indicates if there was a suggested change
// to first_page_footer_id.
FirstPageFooterIdSuggested bool `json:"firstPageFooterIdSuggested,omitempty"`
// FirstPageHeaderIdSuggested: Indicates if there was a suggested change
// to first_page_header_id.
FirstPageHeaderIdSuggested bool `json:"firstPageHeaderIdSuggested,omitempty"`
// MarginBottomSuggested: Indicates if there was a suggested change to
// margin_bottom.
MarginBottomSuggested bool `json:"marginBottomSuggested,omitempty"`
// MarginFooterSuggested: Indicates if there was a suggested change to
// margin_footer.
MarginFooterSuggested bool `json:"marginFooterSuggested,omitempty"`
// MarginHeaderSuggested: Indicates if there was a suggested change to
// margin_header.
MarginHeaderSuggested bool `json:"marginHeaderSuggested,omitempty"`
// MarginLeftSuggested: Indicates if there was a suggested change to
// margin_left.
MarginLeftSuggested bool `json:"marginLeftSuggested,omitempty"`
// MarginRightSuggested: Indicates if there was a suggested change to
// margin_right.
MarginRightSuggested bool `json:"marginRightSuggested,omitempty"`
// MarginTopSuggested: Indicates if there was a suggested change to
// margin_top.
MarginTopSuggested bool `json:"marginTopSuggested,omitempty"`
// PageNumberStartSuggested: Indicates if there was a suggested change
// to page_number_start.
PageNumberStartSuggested bool `json:"pageNumberStartSuggested,omitempty"`
// PageSizeSuggestionState: A mask that indicates which of the fields in
// size have been changed in this suggestion.
PageSizeSuggestionState *SizeSuggestionState `json:"pageSizeSuggestionState,omitempty"`
// UseCustomHeaderFooterMarginsSuggested: Indicates if there was a
// suggested change to use_custom_header_footer_margins.
UseCustomHeaderFooterMarginsSuggested bool `json:"useCustomHeaderFooterMarginsSuggested,omitempty"`
// UseEvenPageHeaderFooterSuggested: Indicates if there was a suggested
// change to use_even_page_header_footer.
UseEvenPageHeaderFooterSuggested bool `json:"useEvenPageHeaderFooterSuggested,omitempty"`
// UseFirstPageHeaderFooterSuggested: Indicates if there was a suggested
// change to use_first_page_header_footer.
UseFirstPageHeaderFooterSuggested bool `json:"useFirstPageHeaderFooterSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BackgroundSuggestionState") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "BackgroundSuggestionState") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DocumentStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod DocumentStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EmbeddedDrawingProperties: The properties of an embedded drawing.
type EmbeddedDrawingProperties struct {
}
// EmbeddedDrawingPropertiesSuggestionState: A mask that indicates which
// of the fields on the base EmbeddedDrawingProperties have been changed
// in this suggestion. For any field set to true, there is a new
// suggested value.
type EmbeddedDrawingPropertiesSuggestionState struct {
}
// EmbeddedObject: An embedded object in the document.
type EmbeddedObject struct {
// Description: The description of the embedded object. The `title` and
// `description` are both combined to display alt text.
Description string `json:"description,omitempty"`
// EmbeddedDrawingProperties: The properties of an embedded drawing.
EmbeddedDrawingProperties *EmbeddedDrawingProperties `json:"embeddedDrawingProperties,omitempty"`
// EmbeddedObjectBorder: The border of the embedded object.
EmbeddedObjectBorder *EmbeddedObjectBorder `json:"embeddedObjectBorder,omitempty"`
// ImageProperties: The properties of an image.
ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
// LinkedContentReference: A reference to the external linked source
// content. For example, it contains a reference to the source Sheets
// chart when the embedded object is a linked chart. If unset, then the
// embedded object is not linked.
LinkedContentReference *LinkedContentReference `json:"linkedContentReference,omitempty"`
// MarginBottom: The bottom margin of the embedded object.
MarginBottom *Dimension `json:"marginBottom,omitempty"`
// MarginLeft: The left margin of the embedded object.
MarginLeft *Dimension `json:"marginLeft,omitempty"`
// MarginRight: The right margin of the embedded object.
MarginRight *Dimension `json:"marginRight,omitempty"`
// MarginTop: The top margin of the embedded object.
MarginTop *Dimension `json:"marginTop,omitempty"`
// Size: The visible size of the image after cropping.
Size *Size `json:"size,omitempty"`
// Title: The title of the embedded object. The `title` and
// `description` are both combined to display alt text.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EmbeddedObject) MarshalJSON() ([]byte, error) {
type NoMethod EmbeddedObject
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EmbeddedObjectBorder: A border around an EmbeddedObject.
type EmbeddedObjectBorder struct {
// Color: The color of the border.
Color *OptionalColor `json:"color,omitempty"`
// DashStyle: The dash style of the border.
//
// Possible values:
// "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
// "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'solid'. This is the default dash style.
// "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dot'.
// "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dash'.
DashStyle string `json:"dashStyle,omitempty"`
// PropertyState: The property state of the border property.
//
// Possible values:
// "RENDERED" - If a property's state is RENDERED, then the element
// has the corresponding property when rendered in the document. This is
// the default value.
// "NOT_RENDERED" - If a property's state is NOT_RENDERED, then the
// element does not have the corresponding property when rendered in the
// document.
PropertyState string `json:"propertyState,omitempty"`
// Width: The width of the border.
Width *Dimension `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Color") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EmbeddedObjectBorder) MarshalJSON() ([]byte, error) {
type NoMethod EmbeddedObjectBorder
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EmbeddedObjectBorderSuggestionState: A mask that indicates which of
// the fields on the base EmbeddedObjectBorder have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type EmbeddedObjectBorderSuggestionState struct {
// ColorSuggested: Indicates if there was a suggested change to color.
ColorSuggested bool `json:"colorSuggested,omitempty"`
// DashStyleSuggested: Indicates if there was a suggested change to
// dash_style.
DashStyleSuggested bool `json:"dashStyleSuggested,omitempty"`
// PropertyStateSuggested: Indicates if there was a suggested change to
// property_state.
PropertyStateSuggested bool `json:"propertyStateSuggested,omitempty"`
// WidthSuggested: Indicates if there was a suggested change to width.
WidthSuggested bool `json:"widthSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColorSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColorSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *EmbeddedObjectBorderSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod EmbeddedObjectBorderSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EmbeddedObjectSuggestionState: A mask that indicates which of the
// fields on the base EmbeddedObject have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type EmbeddedObjectSuggestionState struct {
// DescriptionSuggested: Indicates if there was a suggested change to
// description.
DescriptionSuggested bool `json:"descriptionSuggested,omitempty"`
// EmbeddedDrawingPropertiesSuggestionState: A mask that indicates which
// of the fields in embedded_drawing_properties have been changed in
// this suggestion.
EmbeddedDrawingPropertiesSuggestionState *EmbeddedDrawingPropertiesSuggestionState `json:"embeddedDrawingPropertiesSuggestionState,omitempty"`
// EmbeddedObjectBorderSuggestionState: A mask that indicates which of
// the fields in embedded_object_border have been changed in this
// suggestion.
EmbeddedObjectBorderSuggestionState *EmbeddedObjectBorderSuggestionState `json:"embeddedObjectBorderSuggestionState,omitempty"`
// ImagePropertiesSuggestionState: A mask that indicates which of the
// fields in image_properties have been changed in this suggestion.
ImagePropertiesSuggestionState *ImagePropertiesSuggestionState `json:"imagePropertiesSuggestionState,omitempty"`
// LinkedContentReferenceSuggestionState: A mask that indicates which of
// the fields in linked_content_reference have been changed in this
// suggestion.
LinkedContentReferenceSuggestionState *LinkedContentReferenceSuggestionState `json:"linkedContentReferenceSuggestionState,omitempty"`
// MarginBottomSuggested: Indicates if there was a suggested change to
// margin_bottom.
MarginBottomSuggested bool `json:"marginBottomSuggested,omitempty"`
// MarginLeftSuggested: Indicates if there was a suggested change to
// margin_left.
MarginLeftSuggested bool `json:"marginLeftSuggested,omitempty"`
// MarginRightSuggested: Indicates if there was a suggested change to
// margin_right.
MarginRightSuggested bool `json:"marginRightSuggested,omitempty"`
// MarginTopSuggested: Indicates if there was a suggested change to
// margin_top.
MarginTopSuggested bool `json:"marginTopSuggested,omitempty"`
// SizeSuggestionState: A mask that indicates which of the fields in
// size have been changed in this suggestion.
SizeSuggestionState *SizeSuggestionState `json:"sizeSuggestionState,omitempty"`
// TitleSuggested: Indicates if there was a suggested change to title.
TitleSuggested bool `json:"titleSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DescriptionSuggested") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DescriptionSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *EmbeddedObjectSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod EmbeddedObjectSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EndOfSegmentLocation: Location at the end of a body, header, footer
// or footnote. The location is immediately before the last newline in
// the document segment.
type EndOfSegmentLocation struct {
// SegmentId: The ID of the header, footer or footnote the location is
// in. An empty segment ID signifies the document's body.
SegmentId string `json:"segmentId,omitempty"`
// ForceSendFields is a list of field names (e.g. "SegmentId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SegmentId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EndOfSegmentLocation) MarshalJSON() ([]byte, error) {
type NoMethod EndOfSegmentLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Equation: A ParagraphElement representing an equation.
type Equation struct {
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A Equation may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SuggestedDeletionIds") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SuggestedDeletionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Equation) MarshalJSON() ([]byte, error) {
type NoMethod Equation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Footer: A document footer.
type Footer struct {
// Content: The contents of the footer. The indexes for a footer's
// content begin at zero.
Content []*StructuralElement `json:"content,omitempty"`
// FooterId: The ID of the footer.
FooterId string `json:"footerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Footer) MarshalJSON() ([]byte, error) {
type NoMethod Footer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Footnote: A document footnote.
type Footnote struct {
// Content: The contents of the footnote. The indexes for a footnote's
// content begin at zero.
Content []*StructuralElement `json:"content,omitempty"`
// FootnoteId: The ID of the footnote.
FootnoteId string `json:"footnoteId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Footnote) MarshalJSON() ([]byte, error) {
type NoMethod Footnote
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FootnoteReference: A ParagraphElement representing a footnote
// reference. A footnote reference is the inline content rendered with a
// number and is used to identify the footnote.
type FootnoteReference struct {
// FootnoteId: The ID of the footnote that contains the content of this
// footnote reference.
FootnoteId string `json:"footnoteId,omitempty"`
// FootnoteNumber: The rendered number of this footnote.
FootnoteNumber string `json:"footnoteNumber,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A
// FootnoteReference may have multiple insertion IDs if it is a nested
// suggested change. If empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// FootnoteReference, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this FootnoteReference.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "FootnoteId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FootnoteId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FootnoteReference) MarshalJSON() ([]byte, error) {
type NoMethod FootnoteReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Header: A document header.
type Header struct {
// Content: The contents of the header. The indexes for a header's
// content begin at zero.
Content []*StructuralElement `json:"content,omitempty"`
// HeaderId: The ID of the header.
HeaderId string `json:"headerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Header) MarshalJSON() ([]byte, error) {
type NoMethod Header
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// HorizontalRule: A ParagraphElement representing a horizontal line.
type HorizontalRule struct {
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A HorizontalRule
// may have multiple insertion IDs if it is a nested suggested change.
// If empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// HorizontalRule, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this HorizontalRule. Similar to text
// content, like text runs and footnote references, the text style of a
// horizontal rule can affect content layout as well as the styling of
// text inserted adjacent to it.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SuggestedDeletionIds") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SuggestedDeletionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *HorizontalRule) MarshalJSON() ([]byte, error) {
type NoMethod HorizontalRule
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ImageProperties: The properties of an image.
type ImageProperties struct {
// Angle: The clockwise rotation angle of the image, in radians.
Angle float64 `json:"angle,omitempty"`
// Brightness: The brightness effect of the image. The value should be
// in the interval [-1.0, 1.0], where 0 means no effect.
Brightness float64 `json:"brightness,omitempty"`
// ContentUri: A URI to the image with a default lifetime of 30 minutes.
// This URI is tagged with the account of the requester. Anyone with the
// URI effectively accesses the image as the original requester. Access
// to the image may be lost if the document's sharing settings change.
ContentUri string `json:"contentUri,omitempty"`
// Contrast: The contrast effect of the image. The value should be in
// the interval [-1.0, 1.0], where 0 means no effect.
Contrast float64 `json:"contrast,omitempty"`
// CropProperties: The crop properties of the image.
CropProperties *CropProperties `json:"cropProperties,omitempty"`
// SourceUri: The source URI is the URI used to insert the image. The
// source URI can be empty.
SourceUri string `json:"sourceUri,omitempty"`
// Transparency: The transparency effect of the image. The value should
// be in the interval [0.0, 1.0], where 0 means no effect and 1 means
// completely transparent.
Transparency float64 `json:"transparency,omitempty"`
// ForceSendFields is a list of field names (e.g. "Angle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Angle") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageProperties) MarshalJSON() ([]byte, error) {
type NoMethod ImageProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ImageProperties) UnmarshalJSON(data []byte) error {
type NoMethod ImageProperties
var s1 struct {
Angle gensupport.JSONFloat64 `json:"angle"`
Brightness gensupport.JSONFloat64 `json:"brightness"`
Contrast gensupport.JSONFloat64 `json:"contrast"`
Transparency gensupport.JSONFloat64 `json:"transparency"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Angle = float64(s1.Angle)
s.Brightness = float64(s1.Brightness)
s.Contrast = float64(s1.Contrast)
s.Transparency = float64(s1.Transparency)
return nil
}
// ImagePropertiesSuggestionState: A mask that indicates which of the
// fields on the base ImageProperties have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type ImagePropertiesSuggestionState struct {
// AngleSuggested: Indicates if there was a suggested change to angle.
AngleSuggested bool `json:"angleSuggested,omitempty"`
// BrightnessSuggested: Indicates if there was a suggested change to
// brightness.
BrightnessSuggested bool `json:"brightnessSuggested,omitempty"`
// ContentUriSuggested: Indicates if there was a suggested change to
// content_uri.
ContentUriSuggested bool `json:"contentUriSuggested,omitempty"`
// ContrastSuggested: Indicates if there was a suggested change to
// contrast.
ContrastSuggested bool `json:"contrastSuggested,omitempty"`
// CropPropertiesSuggestionState: A mask that indicates which of the
// fields in crop_properties have been changed in this suggestion.
CropPropertiesSuggestionState *CropPropertiesSuggestionState `json:"cropPropertiesSuggestionState,omitempty"`
// SourceUriSuggested: Indicates if there was a suggested change to
// source_uri.
SourceUriSuggested bool `json:"sourceUriSuggested,omitempty"`
// TransparencySuggested: Indicates if there was a suggested change to
// transparency.
TransparencySuggested bool `json:"transparencySuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "AngleSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AngleSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ImagePropertiesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod ImagePropertiesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InlineObject: An object that appears inline with text. An
// InlineObject contains an EmbeddedObject such as an image.
type InlineObject struct {
// InlineObjectProperties: The properties of this inline object.
InlineObjectProperties *InlineObjectProperties `json:"inlineObjectProperties,omitempty"`
// ObjectId: The ID of this inline object.
ObjectId string `json:"objectId,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInlineObjectPropertiesChanges: The suggested changes to the
// inline object properties, keyed by suggestion ID.
SuggestedInlineObjectPropertiesChanges map[string]SuggestedInlineObjectProperties `json:"suggestedInlineObjectPropertiesChanges,omitempty"`
// SuggestedInsertionId: The suggested insertion ID. If empty, then this
// is not a suggested insertion.
SuggestedInsertionId string `json:"suggestedInsertionId,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "InlineObjectProperties") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InlineObjectProperties")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InlineObject) MarshalJSON() ([]byte, error) {
type NoMethod InlineObject
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InlineObjectElement: A ParagraphElement that contains an
// InlineObject.
type InlineObjectElement struct {
// InlineObjectId: The ID of the InlineObject this element contains.
InlineObjectId string `json:"inlineObjectId,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. An
// InlineObjectElement may have multiple insertion IDs if it is a nested
// suggested change. If empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// InlineObject, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this InlineObjectElement. Similar to
// text content, like text runs and footnote references, the text style
// of an inline object element can affect content layout as well as the
// styling of text inserted adjacent to it.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "InlineObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InlineObjectId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InlineObjectElement) MarshalJSON() ([]byte, error) {
type NoMethod InlineObjectElement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InlineObjectProperties: Properties of an InlineObject.
type InlineObjectProperties struct {
// EmbeddedObject: The embedded object of this inline object.
EmbeddedObject *EmbeddedObject `json:"embeddedObject,omitempty"`
// ForceSendFields is a list of field names (e.g. "EmbeddedObject") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EmbeddedObject") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InlineObjectProperties) MarshalJSON() ([]byte, error) {
type NoMethod InlineObjectProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InlineObjectPropertiesSuggestionState: A mask that indicates which of
// the fields on the base InlineObjectProperties have been changed in
// this suggestion. For any field set to true, there is a new suggested
// value.
type InlineObjectPropertiesSuggestionState struct {
// EmbeddedObjectSuggestionState: A mask that indicates which of the
// fields in embedded_object have been changed in this suggestion.
EmbeddedObjectSuggestionState *EmbeddedObjectSuggestionState `json:"embeddedObjectSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EmbeddedObjectSuggestionState") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "EmbeddedObjectSuggestionState") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InlineObjectPropertiesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod InlineObjectPropertiesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertInlineImageRequest: Inserts an InlineObject containing an image
// at the given location.
type InsertInlineImageRequest struct {
// EndOfSegmentLocation: Inserts the text at the end of a header, footer
// or the document body. Inline images cannot be inserted inside a
// footnote.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts the image at a specific index in the document. The
// image must be inserted inside the bounds of an existing Paragraph.
// For instance, it cannot be inserted at a table's start index (i.e.
// between the table and its preceding paragraph). Inline images cannot
// be inserted inside a footnote or equation.
Location *Location `json:"location,omitempty"`
// ObjectSize: The size that the image should appear as in the document.
// This property is optional and the final size of the image in the
// document is determined by the following rules: * If neither width nor
// height is specified, then a default size of the image is calculated
// based on its resolution. * If one dimension is specified then the
// other dimension is calculated to preserve the aspect ratio of the
// image. * If both width and height are specified, the image is scaled
// to fit within the provided dimensions while maintaining its aspect
// ratio.
ObjectSize *Size `json:"objectSize,omitempty"`
// Uri: The image URI. The image is fetched once at insertion time and a
// copy is stored for display inside the document. Images must be less
// than 50MB in size, cannot exceed 25 megapixels, and must be in one of
// PNG, JPEG, or GIF format. The provided URI can be at most 2 kB in
// length. The URI itself is saved with the image, and exposed via the
// ImageProperties.content_uri field.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EndOfSegmentLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndOfSegmentLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InsertInlineImageRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertInlineImageRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertInlineImageResponse: The result of inserting an inline image.
type InsertInlineImageResponse struct {
// ObjectId: The ID of the created InlineObject.
ObjectId string `json:"objectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InsertInlineImageResponse) MarshalJSON() ([]byte, error) {
type NoMethod InsertInlineImageResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertInlineSheetsChartResponse: The result of inserting an embedded
// Google Sheets chart.
type InsertInlineSheetsChartResponse struct {
// ObjectId: The object ID of the inserted chart.
ObjectId string `json:"objectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InsertInlineSheetsChartResponse) MarshalJSON() ([]byte, error) {
type NoMethod InsertInlineSheetsChartResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertPageBreakRequest: Inserts a page break followed by a newline at
// the specified location.
type InsertPageBreakRequest struct {
// EndOfSegmentLocation: Inserts the page break at the end of the
// document body. Page breaks cannot be inserted inside a footnote,
// header or footer. Since page breaks can only be inserted inside the
// body, the segment ID field must be empty.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts the page break at a specific index in the document.
// The page break must be inserted inside the bounds of an existing
// Paragraph. For instance, it cannot be inserted at a table's start
// index (i.e. between the table and its preceding paragraph). Page
// breaks cannot be inserted inside a table, equation, footnote, header
// or footer. Since page breaks can only be inserted inside the body,
// the segment ID field must be empty.
Location *Location `json:"location,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EndOfSegmentLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndOfSegmentLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InsertPageBreakRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertPageBreakRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertSectionBreakRequest: Inserts a section break at the given
// location. A newline character will be inserted before the section
// break.
type InsertSectionBreakRequest struct {
// EndOfSegmentLocation: Inserts a newline and a section break at the
// end of the document body. Section breaks cannot be inserted inside a
// footnote, header or footer. Because section breaks can only be
// inserted inside the body, the segment ID field must be empty.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts a newline and a section break at a specific index
// in the document. The section break must be inserted inside the bounds
// of an existing Paragraph. For instance, it cannot be inserted at a
// table's start index (i.e. between the table and its preceding
// paragraph). Section breaks cannot be inserted inside a table,
// equation, footnote, header, or footer. Since section breaks can only
// be inserted inside the body, the segment ID field must be empty.
Location *Location `json:"location,omitempty"`
// SectionType: The type of section to insert.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - The section type is unspecified.
// "CONTINUOUS" - The section starts immediately after the last
// paragraph of the previous section.
// "NEXT_PAGE" - The section starts on the next page.
SectionType string `json:"sectionType,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EndOfSegmentLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndOfSegmentLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InsertSectionBreakRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertSectionBreakRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTableColumnRequest: Inserts an empty column into a table.
type InsertTableColumnRequest struct {
// InsertRight: Whether to insert new column to the right of the
// reference cell location. - `True`: insert to the right. - `False`:
// insert to the left.
InsertRight bool `json:"insertRight,omitempty"`
// TableCellLocation: The reference table cell location from which
// columns will be inserted. A new column will be inserted to the left
// (or right) of the column where the reference cell is. If the
// reference cell is a merged cell, a new column will be inserted to the
// left (or right) of the merged cell.
TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "InsertRight") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InsertRight") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InsertTableColumnRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTableColumnRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTableRequest: Inserts a table at the specified location. A
// newline character will be inserted before the inserted table.
type InsertTableRequest struct {
// Columns: The number of columns in the table.
Columns int64 `json:"columns,omitempty"`
// EndOfSegmentLocation: Inserts the table at the end of the given
// header, footer or document body. A newline character will be inserted
// before the inserted table. Tables cannot be inserted inside a
// footnote.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts the table at a specific model index. A newline
// character will be inserted before the inserted table, therefore the
// table start index will be at the specified location index + 1. The
// table must be inserted inside the bounds of an existing Paragraph.
// For instance, it cannot be inserted at a table's start index (i.e.
// between an existing table and its preceding paragraph). Tables cannot
// be inserted inside a footnote or equation.
Location *Location `json:"location,omitempty"`
// Rows: The number of rows in the table.
Rows int64 `json:"rows,omitempty"`
// ForceSendFields is a list of field names (e.g. "Columns") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Columns") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InsertTableRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTableRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTableRowRequest: Inserts an empty row into a table.
type InsertTableRowRequest struct {
// InsertBelow: Whether to insert new row below the reference cell
// location. - `True`: insert below the cell. - `False`: insert above
// the cell.
InsertBelow bool `json:"insertBelow,omitempty"`
// TableCellLocation: The reference table cell location from which rows
// will be inserted. A new row will be inserted above (or below) the row
// where the reference cell is. If the reference cell is a merged cell,
// a new row will be inserted above (or below) the merged cell.
TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "InsertBelow") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InsertBelow") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InsertTableRowRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTableRowRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InsertTextRequest: Inserts text at the specified location.
type InsertTextRequest struct {
// EndOfSegmentLocation: Inserts the text at the end of a header,
// footer, footnote or the document body.
EndOfSegmentLocation *EndOfSegmentLocation `json:"endOfSegmentLocation,omitempty"`
// Location: Inserts the text at a specific index in the document. Text
// must be inserted inside the bounds of an existing Paragraph. For
// instance, text cannot be inserted at a table's start index (i.e.
// between the table and its preceding paragraph). The text must be
// inserted in the preceding paragraph.
Location *Location `json:"location,omitempty"`
// Text: The text to be inserted. Inserting a newline character will
// implicitly create a new Paragraph at that index. The paragraph style
// of the new paragraph will be copied from the paragraph at the current
// insertion index, including lists and bullets. Text styles for
// inserted text will be determined automatically, generally preserving
// the styling of neighboring text. In most cases, the text style for
// the inserted text will match the text immediately before the
// insertion index. Some control characters (U+0000-U+0008,
// U+000C-U+001F) and characters from the Unicode Basic Multilingual
// Plane Private Use Area (U+E000-U+F8FF) will be stripped out of the
// inserted text.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EndOfSegmentLocation") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndOfSegmentLocation") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *InsertTextRequest) MarshalJSON() ([]byte, error) {
type NoMethod InsertTextRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Link: A reference to another portion of a document or an external URL
// resource.
type Link struct {
// BookmarkId: The ID of a bookmark in this document.
BookmarkId string `json:"bookmarkId,omitempty"`
// HeadingId: The ID of a heading in this document.
HeadingId string `json:"headingId,omitempty"`
// Url: An external URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "BookmarkId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BookmarkId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Link) MarshalJSON() ([]byte, error) {
type NoMethod Link
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LinkedContentReference: A reference to the external linked source
// content.
type LinkedContentReference struct {
// SheetsChartReference: A reference to the linked chart.
SheetsChartReference *SheetsChartReference `json:"sheetsChartReference,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SheetsChartReference") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SheetsChartReference") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *LinkedContentReference) MarshalJSON() ([]byte, error) {
type NoMethod LinkedContentReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LinkedContentReferenceSuggestionState: A mask that indicates which of
// the fields on the base LinkedContentReference have been changed in
// this suggestion. For any field set to true, there is a new suggested
// value.
type LinkedContentReferenceSuggestionState struct {
// SheetsChartReferenceSuggestionState: A mask that indicates which of
// the fields in sheets_chart_reference have been changed in this
// suggestion.
SheetsChartReferenceSuggestionState *SheetsChartReferenceSuggestionState `json:"sheetsChartReferenceSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SheetsChartReferenceSuggestionState") to unconditionally include in
// API requests. By default, fields with empty or default values are
// omitted from API requests. However, any non-pointer, non-interface
// field appearing in ForceSendFields will be sent to the server
// regardless of whether the field is empty or not. This may be used to
// include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "SheetsChartReferenceSuggestionState") to include in API requests
// with the JSON null value. By default, fields with empty values are
// omitted from API requests. However, any field with an empty value
// appearing in NullFields will be sent to the server as null. It is an
// error if a field in this list has a non-empty value. This may be used
// to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LinkedContentReferenceSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod LinkedContentReferenceSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// List: A List represents the list attributes for a group of paragraphs
// that all belong to the same list. A paragraph that is part of a list
// has a reference to the list's ID in its bullet.
type List struct {
// ListProperties: The properties of the list.
ListProperties *ListProperties `json:"listProperties,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this list.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionId: The suggested insertion ID. If empty, then this
// is not a suggested insertion.
SuggestedInsertionId string `json:"suggestedInsertionId,omitempty"`
// SuggestedListPropertiesChanges: The suggested changes to the list
// properties, keyed by suggestion ID.
SuggestedListPropertiesChanges map[string]SuggestedListProperties `json:"suggestedListPropertiesChanges,omitempty"`
// ForceSendFields is a list of field names (e.g. "ListProperties") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ListProperties") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *List) MarshalJSON() ([]byte, error) {
type NoMethod List
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListProperties: The properties of a list which describe the look and
// feel of bullets belonging to paragraphs associated with a list.
type ListProperties struct {
// NestingLevels: Describes the properties of the bullets at the
// associated level. A list has at most nine levels of nesting with
// nesting level 0 corresponding to the top-most level and nesting level
// 8 corresponding to the most nested level. The nesting levels are
// returned in ascending order with the least nested returned first.
NestingLevels []*NestingLevel `json:"nestingLevels,omitempty"`
// ForceSendFields is a list of field names (e.g. "NestingLevels") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NestingLevels") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListProperties) MarshalJSON() ([]byte, error) {
type NoMethod ListProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListPropertiesSuggestionState: A mask that indicates which of the
// fields on the base ListProperties have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type ListPropertiesSuggestionState struct {
// NestingLevelsSuggestionStates: A mask that indicates which of the
// fields on the corresponding NestingLevel in nesting_levels have been
// changed in this suggestion. The nesting level suggestion states are
// returned in ascending order of the nesting level with the least
// nested returned first.
NestingLevelsSuggestionStates []*NestingLevelSuggestionState `json:"nestingLevelsSuggestionStates,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "NestingLevelsSuggestionStates") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "NestingLevelsSuggestionStates") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListPropertiesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod ListPropertiesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Location: A particular location in the document.
type Location struct {
// Index: The zero-based index, in UTF-16 code units. The index is
// relative to the beginning of the segment specified by segment_id.
Index int64 `json:"index,omitempty"`
// SegmentId: The ID of the header, footer or footnote the location is
// in. An empty segment ID signifies the document's body.
SegmentId string `json:"segmentId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Index") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Index") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Location) MarshalJSON() ([]byte, error) {
type NoMethod Location
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MergeTableCellsRequest: Merges cells in a Table.
type MergeTableCellsRequest struct {
// TableRange: The table range specifying which cells of the table to
// merge. Any text in the cells being merged will be concatenated and
// stored in the "head" cell of the range. This is the upper-left cell
// of the range when the content direction is left to right, and the
// upper-right cell of the range otherwise. If the range is
// non-rectangular (which can occur in some cases where the range covers
// cells that are already merged or where the table is non-rectangular),
// a 400 bad request error is returned.
TableRange *TableRange `json:"tableRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableRange") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableRange") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MergeTableCellsRequest) MarshalJSON() ([]byte, error) {
type NoMethod MergeTableCellsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedRange: A collection of Ranges with the same named range ID.
// Named ranges allow developers to associate parts of a document with
// an arbitrary user-defined label so their contents can be
// programmatically read or edited at a later time. A document can
// contain multiple named ranges with the same name, but every named
// range has a unique ID. A named range is created with a single Range,
// and content inserted inside a named range generally expands that
// range. However, certain document changes can cause the range to be
// split into multiple ranges. Named ranges are not private. All
// applications and collaborators that have access to the document can
// see its named ranges.
type NamedRange struct {
// Name: The name of the named range.
Name string `json:"name,omitempty"`
// NamedRangeId: The ID of the named range.
NamedRangeId string `json:"namedRangeId,omitempty"`
// Ranges: The ranges that belong to this named range.
Ranges []*Range `json:"ranges,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NamedRange) MarshalJSON() ([]byte, error) {
type NoMethod NamedRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedRanges: A collection of all the NamedRanges in the document that
// share a given name.
type NamedRanges struct {
// Name: The name that all the named ranges share.
Name string `json:"name,omitempty"`
// NamedRanges: The NamedRanges that share the same name.
NamedRanges []*NamedRange `json:"namedRanges,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NamedRanges) MarshalJSON() ([]byte, error) {
type NoMethod NamedRanges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedStyle: A named style. Paragraphs in the document can inherit
// their TextStyle and ParagraphStyle from this named style when they
// have the same named style type.
type NamedStyle struct {
// NamedStyleType: The type of this named style.
//
// Possible values:
// "NAMED_STYLE_TYPE_UNSPECIFIED" - The type of named style is
// unspecified.
// "NORMAL_TEXT" - Normal text.
// "TITLE" - Title.
// "SUBTITLE" - Subtitle.
// "HEADING_1" - Heading 1.
// "HEADING_2" - Heading 2.
// "HEADING_3" - Heading 3.
// "HEADING_4" - Heading 4.
// "HEADING_5" - Heading 5.
// "HEADING_6" - Heading 6.
NamedStyleType string `json:"namedStyleType,omitempty"`
// ParagraphStyle: The paragraph style of this named style.
ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"`
// TextStyle: The text style of this named style.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "NamedStyleType") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NamedStyleType") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NamedStyle) MarshalJSON() ([]byte, error) {
type NoMethod NamedStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedStyleSuggestionState: A suggestion state of a NamedStyle
// message.
type NamedStyleSuggestionState struct {
// NamedStyleType: The named style type that this suggestion state
// corresponds to. This field is provided as a convenience for matching
// the NamedStyleSuggestionState with its corresponding NamedStyle.
//
// Possible values:
// "NAMED_STYLE_TYPE_UNSPECIFIED" - The type of named style is
// unspecified.
// "NORMAL_TEXT" - Normal text.
// "TITLE" - Title.
// "SUBTITLE" - Subtitle.
// "HEADING_1" - Heading 1.
// "HEADING_2" - Heading 2.
// "HEADING_3" - Heading 3.
// "HEADING_4" - Heading 4.
// "HEADING_5" - Heading 5.
// "HEADING_6" - Heading 6.
NamedStyleType string `json:"namedStyleType,omitempty"`
// ParagraphStyleSuggestionState: A mask that indicates which of the
// fields in paragraph style have been changed in this suggestion.
ParagraphStyleSuggestionState *ParagraphStyleSuggestionState `json:"paragraphStyleSuggestionState,omitempty"`
// TextStyleSuggestionState: A mask that indicates which of the fields
// in text style have been changed in this suggestion.
TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "NamedStyleType") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NamedStyleType") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NamedStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod NamedStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedStyles: The named styles. Paragraphs in the document can inherit
// their TextStyle and ParagraphStyle from these named styles.
type NamedStyles struct {
// Styles: The named styles. There is an entry for each of the possible
// named style types.
Styles []*NamedStyle `json:"styles,omitempty"`
// ForceSendFields is a list of field names (e.g. "Styles") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Styles") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NamedStyles) MarshalJSON() ([]byte, error) {
type NoMethod NamedStyles
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NamedStylesSuggestionState: The suggestion state of a NamedStyles
// message.
type NamedStylesSuggestionState struct {
// StylesSuggestionStates: A mask that indicates which of the fields on
// the corresponding NamedStyle in styles have been changed in this
// suggestion. The order of these named style suggestion states match
// the order of the corresponding named style within the named styles
// suggestion.
StylesSuggestionStates []*NamedStyleSuggestionState `json:"stylesSuggestionStates,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "StylesSuggestionStates") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "StylesSuggestionStates")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NamedStylesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod NamedStylesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NestingLevel: Contains properties describing the look and feel of a
// list bullet at a given level of nesting.
type NestingLevel struct {
// BulletAlignment: The alignment of the bullet within the space
// allotted for rendering the bullet.
//
// Possible values:
// "BULLET_ALIGNMENT_UNSPECIFIED" - The bullet alignment is
// unspecified.
// "START" - The bullet is aligned to the start of the space allotted
// for rendering the bullet. Left-aligned for LTR text, right-aligned
// otherwise.
// "CENTER" - The bullet is aligned to the center of the space
// allotted for rendering the bullet.
// "END" - The bullet is aligned to the end of the space allotted for
// rendering the bullet. Right-aligned for LTR text, left-aligned
// otherwise.
BulletAlignment string `json:"bulletAlignment,omitempty"`
// GlyphFormat: The format string used by bullets at this level of
// nesting. The glyph format contains one or more placeholders, and
// these placeholder are replaced with the appropriate values depending
// on the glyph_type or glyph_symbol. The placeholders follow the
// pattern `%[nesting_level]`. Furthermore, placeholders can have
// prefixes and suffixes. Thus, the glyph format follows the pattern
// `%[nesting_level]`. Note that the prefix and suffix are optional and
// can be arbitrary strings. For example, the glyph format `%0.`
// indicates that the rendered glyph will replace the placeholder with
// the corresponding glyph for nesting level 0 followed by a period as
// the suffix. So a list with a glyph type of UPPER_ALPHA and glyph
// format `%0.` at nesting level 0 will result in a list with rendered
// glyphs `A.` `B.` `C.` The glyph format can contain placeholders for
// the current nesting level as well as placeholders for parent nesting
// levels. For example, a list can have a glyph format of `%0.` at
// nesting level 0 and a glyph format of `%0.%1.` at nesting level 1.
// Assuming both nesting levels have DECIMAL glyph types, this would
// result in a list with rendered glyphs `1.` `2.` ` 2.1.` ` 2.2.` `3.`
// For nesting levels that are ordered, the string that replaces a
// placeholder in the glyph format for a particular paragraph depends on
// the paragraph's order within the list.
GlyphFormat string `json:"glyphFormat,omitempty"`
// GlyphSymbol: A custom glyph symbol used by bullets when paragraphs at
// this level of nesting are unordered. The glyph symbol replaces
// placeholders within the glyph_format. For example, if the
// glyph_symbol is the solid circle corresponding to Unicode U+25cf code
// point and the glyph_format is `%0`, the rendered glyph would be the
// solid circle.
GlyphSymbol string `json:"glyphSymbol,omitempty"`
// GlyphType: The type of glyph used by bullets when paragraphs at this
// level of nesting are ordered. The glyph type determines the type of
// glyph used to replace placeholders within the glyph_format when
// paragraphs at this level of nesting are ordered. For example, if the
// nesting level is 0, the glyph_format is `%0.` and the glyph type is
// DECIMAL, then the rendered glyph would replace the placeholder `%0`
// in the glyph format with a number corresponding to list item's order
// within the list.
//
// Possible values:
// "GLYPH_TYPE_UNSPECIFIED" - The glyph type is unspecified or
// unsupported.
// "NONE" - An empty string.
// "DECIMAL" - A number, like `1`, `2`, or `3`.
// "ZERO_DECIMAL" - A number where single digit numbers are prefixed
// with a zero, like `01`, `02`, or `03`. Numbers with more than one
// digit are not prefixed with a zero.
// "UPPER_ALPHA" - An uppercase letter, like `A`, `B`, or `C`.
// "ALPHA" - A lowercase letter, like `a`, `b`, or `c`.
// "UPPER_ROMAN" - An uppercase Roman numeral, like `I`, `II`, or
// `III`.
// "ROMAN" - A lowercase Roman numeral, like `i`, `ii`, or `iii`.
GlyphType string `json:"glyphType,omitempty"`
// IndentFirstLine: The amount of indentation for the first line of
// paragraphs at this level of nesting.
IndentFirstLine *Dimension `json:"indentFirstLine,omitempty"`
// IndentStart: The amount of indentation for paragraphs at this level
// of nesting. Applied to the side that corresponds to the start of the
// text, based on the paragraph's content direction.
IndentStart *Dimension `json:"indentStart,omitempty"`
// StartNumber: The number of the first list item at this nesting level.
// A value of 0 is treated as a value of 1 for lettered lists and roman
// numeraled lists, i.e. for values of both 0 and 1, lettered and roman
// numeraled lists will begin at `a` and `i` respectively. This value is
// ignored for nesting levels with unordered glyphs.
StartNumber int64 `json:"startNumber,omitempty"`
// TextStyle: The text style of bullets at this level of nesting.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "BulletAlignment") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BulletAlignment") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NestingLevel) MarshalJSON() ([]byte, error) {
type NoMethod NestingLevel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NestingLevelSuggestionState: A mask that indicates which of the
// fields on the base NestingLevel have been changed in this suggestion.
// For any field set to true, there is a new suggested value.
type NestingLevelSuggestionState struct {
// BulletAlignmentSuggested: Indicates if there was a suggested change
// to bullet_alignment.
BulletAlignmentSuggested bool `json:"bulletAlignmentSuggested,omitempty"`
// GlyphFormatSuggested: Indicates if there was a suggested change to
// glyph_format.
GlyphFormatSuggested bool `json:"glyphFormatSuggested,omitempty"`
// GlyphSymbolSuggested: Indicates if there was a suggested change to
// glyph_symbol.
GlyphSymbolSuggested bool `json:"glyphSymbolSuggested,omitempty"`
// GlyphTypeSuggested: Indicates if there was a suggested change to
// glyph_type.
GlyphTypeSuggested bool `json:"glyphTypeSuggested,omitempty"`
// IndentFirstLineSuggested: Indicates if there was a suggested change
// to indent_first_line.
IndentFirstLineSuggested bool `json:"indentFirstLineSuggested,omitempty"`
// IndentStartSuggested: Indicates if there was a suggested change to
// indent_start.
IndentStartSuggested bool `json:"indentStartSuggested,omitempty"`
// StartNumberSuggested: Indicates if there was a suggested change to
// start_number.
StartNumberSuggested bool `json:"startNumberSuggested,omitempty"`
// TextStyleSuggestionState: A mask that indicates which of the fields
// in text style have been changed in this suggestion.
TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BulletAlignmentSuggested") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BulletAlignmentSuggested")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NestingLevelSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod NestingLevelSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ObjectReferences: A collection of object IDs.
type ObjectReferences struct {
// ObjectIds: The object IDs.
ObjectIds []string `json:"objectIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectIds") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectIds") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ObjectReferences) MarshalJSON() ([]byte, error) {
type NoMethod ObjectReferences
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OptionalColor: A color that can either be fully opaque or fully
// transparent.
type OptionalColor struct {
// Color: If set, this will be used as an opaque color. If unset, this
// represents a transparent color.
Color *Color `json:"color,omitempty"`
// ForceSendFields is a list of field names (e.g. "Color") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OptionalColor) MarshalJSON() ([]byte, error) {
type NoMethod OptionalColor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PageBreak: A ParagraphElement representing a page break. A page break
// makes the subsequent text start at the top of the next page.
type PageBreak struct {
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A PageBreak may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// PageBreak, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this PageBreak. Similar to text content,
// like text runs and footnote references, the text style of a page
// break can affect content layout as well as the styling of text
// inserted adjacent to it.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "SuggestedDeletionIds") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SuggestedDeletionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *PageBreak) MarshalJSON() ([]byte, error) {
type NoMethod PageBreak
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Paragraph: A StructuralElement representing a paragraph. A paragraph
// is a range of content that is terminated with a newline character.
type Paragraph struct {
// Bullet: The bullet for this paragraph. If not present, the paragraph
// does not belong to a list.
Bullet *Bullet `json:"bullet,omitempty"`
// Elements: The content of the paragraph broken down into its component
// parts.
Elements []*ParagraphElement `json:"elements,omitempty"`
// ParagraphStyle: The style of this paragraph.
ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"`
// PositionedObjectIds: The IDs of the positioned objects tethered to
// this paragraph.
PositionedObjectIds []string `json:"positionedObjectIds,omitempty"`
// SuggestedBulletChanges: The suggested changes to this paragraph's
// bullet.
SuggestedBulletChanges map[string]SuggestedBullet `json:"suggestedBulletChanges,omitempty"`
// SuggestedParagraphStyleChanges: The suggested paragraph style changes
// to this paragraph, keyed by suggestion ID.
SuggestedParagraphStyleChanges map[string]SuggestedParagraphStyle `json:"suggestedParagraphStyleChanges,omitempty"`
// SuggestedPositionedObjectIds: The IDs of the positioned objects that
// are suggested to be attached to this paragraph, keyed by suggestion
// ID.
SuggestedPositionedObjectIds map[string]ObjectReferences `json:"suggestedPositionedObjectIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bullet") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bullet") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Paragraph) MarshalJSON() ([]byte, error) {
type NoMethod Paragraph
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ParagraphBorder: A border around a paragraph.
type ParagraphBorder struct {
// Color: The color of the border.
Color *OptionalColor `json:"color,omitempty"`
// DashStyle: The dash style of the border.
//
// Possible values:
// "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
// "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'solid'. This is the default dash style.
// "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dot'.
// "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dash'.
DashStyle string `json:"dashStyle,omitempty"`
// Padding: The padding of the border.
Padding *Dimension `json:"padding,omitempty"`
// Width: The width of the border.
Width *Dimension `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Color") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ParagraphBorder) MarshalJSON() ([]byte, error) {
type NoMethod ParagraphBorder
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ParagraphElement: A ParagraphElement describes content within a
// Paragraph.
type ParagraphElement struct {
// AutoText: An auto text paragraph element.
AutoText *AutoText `json:"autoText,omitempty"`
// ColumnBreak: A column break paragraph element.
ColumnBreak *ColumnBreak `json:"columnBreak,omitempty"`
// EndIndex: The zero-base end index of this paragraph element,
// exclusive, in UTF-16 code units.
EndIndex int64 `json:"endIndex,omitempty"`
// Equation: An equation paragraph element.
Equation *Equation `json:"equation,omitempty"`
// FootnoteReference: A footnote reference paragraph element.
FootnoteReference *FootnoteReference `json:"footnoteReference,omitempty"`
// HorizontalRule: A horizontal rule paragraph element.
HorizontalRule *HorizontalRule `json:"horizontalRule,omitempty"`
// InlineObjectElement: An inline object paragraph element.
InlineObjectElement *InlineObjectElement `json:"inlineObjectElement,omitempty"`
// PageBreak: A page break paragraph element.
PageBreak *PageBreak `json:"pageBreak,omitempty"`
// Person: A paragraph element that links to a person or email address.
Person *Person `json:"person,omitempty"`
// RichLink: A paragraph element that links to a Google resource (such
// as a file in Drive, a Youtube video, a Calendar event, etc.)
RichLink *RichLink `json:"richLink,omitempty"`
// StartIndex: The zero-based start index of this paragraph element, in
// UTF-16 code units.
StartIndex int64 `json:"startIndex,omitempty"`
// TextRun: A text run paragraph element.
TextRun *TextRun `json:"textRun,omitempty"`
// ForceSendFields is a list of field names (e.g. "AutoText") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AutoText") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ParagraphElement) MarshalJSON() ([]byte, error) {
type NoMethod ParagraphElement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ParagraphStyle: Styles that apply to a whole paragraph. Inherited
// paragraph styles are represented as unset fields in this message. A
// paragraph style's parent depends on where the paragraph style is
// defined: * The ParagraphStyle on a Paragraph inherits from the
// paragraph's corresponding named style type. * The ParagraphStyle on a
// named style inherits from the normal text named style. * The
// ParagraphStyle of the normal text named style inherits from the
// default paragraph style in the Docs editor. * The ParagraphStyle on a
// Paragraph element that is contained in a table may inherit its
// paragraph style from the table style. If the paragraph style does not
// inherit from a parent, unsetting fields will revert the style to a
// value matching the defaults in the Docs editor.
type ParagraphStyle struct {
// Alignment: The text alignment for this paragraph.
//
// Possible values:
// "ALIGNMENT_UNSPECIFIED" - The paragraph alignment is inherited from
// the parent.
// "START" - The paragraph is aligned to the start of the line.
// Left-aligned for LTR text, right-aligned otherwise.
// "CENTER" - The paragraph is centered.
// "END" - The paragraph is aligned to the end of the line.
// Right-aligned for LTR text, left-aligned otherwise.
// "JUSTIFIED" - The paragraph is justified.
Alignment string `json:"alignment,omitempty"`
// AvoidWidowAndOrphan: Whether to avoid widows and orphans for the
// paragraph. If unset, the value is inherited from the parent.
AvoidWidowAndOrphan bool `json:"avoidWidowAndOrphan,omitempty"`
// BorderBetween: The border between this paragraph and the next and
// previous paragraphs. If unset, the value is inherited from the
// parent. The between border is rendered when the adjacent paragraph
// has the same border and indent properties. Paragraph borders cannot
// be partially updated. When making changes to a paragraph border the
// new border must be specified in its entirety.
BorderBetween *ParagraphBorder `json:"borderBetween,omitempty"`
// BorderBottom: The border at the bottom of this paragraph. If unset,
// the value is inherited from the parent. The bottom border is rendered
// when the paragraph below has different border and indent properties.
// Paragraph borders cannot be partially updated. When making changes to
// a paragraph border the new border must be specified in its entirety.
BorderBottom *ParagraphBorder `json:"borderBottom,omitempty"`
// BorderLeft: The border to the left of this paragraph. If unset, the
// value is inherited from the parent. Paragraph borders cannot be
// partially updated. When making changes to a paragraph border the new
// border must be specified in its entirety.
BorderLeft *ParagraphBorder `json:"borderLeft,omitempty"`
// BorderRight: The border to the right of this paragraph. If unset, the
// value is inherited from the parent. Paragraph borders cannot be
// partially updated. When making changes to a paragraph border the new
// border must be specified in its entirety.
BorderRight *ParagraphBorder `json:"borderRight,omitempty"`
// BorderTop: The border at the top of this paragraph. If unset, the
// value is inherited from the parent. The top border is rendered when
// the paragraph above has different border and indent properties.
// Paragraph borders cannot be partially updated. When making changes to
// a paragraph border the new border must be specified in its entirety.
BorderTop *ParagraphBorder `json:"borderTop,omitempty"`
// Direction: The text direction of this paragraph. If unset, the value
// defaults to LEFT_TO_RIGHT since paragraph direction is not inherited.
//
// Possible values:
// "CONTENT_DIRECTION_UNSPECIFIED" - The content direction is
// unspecified.
// "LEFT_TO_RIGHT" - The content goes from left to right.
// "RIGHT_TO_LEFT" - The content goes from right to left.
Direction string `json:"direction,omitempty"`
// HeadingId: The heading ID of the paragraph. If empty, then this
// paragraph is not a heading. This property is read-only.
HeadingId string `json:"headingId,omitempty"`
// IndentEnd: The amount of indentation for the paragraph on the side
// that corresponds to the end of the text, based on the current
// paragraph direction. If unset, the value is inherited from the
// parent.
IndentEnd *Dimension `json:"indentEnd,omitempty"`
// IndentFirstLine: The amount of indentation for the first line of the
// paragraph. If unset, the value is inherited from the parent.
IndentFirstLine *Dimension `json:"indentFirstLine,omitempty"`
// IndentStart: The amount of indentation for the paragraph on the side
// that corresponds to the start of the text, based on the current
// paragraph direction. If unset, the value is inherited from the
// parent.
IndentStart *Dimension `json:"indentStart,omitempty"`
// KeepLinesTogether: Whether all lines of the paragraph should be laid
// out on the same page or column if possible. If unset, the value is
// inherited from the parent.
KeepLinesTogether bool `json:"keepLinesTogether,omitempty"`
// KeepWithNext: Whether at least a part of this paragraph should be
// laid out on the same page or column as the next paragraph if
// possible. If unset, the value is inherited from the parent.
KeepWithNext bool `json:"keepWithNext,omitempty"`
// LineSpacing: The amount of space between lines, as a percentage of
// normal, where normal is represented as 100.0. If unset, the value is
// inherited from the parent.
LineSpacing float64 `json:"lineSpacing,omitempty"`
// NamedStyleType: The named style type of the paragraph. Since updating
// the named style type affects other properties within ParagraphStyle,
// the named style type is applied before the other properties are
// updated.
//
// Possible values:
// "NAMED_STYLE_TYPE_UNSPECIFIED" - The type of named style is
// unspecified.
// "NORMAL_TEXT" - Normal text.
// "TITLE" - Title.
// "SUBTITLE" - Subtitle.
// "HEADING_1" - Heading 1.
// "HEADING_2" - Heading 2.
// "HEADING_3" - Heading 3.
// "HEADING_4" - Heading 4.
// "HEADING_5" - Heading 5.
// "HEADING_6" - Heading 6.
NamedStyleType string `json:"namedStyleType,omitempty"`
// Shading: The shading of the paragraph. If unset, the value is
// inherited from the parent.
Shading *Shading `json:"shading,omitempty"`
// SpaceAbove: The amount of extra space above the paragraph. If unset,
// the value is inherited from the parent.
SpaceAbove *Dimension `json:"spaceAbove,omitempty"`
// SpaceBelow: The amount of extra space below the paragraph. If unset,
// the value is inherited from the parent.
SpaceBelow *Dimension `json:"spaceBelow,omitempty"`
// SpacingMode: The spacing mode for the paragraph.
//
// Possible values:
// "SPACING_MODE_UNSPECIFIED" - The spacing mode is inherited from the
// parent.
// "NEVER_COLLAPSE" - Paragraph spacing is always rendered.
// "COLLAPSE_LISTS" - Paragraph spacing is skipped between list
// elements.
SpacingMode string `json:"spacingMode,omitempty"`
// TabStops: A list of the tab stops for this paragraph. The list of tab
// stops is not inherited. This property is read-only.
TabStops []*TabStop `json:"tabStops,omitempty"`
// ForceSendFields is a list of field names (e.g. "Alignment") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Alignment") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ParagraphStyle) MarshalJSON() ([]byte, error) {
type NoMethod ParagraphStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *ParagraphStyle) UnmarshalJSON(data []byte) error {
type NoMethod ParagraphStyle
var s1 struct {
LineSpacing gensupport.JSONFloat64 `json:"lineSpacing"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.LineSpacing = float64(s1.LineSpacing)
return nil
}
// ParagraphStyleSuggestionState: A mask that indicates which of the
// fields on the base ParagraphStyle have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type ParagraphStyleSuggestionState struct {
// AlignmentSuggested: Indicates if there was a suggested change to
// alignment.
AlignmentSuggested bool `json:"alignmentSuggested,omitempty"`
// AvoidWidowAndOrphanSuggested: Indicates if there was a suggested
// change to avoid_widow_and_orphan.
AvoidWidowAndOrphanSuggested bool `json:"avoidWidowAndOrphanSuggested,omitempty"`
// BorderBetweenSuggested: Indicates if there was a suggested change to
// border_between.
BorderBetweenSuggested bool `json:"borderBetweenSuggested,omitempty"`
// BorderBottomSuggested: Indicates if there was a suggested change to
// border_bottom.
BorderBottomSuggested bool `json:"borderBottomSuggested,omitempty"`
// BorderLeftSuggested: Indicates if there was a suggested change to
// border_left.
BorderLeftSuggested bool `json:"borderLeftSuggested,omitempty"`
// BorderRightSuggested: Indicates if there was a suggested change to
// border_right.
BorderRightSuggested bool `json:"borderRightSuggested,omitempty"`
// BorderTopSuggested: Indicates if there was a suggested change to
// border_top.
BorderTopSuggested bool `json:"borderTopSuggested,omitempty"`
// DirectionSuggested: Indicates if there was a suggested change to
// direction.
DirectionSuggested bool `json:"directionSuggested,omitempty"`
// HeadingIdSuggested: Indicates if there was a suggested change to
// heading_id.
HeadingIdSuggested bool `json:"headingIdSuggested,omitempty"`
// IndentEndSuggested: Indicates if there was a suggested change to
// indent_end.
IndentEndSuggested bool `json:"indentEndSuggested,omitempty"`
// IndentFirstLineSuggested: Indicates if there was a suggested change
// to indent_first_line.
IndentFirstLineSuggested bool `json:"indentFirstLineSuggested,omitempty"`
// IndentStartSuggested: Indicates if there was a suggested change to
// indent_start.
IndentStartSuggested bool `json:"indentStartSuggested,omitempty"`
// KeepLinesTogetherSuggested: Indicates if there was a suggested change
// to keep_lines_together.
KeepLinesTogetherSuggested bool `json:"keepLinesTogetherSuggested,omitempty"`
// KeepWithNextSuggested: Indicates if there was a suggested change to
// keep_with_next.
KeepWithNextSuggested bool `json:"keepWithNextSuggested,omitempty"`
// LineSpacingSuggested: Indicates if there was a suggested change to
// line_spacing.
LineSpacingSuggested bool `json:"lineSpacingSuggested,omitempty"`
// NamedStyleTypeSuggested: Indicates if there was a suggested change to
// named_style_type.
NamedStyleTypeSuggested bool `json:"namedStyleTypeSuggested,omitempty"`
// ShadingSuggestionState: A mask that indicates which of the fields in
// shading have been changed in this suggestion.
ShadingSuggestionState *ShadingSuggestionState `json:"shadingSuggestionState,omitempty"`
// SpaceAboveSuggested: Indicates if there was a suggested change to
// space_above.
SpaceAboveSuggested bool `json:"spaceAboveSuggested,omitempty"`
// SpaceBelowSuggested: Indicates if there was a suggested change to
// space_below.
SpaceBelowSuggested bool `json:"spaceBelowSuggested,omitempty"`
// SpacingModeSuggested: Indicates if there was a suggested change to
// spacing_mode.
SpacingModeSuggested bool `json:"spacingModeSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "AlignmentSuggested")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AlignmentSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ParagraphStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod ParagraphStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Person: A person or email address mentioned in a document. These
// mentions behave as a single, immutable element containing the
// person's name or email address.
type Person struct {
// PersonId: Output only. The unique ID of this link.
PersonId string `json:"personId,omitempty"`
// PersonProperties: Output only. The properties of this Person. This
// field is always present.
PersonProperties *PersonProperties `json:"personProperties,omitempty"`
// SuggestedDeletionIds: IDs for suggestions that remove this person
// link from the document. A Person might have multiple deletion IDs if,
// for example, multiple users suggest to delete it. If empty, then this
// person link isn't suggested for deletion.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: IDs for suggestions that insert this person
// link into the document. A Person might have multiple insertion IDs if
// it is a nested suggested change (a suggestion within a suggestion
// made by a different user, for example). If empty, then this person
// link isn't a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// Person, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this Person.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "PersonId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PersonId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Person) MarshalJSON() ([]byte, error) {
type NoMethod Person
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PersonProperties: Properties specific to a linked Person.
type PersonProperties struct {
// Email: Output only. The email address linked to this Person. This
// field is always present.
Email string `json:"email,omitempty"`
// Name: Output only. The name of the person if it is displayed in the
// link text instead of the person's email address.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Email") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PersonProperties) MarshalJSON() ([]byte, error) {
type NoMethod PersonProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PositionedObject: An object that is tethered to a Paragraph and
// positioned relative to the beginning of the paragraph. A
// PositionedObject contains an EmbeddedObject such as an image.
type PositionedObject struct {
// ObjectId: The ID of this positioned object.
ObjectId string `json:"objectId,omitempty"`
// PositionedObjectProperties: The properties of this positioned object.
PositionedObjectProperties *PositionedObjectProperties `json:"positionedObjectProperties,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionId: The suggested insertion ID. If empty, then this
// is not a suggested insertion.
SuggestedInsertionId string `json:"suggestedInsertionId,omitempty"`
// SuggestedPositionedObjectPropertiesChanges: The suggested changes to
// the positioned object properties, keyed by suggestion ID.
SuggestedPositionedObjectPropertiesChanges map[string]SuggestedPositionedObjectProperties `json:"suggestedPositionedObjectPropertiesChanges,omitempty"`
// ForceSendFields is a list of field names (e.g. "ObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ObjectId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PositionedObject) MarshalJSON() ([]byte, error) {
type NoMethod PositionedObject
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PositionedObjectPositioning: The positioning of a PositionedObject.
// The positioned object is positioned relative to the beginning of the
// Paragraph it is tethered to.
type PositionedObjectPositioning struct {
// Layout: The layout of this positioned object.
//
// Possible values:
// "POSITIONED_OBJECT_LAYOUT_UNSPECIFIED" - The layout is unspecified.
// "WRAP_TEXT" - The text wraps around the positioned object.
// "BREAK_LEFT" - Breaks text such that the positioned object is on
// the left and text is on the right.
// "BREAK_RIGHT" - Breaks text such that the positioned object is on
// the right and text is on the left.
// "BREAK_LEFT_RIGHT" - Breaks text such that there is no text on the
// left or right of the positioned object.
// "IN_FRONT_OF_TEXT" - The positioned object is in front of the text.
// "BEHIND_TEXT" - The positioned object is behind the text.
Layout string `json:"layout,omitempty"`
// LeftOffset: The offset of the left edge of the positioned object
// relative to the beginning of the Paragraph it is tethered to. The
// exact positioning of the object can depend on other content in the
// document and the document's styling.
LeftOffset *Dimension `json:"leftOffset,omitempty"`
// TopOffset: The offset of the top edge of the positioned object
// relative to the beginning of the Paragraph it is tethered to. The
// exact positioning of the object can depend on other content in the
// document and the document's styling.
TopOffset *Dimension `json:"topOffset,omitempty"`
// ForceSendFields is a list of field names (e.g. "Layout") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Layout") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PositionedObjectPositioning) MarshalJSON() ([]byte, error) {
type NoMethod PositionedObjectPositioning
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PositionedObjectPositioningSuggestionState: A mask that indicates
// which of the fields on the base PositionedObjectPositioning have been
// changed in this suggestion. For any field set to true, there is a new
// suggested value.
type PositionedObjectPositioningSuggestionState struct {
// LayoutSuggested: Indicates if there was a suggested change to layout.
LayoutSuggested bool `json:"layoutSuggested,omitempty"`
// LeftOffsetSuggested: Indicates if there was a suggested change to
// left_offset.
LeftOffsetSuggested bool `json:"leftOffsetSuggested,omitempty"`
// TopOffsetSuggested: Indicates if there was a suggested change to
// top_offset.
TopOffsetSuggested bool `json:"topOffsetSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "LayoutSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LayoutSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *PositionedObjectPositioningSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod PositionedObjectPositioningSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PositionedObjectProperties: Properties of a PositionedObject.
type PositionedObjectProperties struct {
// EmbeddedObject: The embedded object of this positioned object.
EmbeddedObject *EmbeddedObject `json:"embeddedObject,omitempty"`
// Positioning: The positioning of this positioned object relative to
// the newline of the Paragraph that references this positioned object.
Positioning *PositionedObjectPositioning `json:"positioning,omitempty"`
// ForceSendFields is a list of field names (e.g. "EmbeddedObject") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EmbeddedObject") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *PositionedObjectProperties) MarshalJSON() ([]byte, error) {
type NoMethod PositionedObjectProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PositionedObjectPropertiesSuggestionState: A mask that indicates
// which of the fields on the base PositionedObjectProperties have been
// changed in this suggestion. For any field set to true, there is a new
// suggested value.
type PositionedObjectPropertiesSuggestionState struct {
// EmbeddedObjectSuggestionState: A mask that indicates which of the
// fields in embedded_object have been changed in this suggestion.
EmbeddedObjectSuggestionState *EmbeddedObjectSuggestionState `json:"embeddedObjectSuggestionState,omitempty"`
// PositioningSuggestionState: A mask that indicates which of the fields
// in positioning have been changed in this suggestion.
PositioningSuggestionState *PositionedObjectPositioningSuggestionState `json:"positioningSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EmbeddedObjectSuggestionState") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "EmbeddedObjectSuggestionState") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PositionedObjectPropertiesSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod PositionedObjectPropertiesSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Range: Specifies a contiguous range of text.
type Range struct {
// EndIndex: The zero-based end index of this range, exclusive, in
// UTF-16 code units. In all current uses, an end index must be
// provided. This field is an Int32Value in order to accommodate future
// use cases with open-ended ranges.
EndIndex int64 `json:"endIndex,omitempty"`
// SegmentId: The ID of the header, footer or footnote that this range
// is contained in. An empty segment ID signifies the document's body.
SegmentId string `json:"segmentId,omitempty"`
// StartIndex: The zero-based start index of this range, in UTF-16 code
// units. In all current uses, a start index must be provided. This
// field is an Int32Value in order to accommodate future use cases with
// open-ended ranges.
StartIndex int64 `json:"startIndex,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndIndex") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndIndex") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Range) MarshalJSON() ([]byte, error) {
type NoMethod Range
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReplaceAllTextRequest: Replaces all instances of text matching a
// criteria with replace text.
type ReplaceAllTextRequest struct {
// ContainsText: Finds text in the document matching this substring.
ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
// ReplaceText: The text that will replace the matched text.
ReplaceText string `json:"replaceText,omitempty"`
// ForceSendFields is a list of field names (e.g. "ContainsText") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ContainsText") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReplaceAllTextRequest) MarshalJSON() ([]byte, error) {
type NoMethod ReplaceAllTextRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReplaceAllTextResponse: The result of replacing text.
type ReplaceAllTextResponse struct {
// OccurrencesChanged: The number of occurrences changed by replacing
// all text.
OccurrencesChanged int64 `json:"occurrencesChanged,omitempty"`
// ForceSendFields is a list of field names (e.g. "OccurrencesChanged")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "OccurrencesChanged") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ReplaceAllTextResponse) MarshalJSON() ([]byte, error) {
type NoMethod ReplaceAllTextResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReplaceImageRequest: Replaces an existing image with a new image.
// Replacing an image removes some image effects from the existing image
// in order to mirror the behavior of the Docs editor.
type ReplaceImageRequest struct {
// ImageObjectId: The ID of the existing image that will be replaced.
ImageObjectId string `json:"imageObjectId,omitempty"`
// ImageReplaceMethod: The replacement method.
//
// Possible values:
// "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
// method. This value must not be used.
// "CENTER_CROP" - Scales and centers the image to fill the bounds of
// the original image. The image may be cropped in order to fill the
// original image's bounds. The rendered size of the image will be the
// same as that of the original image.
ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
// Uri: The URI of the new image. The image is fetched once at insertion
// time and a copy is stored for display inside the document. Images
// must be less than 50MB in size, cannot exceed 25 megapixels, and must
// be in one of PNG, JPEG, or GIF format. The provided URI can be at
// most 2 kB in length. The URI itself is saved with the image, and
// exposed via the ImageProperties.source_uri field.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "ImageObjectId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ImageObjectId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReplaceImageRequest) MarshalJSON() ([]byte, error) {
type NoMethod ReplaceImageRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ReplaceNamedRangeContentRequest: Replaces the contents of the
// specified NamedRange or NamedRanges with the given replacement
// content. Note that an individual NamedRange may consist of multiple
// discontinuous ranges. In this case, only the content in the first
// range will be replaced. The other ranges and their content will be
// deleted. In cases where replacing or deleting any ranges would result
// in an invalid document structure, a 400 bad request error is
// returned.
type ReplaceNamedRangeContentRequest struct {
// NamedRangeId: The ID of the named range whose content will be
// replaced. If there is no named range with the given ID a 400 bad
// request error is returned.
NamedRangeId string `json:"namedRangeId,omitempty"`
// NamedRangeName: The name of the NamedRanges whose content will be
// replaced. If there are multiple named ranges with the given name,
// then the content of each one will be replaced. If there are no named
// ranges with the given name, then the request will be a no-op.
NamedRangeName string `json:"namedRangeName,omitempty"`
// Text: Replaces the content of the specified named range(s) with the
// given text.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "NamedRangeId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NamedRangeId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReplaceNamedRangeContentRequest) MarshalJSON() ([]byte, error) {
type NoMethod ReplaceNamedRangeContentRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Request: A single update to apply to a document.
type Request struct {
// CreateFooter: Creates a footer.
CreateFooter *CreateFooterRequest `json:"createFooter,omitempty"`
// CreateFootnote: Creates a footnote.
CreateFootnote *CreateFootnoteRequest `json:"createFootnote,omitempty"`
// CreateHeader: Creates a header.
CreateHeader *CreateHeaderRequest `json:"createHeader,omitempty"`
// CreateNamedRange: Creates a named range.
CreateNamedRange *CreateNamedRangeRequest `json:"createNamedRange,omitempty"`
// CreateParagraphBullets: Creates bullets for paragraphs.
CreateParagraphBullets *CreateParagraphBulletsRequest `json:"createParagraphBullets,omitempty"`
// DeleteContentRange: Deletes content from the document.
DeleteContentRange *DeleteContentRangeRequest `json:"deleteContentRange,omitempty"`
// DeleteFooter: Deletes a footer from the document.
DeleteFooter *DeleteFooterRequest `json:"deleteFooter,omitempty"`
// DeleteHeader: Deletes a header from the document.
DeleteHeader *DeleteHeaderRequest `json:"deleteHeader,omitempty"`
// DeleteNamedRange: Deletes a named range.
DeleteNamedRange *DeleteNamedRangeRequest `json:"deleteNamedRange,omitempty"`
// DeleteParagraphBullets: Deletes bullets from paragraphs.
DeleteParagraphBullets *DeleteParagraphBulletsRequest `json:"deleteParagraphBullets,omitempty"`
// DeletePositionedObject: Deletes a positioned object from the
// document.
DeletePositionedObject *DeletePositionedObjectRequest `json:"deletePositionedObject,omitempty"`
// DeleteTableColumn: Deletes a column from a table.
DeleteTableColumn *DeleteTableColumnRequest `json:"deleteTableColumn,omitempty"`
// DeleteTableRow: Deletes a row from a table.
DeleteTableRow *DeleteTableRowRequest `json:"deleteTableRow,omitempty"`
// InsertInlineImage: Inserts an inline image at the specified location.
InsertInlineImage *InsertInlineImageRequest `json:"insertInlineImage,omitempty"`
// InsertPageBreak: Inserts a page break at the specified location.
InsertPageBreak *InsertPageBreakRequest `json:"insertPageBreak,omitempty"`
// InsertSectionBreak: Inserts a section break at the specified
// location.
InsertSectionBreak *InsertSectionBreakRequest `json:"insertSectionBreak,omitempty"`
// InsertTable: Inserts a table at the specified location.
InsertTable *InsertTableRequest `json:"insertTable,omitempty"`
// InsertTableColumn: Inserts an empty column into a table.
InsertTableColumn *InsertTableColumnRequest `json:"insertTableColumn,omitempty"`
// InsertTableRow: Inserts an empty row into a table.
InsertTableRow *InsertTableRowRequest `json:"insertTableRow,omitempty"`
// InsertText: Inserts text at the specified location.
InsertText *InsertTextRequest `json:"insertText,omitempty"`
// MergeTableCells: Merges cells in a table.
MergeTableCells *MergeTableCellsRequest `json:"mergeTableCells,omitempty"`
// ReplaceAllText: Replaces all instances of the specified text.
ReplaceAllText *ReplaceAllTextRequest `json:"replaceAllText,omitempty"`
// ReplaceImage: Replaces an image in the document.
ReplaceImage *ReplaceImageRequest `json:"replaceImage,omitempty"`
// ReplaceNamedRangeContent: Replaces the content in a named range.
ReplaceNamedRangeContent *ReplaceNamedRangeContentRequest `json:"replaceNamedRangeContent,omitempty"`
// UnmergeTableCells: Unmerges cells in a table.
UnmergeTableCells *UnmergeTableCellsRequest `json:"unmergeTableCells,omitempty"`
// UpdateDocumentStyle: Updates the style of the document.
UpdateDocumentStyle *UpdateDocumentStyleRequest `json:"updateDocumentStyle,omitempty"`
// UpdateParagraphStyle: Updates the paragraph style at the specified
// range.
UpdateParagraphStyle *UpdateParagraphStyleRequest `json:"updateParagraphStyle,omitempty"`
// UpdateSectionStyle: Updates the section style of the specified range.
UpdateSectionStyle *UpdateSectionStyleRequest `json:"updateSectionStyle,omitempty"`
// UpdateTableCellStyle: Updates the style of table cells.
UpdateTableCellStyle *UpdateTableCellStyleRequest `json:"updateTableCellStyle,omitempty"`
// UpdateTableColumnProperties: Updates the properties of columns in a
// table.
UpdateTableColumnProperties *UpdateTableColumnPropertiesRequest `json:"updateTableColumnProperties,omitempty"`
// UpdateTableRowStyle: Updates the row style in a table.
UpdateTableRowStyle *UpdateTableRowStyleRequest `json:"updateTableRowStyle,omitempty"`
// UpdateTextStyle: Updates the text style at the specified range.
UpdateTextStyle *UpdateTextStyleRequest `json:"updateTextStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateFooter") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateFooter") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Request) MarshalJSON() ([]byte, error) {
type NoMethod Request
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Response: A single response from an update.
type Response struct {
// CreateFooter: The result of creating a footer.
CreateFooter *CreateFooterResponse `json:"createFooter,omitempty"`
// CreateFootnote: The result of creating a footnote.
CreateFootnote *CreateFootnoteResponse `json:"createFootnote,omitempty"`
// CreateHeader: The result of creating a header.
CreateHeader *CreateHeaderResponse `json:"createHeader,omitempty"`
// CreateNamedRange: The result of creating a named range.
CreateNamedRange *CreateNamedRangeResponse `json:"createNamedRange,omitempty"`
// InsertInlineImage: The result of inserting an inline image.
InsertInlineImage *InsertInlineImageResponse `json:"insertInlineImage,omitempty"`
// InsertInlineSheetsChart: The result of inserting an inline Google
// Sheets chart.
InsertInlineSheetsChart *InsertInlineSheetsChartResponse `json:"insertInlineSheetsChart,omitempty"`
// ReplaceAllText: The result of replacing text.
ReplaceAllText *ReplaceAllTextResponse `json:"replaceAllText,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateFooter") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateFooter") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Response) MarshalJSON() ([]byte, error) {
type NoMethod Response
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RgbColor: An RGB color.
type RgbColor struct {
// Blue: The blue component of the color, from 0.0 to 1.0.
Blue float64 `json:"blue,omitempty"`
// Green: The green component of the color, from 0.0 to 1.0.
Green float64 `json:"green,omitempty"`
// Red: The red component of the color, from 0.0 to 1.0.
Red float64 `json:"red,omitempty"`
// ForceSendFields is a list of field names (e.g. "Blue") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Blue") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RgbColor) MarshalJSON() ([]byte, error) {
type NoMethod RgbColor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *RgbColor) UnmarshalJSON(data []byte) error {
type NoMethod RgbColor
var s1 struct {
Blue gensupport.JSONFloat64 `json:"blue"`
Green gensupport.JSONFloat64 `json:"green"`
Red gensupport.JSONFloat64 `json:"red"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Blue = float64(s1.Blue)
s.Green = float64(s1.Green)
s.Red = float64(s1.Red)
return nil
}
// RichLink: A link to a Google resource (e.g., a file in Drive, a
// YouTube video, a Calendar event, etc.).
type RichLink struct {
// RichLinkId: Output only. The ID of this link.
RichLinkId string `json:"richLinkId,omitempty"`
// RichLinkProperties: Output only. The properties of this RichLink.
// This field is always present.
RichLinkProperties *RichLinkProperties `json:"richLinkProperties,omitempty"`
// SuggestedDeletionIds: IDs for suggestions that remove this link from
// the document. A RichLink might have multiple deletion IDs if, for
// example, multiple users suggest to delete it. If empty, then this
// person link isn't suggested for deletion.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: IDs for suggestions that insert this link into
// the document. A RichLink might have multiple insertion IDs if it is a
// nested suggested change (a suggestion within a suggestion made by a
// different user, for example). If empty, then this person link isn't a
// suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// RichLink, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this RichLink.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "RichLinkId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RichLinkId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RichLink) MarshalJSON() ([]byte, error) {
type NoMethod RichLink
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RichLinkProperties: Properties specific to a RichLink.
type RichLinkProperties struct {
// MimeType: Output only. The MIME type
// (https://developers.google.com/drive/api/v3/mime-types) of the
// RichLink, if there is one (i.e., when it is a file in Drive).
MimeType string `json:"mimeType,omitempty"`
// Title: Output only. The title of the RichLink as displayed in the
// link. This title matches the title of the linked resource at the time
// of the insertion or last update of the link. This field is always
// present.
Title string `json:"title,omitempty"`
// Uri: Output only. The URI to the RichLink. This is always present.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "MimeType") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MimeType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RichLinkProperties) MarshalJSON() ([]byte, error) {
type NoMethod RichLinkProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SectionBreak: A StructuralElement representing a section break. A
// section is a range of content which has the same SectionStyle. A
// section break represents the start of a new section, and the section
// style applies to the section after the section break. The document
// body always begins with a section break.
type SectionBreak struct {
// SectionStyle: The style of the section after this section break.
SectionStyle *SectionStyle `json:"sectionStyle,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A SectionBreak
// may have multiple insertion IDs if it is a nested suggested change.
// If empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "SectionStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SectionStyle") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SectionBreak) MarshalJSON() ([]byte, error) {
type NoMethod SectionBreak
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SectionColumnProperties: Properties that apply to a section's column.
type SectionColumnProperties struct {
// PaddingEnd: The padding at the end of the column.
PaddingEnd *Dimension `json:"paddingEnd,omitempty"`
// Width: Output only. The width of the column.
Width *Dimension `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "PaddingEnd") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PaddingEnd") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SectionColumnProperties) MarshalJSON() ([]byte, error) {
type NoMethod SectionColumnProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SectionStyle: The styling that applies to a section.
type SectionStyle struct {
// ColumnProperties: The section's columns properties. If empty, the
// section contains one column with the default properties in the Docs
// editor. A section can be updated to have no more than three columns.
// When updating this property, setting a concrete value is required.
// Unsetting this property will result in a 400 bad request error.
ColumnProperties []*SectionColumnProperties `json:"columnProperties,omitempty"`
// ColumnSeparatorStyle: The style of column separators. This style can
// be set even when there is one column in the section. When updating
// this property, setting a concrete value is required. Unsetting this
// property results in a 400 bad request error.
//
// Possible values:
// "COLUMN_SEPARATOR_STYLE_UNSPECIFIED" - An unspecified column
// separator style.
// "NONE" - No column separator lines between columns.
// "BETWEEN_EACH_COLUMN" - Renders a column separator line between
// each column.
ColumnSeparatorStyle string `json:"columnSeparatorStyle,omitempty"`
// ContentDirection: The content direction of this section. If unset,
// the value defaults to LEFT_TO_RIGHT. When updating this property,
// setting a concrete value is required. Unsetting this property results
// in a 400 bad request error.
//
// Possible values:
// "CONTENT_DIRECTION_UNSPECIFIED" - The content direction is
// unspecified.
// "LEFT_TO_RIGHT" - The content goes from left to right.
// "RIGHT_TO_LEFT" - The content goes from right to left.
ContentDirection string `json:"contentDirection,omitempty"`
// DefaultFooterId: The ID of the default footer. If unset, the value
// inherits from the previous SectionBreak's SectionStyle. If the value
// is unset in the first SectionBreak, it inherits from DocumentStyle's
// default_footer_id. This property is read-only.
DefaultFooterId string `json:"defaultFooterId,omitempty"`
// DefaultHeaderId: The ID of the default header. If unset, the value
// inherits from the previous SectionBreak's SectionStyle. If the value
// is unset in the first SectionBreak, it inherits from DocumentStyle's
// default_header_id. This property is read-only.
DefaultHeaderId string `json:"defaultHeaderId,omitempty"`
// EvenPageFooterId: The ID of the footer used only for even pages. If
// the value of DocumentStyle's use_even_page_header_footer is true,
// this value is used for the footers on even pages in the section. If
// it is false, the footers on even pages uses the default_footer_id. If
// unset, the value inherits from the previous SectionBreak's
// SectionStyle. If the value is unset in the first SectionBreak, it
// inherits from DocumentStyle's even_page_footer_id. This property is
// read-only.
EvenPageFooterId string `json:"evenPageFooterId,omitempty"`
// EvenPageHeaderId: The ID of the header used only for even pages. If
// the value of DocumentStyle's use_even_page_header_footer is true,
// this value is used for the headers on even pages in the section. If
// it is false, the headers on even pages uses the default_header_id. If
// unset, the value inherits from the previous SectionBreak's
// SectionStyle. If the value is unset in the first SectionBreak, it
// inherits from DocumentStyle's even_page_header_id. This property is
// read-only.
EvenPageHeaderId string `json:"evenPageHeaderId,omitempty"`
// FirstPageFooterId: The ID of the footer used only for the first page
// of the section. If use_first_page_header_footer is true, this value
// is used for the footer on the first page of the section. If it is
// false, the footer on the first page of the section uses the
// default_footer_id. If unset, the value inherits from the previous
// SectionBreak's SectionStyle. If the value is unset in the first
// SectionBreak, it inherits from DocumentStyle's first_page_footer_id.
// This property is read-only.
FirstPageFooterId string `json:"firstPageFooterId,omitempty"`
// FirstPageHeaderId: The ID of the header used only for the first page
// of the section. If use_first_page_header_footer is true, this value
// is used for the header on the first page of the section. If it is
// false, the header on the first page of the section uses the
// default_header_id. If unset, the value inherits from the previous
// SectionBreak's SectionStyle. If the value is unset in the first
// SectionBreak, it inherits from DocumentStyle's first_page_header_id.
// This property is read-only.
FirstPageHeaderId string `json:"firstPageHeaderId,omitempty"`
// MarginBottom: The bottom page margin of the section. If unset, uses
// margin_bottom from DocumentStyle. When updating this property,
// setting a concrete value is required. Unsetting this property results
// in a 400 bad request error.
MarginBottom *Dimension `json:"marginBottom,omitempty"`
// MarginFooter: The footer margin of the section. If unset, uses
// margin_footer from DocumentStyle. If updated,
// use_custom_header_footer_margins is set to true on DocumentStyle. The
// value of use_custom_header_footer_margins on DocumentStyle indicates
// if a footer margin is being respected for this section When updating
// this property, setting a concrete value is required. Unsetting this
// property results in a 400 bad request error.
MarginFooter *Dimension `json:"marginFooter,omitempty"`
// MarginHeader: The header margin of the section. If unset, uses
// margin_header from DocumentStyle. If updated,
// use_custom_header_footer_margins is set to true on DocumentStyle. The
// value of use_custom_header_footer_margins on DocumentStyle indicates
// if a header margin is being respected for this section. When updating
// this property, setting a concrete value is required. Unsetting this
// property results in a 400 bad request error.
MarginHeader *Dimension `json:"marginHeader,omitempty"`
// MarginLeft: The left page margin of the section. If unset, uses
// margin_left from DocumentStyle. Updating left margin causes columns
// in this section to resize. Since the margin affects column width, it
// is applied before column properties. When updating this property,
// setting a concrete value is required. Unsetting this property results
// in a 400 bad request error.
MarginLeft *Dimension `json:"marginLeft,omitempty"`
// MarginRight: The right page margin of the section. If unset, uses
// margin_right from DocumentStyle. Updating right margin causes columns
// in this section to resize. Since the margin affects column width, it
// is applied before column properties. When updating this property,
// setting a concrete value is required. Unsetting this property results
// in a 400 bad request error.
MarginRight *Dimension `json:"marginRight,omitempty"`
// MarginTop: The top page margin of the section. If unset, uses
// margin_top from DocumentStyle. When updating this property, setting a
// concrete value is required. Unsetting this property results in a 400
// bad request error.
MarginTop *Dimension `json:"marginTop,omitempty"`
// PageNumberStart: The page number from which to start counting the
// number of pages for this section. If unset, page numbering continues
// from the previous section. If the value is unset in the first
// SectionBreak, refer to DocumentStyle's page_number_start. When
// updating this property, setting a concrete value is required.
// Unsetting this property results in a 400 bad request error.
PageNumberStart int64 `json:"pageNumberStart,omitempty"`
// SectionType: Output only. The type of section.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - The section type is unspecified.
// "CONTINUOUS" - The section starts immediately after the last
// paragraph of the previous section.
// "NEXT_PAGE" - The section starts on the next page.
SectionType string `json:"sectionType,omitempty"`
// UseFirstPageHeaderFooter: Indicates whether to use the first page
// header / footer IDs for the first page of the section. If unset, it
// inherits from DocumentStyle's use_first_page_header_footer for the
// first section. If the value is unset for subsequent sectors, it
// should be interpreted as false. When updating this property, setting
// a concrete value is required. Unsetting this property results in a
// 400 bad request error.
UseFirstPageHeaderFooter bool `json:"useFirstPageHeaderFooter,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColumnProperties") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColumnProperties") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SectionStyle) MarshalJSON() ([]byte, error) {
type NoMethod SectionStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Shading: The shading of a paragraph.
type Shading struct {
// BackgroundColor: The background color of this paragraph shading.
BackgroundColor *OptionalColor `json:"backgroundColor,omitempty"`
// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColor") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Shading) MarshalJSON() ([]byte, error) {
type NoMethod Shading
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ShadingSuggestionState: A mask that indicates which of the fields on
// the base Shading have been changed in this suggested change. For any
// field set to true, there is a new suggested value.
type ShadingSuggestionState struct {
// BackgroundColorSuggested: Indicates if there was a suggested change
// to the Shading.
BackgroundColorSuggested bool `json:"backgroundColorSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BackgroundColorSuggested") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColorSuggested")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ShadingSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod ShadingSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SheetsChartReference: A reference to a linked chart embedded from
// Google Sheets.
type SheetsChartReference struct {
// ChartId: The ID of the specific chart in the Google Sheets
// spreadsheet that is embedded.
ChartId int64 `json:"chartId,omitempty"`
// SpreadsheetId: The ID of the Google Sheets spreadsheet that contains
// the source chart.
SpreadsheetId string `json:"spreadsheetId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChartId") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChartId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SheetsChartReference) MarshalJSON() ([]byte, error) {
type NoMethod SheetsChartReference
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SheetsChartReferenceSuggestionState: A mask that indicates which of
// the fields on the base SheetsChartReference have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type SheetsChartReferenceSuggestionState struct {
// ChartIdSuggested: Indicates if there was a suggested change to
// chart_id.
ChartIdSuggested bool `json:"chartIdSuggested,omitempty"`
// SpreadsheetIdSuggested: Indicates if there was a suggested change to
// spreadsheet_id.
SpreadsheetIdSuggested bool `json:"spreadsheetIdSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChartIdSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChartIdSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SheetsChartReferenceSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod SheetsChartReferenceSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Size: A width and height.
type Size struct {
// Height: The height of the object.
Height *Dimension `json:"height,omitempty"`
// Width: The width of the object.
Width *Dimension `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Height") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Height") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Size) MarshalJSON() ([]byte, error) {
type NoMethod Size
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SizeSuggestionState: A mask that indicates which of the fields on the
// base Size have been changed in this suggestion. For any field set to
// true, the Size has a new suggested value.
type SizeSuggestionState struct {
// HeightSuggested: Indicates if there was a suggested change to height.
HeightSuggested bool `json:"heightSuggested,omitempty"`
// WidthSuggested: Indicates if there was a suggested change to width.
WidthSuggested bool `json:"widthSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeightSuggested") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HeightSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SizeSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod SizeSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StructuralElement: A StructuralElement describes content that
// provides structure to the document.
type StructuralElement struct {
// EndIndex: The zero-based end index of this structural element,
// exclusive, in UTF-16 code units.
EndIndex int64 `json:"endIndex,omitempty"`
// Paragraph: A paragraph type of structural element.
Paragraph *Paragraph `json:"paragraph,omitempty"`
// SectionBreak: A section break type of structural element.
SectionBreak *SectionBreak `json:"sectionBreak,omitempty"`
// StartIndex: The zero-based start index of this structural element, in
// UTF-16 code units.
StartIndex int64 `json:"startIndex,omitempty"`
// Table: A table type of structural element.
Table *Table `json:"table,omitempty"`
// TableOfContents: A table of contents type of structural element.
TableOfContents *TableOfContents `json:"tableOfContents,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndIndex") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndIndex") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StructuralElement) MarshalJSON() ([]byte, error) {
type NoMethod StructuralElement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SubstringMatchCriteria: A criteria that matches a specific string of
// text in the document.
type SubstringMatchCriteria struct {
// MatchCase: Indicates whether the search should respect case: -
// `True`: the search is case sensitive. - `False`: the search is case
// insensitive.
MatchCase bool `json:"matchCase,omitempty"`
// Text: The text to search for in the document.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "MatchCase") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MatchCase") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SubstringMatchCriteria) MarshalJSON() ([]byte, error) {
type NoMethod SubstringMatchCriteria
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedBullet: A suggested change to a Bullet.
type SuggestedBullet struct {
// Bullet: A Bullet that only includes the changes made in this
// suggestion. This can be used along with the bullet_suggestion_state
// to see which fields have changed and their new values.
Bullet *Bullet `json:"bullet,omitempty"`
// BulletSuggestionState: A mask that indicates which of the fields on
// the base Bullet have been changed in this suggestion.
BulletSuggestionState *BulletSuggestionState `json:"bulletSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bullet") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bullet") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedBullet) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedBullet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedDocumentStyle: A suggested change to the DocumentStyle.
type SuggestedDocumentStyle struct {
// DocumentStyle: A DocumentStyle that only includes the changes made in
// this suggestion. This can be used along with the
// document_style_suggestion_state to see which fields have changed and
// their new values.
DocumentStyle *DocumentStyle `json:"documentStyle,omitempty"`
// DocumentStyleSuggestionState: A mask that indicates which of the
// fields on the base DocumentStyle have been changed in this
// suggestion.
DocumentStyleSuggestionState *DocumentStyleSuggestionState `json:"documentStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "DocumentStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DocumentStyle") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedDocumentStyle) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedDocumentStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedInlineObjectProperties: A suggested change to
// InlineObjectProperties.
type SuggestedInlineObjectProperties struct {
// InlineObjectProperties: An InlineObjectProperties that only includes
// the changes made in this suggestion. This can be used along with the
// inline_object_properties_suggestion_state to see which fields have
// changed and their new values.
InlineObjectProperties *InlineObjectProperties `json:"inlineObjectProperties,omitempty"`
// InlineObjectPropertiesSuggestionState: A mask that indicates which of
// the fields on the base InlineObjectProperties have been changed in
// this suggestion.
InlineObjectPropertiesSuggestionState *InlineObjectPropertiesSuggestionState `json:"inlineObjectPropertiesSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "InlineObjectProperties") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InlineObjectProperties")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SuggestedInlineObjectProperties) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedInlineObjectProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedListProperties: A suggested change to ListProperties.
type SuggestedListProperties struct {
// ListProperties: A ListProperties that only includes the changes made
// in this suggestion. This can be used along with the
// list_properties_suggestion_state to see which fields have changed and
// their new values.
ListProperties *ListProperties `json:"listProperties,omitempty"`
// ListPropertiesSuggestionState: A mask that indicates which of the
// fields on the base ListProperties have been changed in this
// suggestion.
ListPropertiesSuggestionState *ListPropertiesSuggestionState `json:"listPropertiesSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "ListProperties") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ListProperties") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SuggestedListProperties) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedListProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedNamedStyles: A suggested change to the NamedStyles.
type SuggestedNamedStyles struct {
// NamedStyles: A NamedStyles that only includes the changes made in
// this suggestion. This can be used along with the
// named_styles_suggestion_state to see which fields have changed and
// their new values.
NamedStyles *NamedStyles `json:"namedStyles,omitempty"`
// NamedStylesSuggestionState: A mask that indicates which of the fields
// on the base NamedStyles have been changed in this suggestion.
NamedStylesSuggestionState *NamedStylesSuggestionState `json:"namedStylesSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "NamedStyles") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NamedStyles") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedNamedStyles) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedNamedStyles
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedParagraphStyle: A suggested change to a ParagraphStyle.
type SuggestedParagraphStyle struct {
// ParagraphStyle: A ParagraphStyle that only includes the changes made
// in this suggestion. This can be used along with the
// paragraph_suggestion_state to see which fields have changed and their
// new values.
ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"`
// ParagraphStyleSuggestionState: A mask that indicates which of the
// fields on the base ParagraphStyle have been changed in this
// suggestion.
ParagraphStyleSuggestionState *ParagraphStyleSuggestionState `json:"paragraphStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "ParagraphStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ParagraphStyle") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SuggestedParagraphStyle) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedParagraphStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedPositionedObjectProperties: A suggested change to
// PositionedObjectProperties.
type SuggestedPositionedObjectProperties struct {
// PositionedObjectProperties: A PositionedObjectProperties that only
// includes the changes made in this suggestion. This can be used along
// with the positioned_object_properties_suggestion_state to see which
// fields have changed and their new values.
PositionedObjectProperties *PositionedObjectProperties `json:"positionedObjectProperties,omitempty"`
// PositionedObjectPropertiesSuggestionState: A mask that indicates
// which of the fields on the base PositionedObjectProperties have been
// changed in this suggestion.
PositionedObjectPropertiesSuggestionState *PositionedObjectPropertiesSuggestionState `json:"positionedObjectPropertiesSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "PositionedObjectProperties") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "PositionedObjectProperties") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedPositionedObjectProperties) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedPositionedObjectProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedTableCellStyle: A suggested change to a TableCellStyle.
type SuggestedTableCellStyle struct {
// TableCellStyle: A TableCellStyle that only includes the changes made
// in this suggestion. This can be used along with the
// table_cell_style_suggestion_state to see which fields have changed
// and their new values.
TableCellStyle *TableCellStyle `json:"tableCellStyle,omitempty"`
// TableCellStyleSuggestionState: A mask that indicates which of the
// fields on the base TableCellStyle have been changed in this
// suggestion.
TableCellStyleSuggestionState *TableCellStyleSuggestionState `json:"tableCellStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableCellStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableCellStyle") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SuggestedTableCellStyle) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedTableCellStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedTableRowStyle: A suggested change to a TableRowStyle.
type SuggestedTableRowStyle struct {
// TableRowStyle: A TableRowStyle that only includes the changes made in
// this suggestion. This can be used along with the
// table_row_style_suggestion_state to see which fields have changed and
// their new values.
TableRowStyle *TableRowStyle `json:"tableRowStyle,omitempty"`
// TableRowStyleSuggestionState: A mask that indicates which of the
// fields on the base TableRowStyle have been changed in this
// suggestion.
TableRowStyleSuggestionState *TableRowStyleSuggestionState `json:"tableRowStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableRowStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableRowStyle") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedTableRowStyle) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedTableRowStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SuggestedTextStyle: A suggested change to a TextStyle.
type SuggestedTextStyle struct {
// TextStyle: A TextStyle that only includes the changes made in this
// suggestion. This can be used along with the
// text_style_suggestion_state to see which fields have changed and
// their new values.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// TextStyleSuggestionState: A mask that indicates which of the fields
// on the base TextStyle have been changed in this suggestion.
TextStyleSuggestionState *TextStyleSuggestionState `json:"textStyleSuggestionState,omitempty"`
// ForceSendFields is a list of field names (e.g. "TextStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TextStyle") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SuggestedTextStyle) MarshalJSON() ([]byte, error) {
type NoMethod SuggestedTextStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TabStop: A tab stop within a paragraph.
type TabStop struct {
// Alignment: The alignment of this tab stop. If unset, the value
// defaults to START.
//
// Possible values:
// "TAB_STOP_ALIGNMENT_UNSPECIFIED" - The tab stop alignment is
// unspecified.
// "START" - The tab stop is aligned to the start of the line. This is
// the default.
// "CENTER" - The tab stop is aligned to the center of the line.
// "END" - The tab stop is aligned to the end of the line.
Alignment string `json:"alignment,omitempty"`
// Offset: The offset between this tab stop and the start margin.
Offset *Dimension `json:"offset,omitempty"`
// ForceSendFields is a list of field names (e.g. "Alignment") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Alignment") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TabStop) MarshalJSON() ([]byte, error) {
type NoMethod TabStop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Table: A StructuralElement representing a table.
type Table struct {
// Columns: Number of columns in the table. It is possible for a table
// to be non-rectangular, so some rows may have a different number of
// cells.
Columns int64 `json:"columns,omitempty"`
// Rows: Number of rows in the table.
Rows int64 `json:"rows,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A Table may have
// multiple insertion IDs if it is a nested suggested change. If empty,
// then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// TableRows: The contents and style of each row.
TableRows []*TableRow `json:"tableRows,omitempty"`
// TableStyle: The style of the table.
TableStyle *TableStyle `json:"tableStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Columns") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Columns") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Table) MarshalJSON() ([]byte, error) {
type NoMethod Table
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableCell: The contents and style of a cell in a Table.
type TableCell struct {
// Content: The content of the cell.
Content []*StructuralElement `json:"content,omitempty"`
// EndIndex: The zero-based end index of this cell, exclusive, in UTF-16
// code units.
EndIndex int64 `json:"endIndex,omitempty"`
// StartIndex: The zero-based start index of this cell, in UTF-16 code
// units.
StartIndex int64 `json:"startIndex,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A TableCell may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTableCellStyleChanges: The suggested changes to the table
// cell style, keyed by suggestion ID.
SuggestedTableCellStyleChanges map[string]SuggestedTableCellStyle `json:"suggestedTableCellStyleChanges,omitempty"`
// TableCellStyle: The style of the cell.
TableCellStyle *TableCellStyle `json:"tableCellStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableCell) MarshalJSON() ([]byte, error) {
type NoMethod TableCell
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableCellBorder: A border around a table cell. Table cell borders
// cannot be transparent. To hide a table cell border, make its width 0.
type TableCellBorder struct {
// Color: The color of the border. This color cannot be transparent.
Color *OptionalColor `json:"color,omitempty"`
// DashStyle: The dash style of the border.
//
// Possible values:
// "DASH_STYLE_UNSPECIFIED" - Unspecified dash style.
// "SOLID" - Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'solid'. This is the default dash style.
// "DOT" - Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dot'.
// "DASH" - Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal
// value 'dash'.
DashStyle string `json:"dashStyle,omitempty"`
// Width: The width of the border.
Width *Dimension `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Color") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableCellBorder) MarshalJSON() ([]byte, error) {
type NoMethod TableCellBorder
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableCellLocation: Location of a single cell within a table.
type TableCellLocation struct {
// ColumnIndex: The zero-based column index. For example, the second
// column in the table has a column index of 1.
ColumnIndex int64 `json:"columnIndex,omitempty"`
// RowIndex: The zero-based row index. For example, the second row in
// the table has a row index of 1.
RowIndex int64 `json:"rowIndex,omitempty"`
// TableStartLocation: The location where the table starts in the
// document.
TableStartLocation *Location `json:"tableStartLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColumnIndex") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColumnIndex") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableCellLocation) MarshalJSON() ([]byte, error) {
type NoMethod TableCellLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableCellStyle: The style of a TableCell. Inherited table cell styles
// are represented as unset fields in this message. A table cell style
// can inherit from the table's style.
type TableCellStyle struct {
// BackgroundColor: The background color of the cell.
BackgroundColor *OptionalColor `json:"backgroundColor,omitempty"`
// BorderBottom: The bottom border of the cell.
BorderBottom *TableCellBorder `json:"borderBottom,omitempty"`
// BorderLeft: The left border of the cell.
BorderLeft *TableCellBorder `json:"borderLeft,omitempty"`
// BorderRight: The right border of the cell.
BorderRight *TableCellBorder `json:"borderRight,omitempty"`
// BorderTop: The top border of the cell.
BorderTop *TableCellBorder `json:"borderTop,omitempty"`
// ColumnSpan: The column span of the cell. This property is read-only.
ColumnSpan int64 `json:"columnSpan,omitempty"`
// ContentAlignment: The alignment of the content in the table cell. The
// default alignment matches the alignment for newly created table cells
// in the Docs editor.
//
// Possible values:
// "CONTENT_ALIGNMENT_UNSPECIFIED" - An unspecified content alignment.
// The content alignment is inherited from the parent if one exists.
// "CONTENT_ALIGNMENT_UNSUPPORTED" - An unsupported content alignment.
// "TOP" - An alignment that aligns the content to the top of the
// content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'.
// "MIDDLE" - An alignment that aligns the content to the middle of
// the content holder. Corresponds to ECMA-376 ST_TextAnchoringType
// 'ctr'.
// "BOTTOM" - An alignment that aligns the content to the bottom of
// the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'.
ContentAlignment string `json:"contentAlignment,omitempty"`
// PaddingBottom: The bottom padding of the cell.
PaddingBottom *Dimension `json:"paddingBottom,omitempty"`
// PaddingLeft: The left padding of the cell.
PaddingLeft *Dimension `json:"paddingLeft,omitempty"`
// PaddingRight: The right padding of the cell.
PaddingRight *Dimension `json:"paddingRight,omitempty"`
// PaddingTop: The top padding of the cell.
PaddingTop *Dimension `json:"paddingTop,omitempty"`
// RowSpan: The row span of the cell. This property is read-only.
RowSpan int64 `json:"rowSpan,omitempty"`
// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColor") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TableCellStyle) MarshalJSON() ([]byte, error) {
type NoMethod TableCellStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableCellStyleSuggestionState: A mask that indicates which of the
// fields on the base TableCellStyle have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type TableCellStyleSuggestionState struct {
// BackgroundColorSuggested: Indicates if there was a suggested change
// to background_color.
BackgroundColorSuggested bool `json:"backgroundColorSuggested,omitempty"`
// BorderBottomSuggested: Indicates if there was a suggested change to
// border_bottom.
BorderBottomSuggested bool `json:"borderBottomSuggested,omitempty"`
// BorderLeftSuggested: Indicates if there was a suggested change to
// border_left.
BorderLeftSuggested bool `json:"borderLeftSuggested,omitempty"`
// BorderRightSuggested: Indicates if there was a suggested change to
// border_right.
BorderRightSuggested bool `json:"borderRightSuggested,omitempty"`
// BorderTopSuggested: Indicates if there was a suggested change to
// border_top.
BorderTopSuggested bool `json:"borderTopSuggested,omitempty"`
// ColumnSpanSuggested: Indicates if there was a suggested change to
// column_span.
ColumnSpanSuggested bool `json:"columnSpanSuggested,omitempty"`
// ContentAlignmentSuggested: Indicates if there was a suggested change
// to content_alignment.
ContentAlignmentSuggested bool `json:"contentAlignmentSuggested,omitempty"`
// PaddingBottomSuggested: Indicates if there was a suggested change to
// padding_bottom.
PaddingBottomSuggested bool `json:"paddingBottomSuggested,omitempty"`
// PaddingLeftSuggested: Indicates if there was a suggested change to
// padding_left.
PaddingLeftSuggested bool `json:"paddingLeftSuggested,omitempty"`
// PaddingRightSuggested: Indicates if there was a suggested change to
// padding_right.
PaddingRightSuggested bool `json:"paddingRightSuggested,omitempty"`
// PaddingTopSuggested: Indicates if there was a suggested change to
// padding_top.
PaddingTopSuggested bool `json:"paddingTopSuggested,omitempty"`
// RowSpanSuggested: Indicates if there was a suggested change to
// row_span.
RowSpanSuggested bool `json:"rowSpanSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BackgroundColorSuggested") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColorSuggested")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TableCellStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod TableCellStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableColumnProperties: The properties of a column in a table.
type TableColumnProperties struct {
// Width: The width of the column. Set when the column's `width_type` is
// FIXED_WIDTH.
Width *Dimension `json:"width,omitempty"`
// WidthType: The width type of the column.
//
// Possible values:
// "WIDTH_TYPE_UNSPECIFIED" - The column width type is unspecified.
// "EVENLY_DISTRIBUTED" - The column width is evenly distributed among
// the other evenly distrubted columns. The width of the column is
// automatically determined and will have an equal portion of the width
// remaining for the table after accounting for all columns with
// specified widths.
// "FIXED_WIDTH" - A fixed column width. The width property contains
// the column's width.
WidthType string `json:"widthType,omitempty"`
// ForceSendFields is a list of field names (e.g. "Width") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Width") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableColumnProperties) MarshalJSON() ([]byte, error) {
type NoMethod TableColumnProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableOfContents: A StructuralElement representing a table of
// contents.
type TableOfContents struct {
// Content: The content of the table of contents.
Content []*StructuralElement `json:"content,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A TableOfContents
// may have multiple insertion IDs if it is a nested suggested change.
// If empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableOfContents) MarshalJSON() ([]byte, error) {
type NoMethod TableOfContents
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableRange: A table range represents a reference to a subset of a
// table. It's important to note that the cells specified by a table
// range do not necessarily form a rectangle. For example, let's say we
// have a 3 x 3 table where all the cells of the last row are merged
// together. The table looks like this: [ ] A table range with table
// cell location = (table_start_location, row = 0, column = 0), row span
// = 3 and column span = 2 specifies the following cells: x x [ x x x ]
type TableRange struct {
// ColumnSpan: The column span of the table range.
ColumnSpan int64 `json:"columnSpan,omitempty"`
// RowSpan: The row span of the table range.
RowSpan int64 `json:"rowSpan,omitempty"`
// TableCellLocation: The cell location where the table range starts.
TableCellLocation *TableCellLocation `json:"tableCellLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColumnSpan") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColumnSpan") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableRange) MarshalJSON() ([]byte, error) {
type NoMethod TableRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableRow: The contents and style of a row in a Table.
type TableRow struct {
// EndIndex: The zero-based end index of this row, exclusive, in UTF-16
// code units.
EndIndex int64 `json:"endIndex,omitempty"`
// StartIndex: The zero-based start index of this row, in UTF-16 code
// units.
StartIndex int64 `json:"startIndex,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A TableRow may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTableRowStyleChanges: The suggested style changes to this
// row, keyed by suggestion ID.
SuggestedTableRowStyleChanges map[string]SuggestedTableRowStyle `json:"suggestedTableRowStyleChanges,omitempty"`
// TableCells: The contents and style of each cell in this row. It is
// possible for a table to be non-rectangular, so some rows may have a
// different number of cells than other rows in the same table.
TableCells []*TableCell `json:"tableCells,omitempty"`
// TableRowStyle: The style of the table row.
TableRowStyle *TableRowStyle `json:"tableRowStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "EndIndex") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EndIndex") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableRow) MarshalJSON() ([]byte, error) {
type NoMethod TableRow
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableRowStyle: Styles that apply to a table row.
type TableRowStyle struct {
// MinRowHeight: The minimum height of the row. The row will be rendered
// in the Docs editor at a height equal to or greater than this value in
// order to show all the content in the row's cells.
MinRowHeight *Dimension `json:"minRowHeight,omitempty"`
// ForceSendFields is a list of field names (e.g. "MinRowHeight") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MinRowHeight") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TableRowStyle) MarshalJSON() ([]byte, error) {
type NoMethod TableRowStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableRowStyleSuggestionState: A mask that indicates which of the
// fields on the base TableRowStyle have been changed in this
// suggestion. For any field set to true, there is a new suggested
// value.
type TableRowStyleSuggestionState struct {
// MinRowHeightSuggested: Indicates if there was a suggested change to
// min_row_height.
MinRowHeightSuggested bool `json:"minRowHeightSuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "MinRowHeightSuggested") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MinRowHeightSuggested") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TableRowStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod TableRowStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableStyle: Styles that apply to a table.
type TableStyle struct {
// TableColumnProperties: The properties of each column. Note that in
// Docs, tables contain rows and rows contain cells, similar to HTML. So
// the properties for a row can be found on the row's table_row_style.
TableColumnProperties []*TableColumnProperties `json:"tableColumnProperties,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "TableColumnProperties") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableColumnProperties") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TableStyle) MarshalJSON() ([]byte, error) {
type NoMethod TableStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TextRun: A ParagraphElement that represents a run of text that all
// has the same styling.
type TextRun struct {
// Content: The text of this run. Any non-text elements in the run are
// replaced with the Unicode character U+E907.
Content string `json:"content,omitempty"`
// SuggestedDeletionIds: The suggested deletion IDs. If empty, then
// there are no suggested deletions of this content.
SuggestedDeletionIds []string `json:"suggestedDeletionIds,omitempty"`
// SuggestedInsertionIds: The suggested insertion IDs. A TextRun may
// have multiple insertion IDs if it is a nested suggested change. If
// empty, then this is not a suggested insertion.
SuggestedInsertionIds []string `json:"suggestedInsertionIds,omitempty"`
// SuggestedTextStyleChanges: The suggested text style changes to this
// run, keyed by suggestion ID.
SuggestedTextStyleChanges map[string]SuggestedTextStyle `json:"suggestedTextStyleChanges,omitempty"`
// TextStyle: The text style of this run.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Content") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Content") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TextRun) MarshalJSON() ([]byte, error) {
type NoMethod TextRun
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TextStyle: Represents the styling that can be applied to text.
// Inherited text styles are represented as unset fields in this
// message. A text style's parent depends on where the text style is
// defined: * The TextStyle of text in a Paragraph inherits from the
// paragraph's corresponding named style type. * The TextStyle on a
// named style inherits from the normal text named style. * The
// TextStyle of the normal text named style inherits from the default
// text style in the Docs editor. * The TextStyle on a Paragraph element
// that is contained in a table may inherit its text style from the
// table style. If the text style does not inherit from a parent,
// unsetting fields will revert the style to a value matching the
// defaults in the Docs editor.
type TextStyle struct {
// BackgroundColor: The background color of the text. If set, the color
// is either an RGB color or transparent, depending on the `color`
// field.
BackgroundColor *OptionalColor `json:"backgroundColor,omitempty"`
// BaselineOffset: The text's vertical offset from its normal position.
// Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is
// automatically rendered in a smaller font size, computed based on the
// `font_size` field. The `font_size` itself is not affected by changes
// in this field.
//
// Possible values:
// "BASELINE_OFFSET_UNSPECIFIED" - The text's baseline offset is
// inherited from the parent.
// "NONE" - The text is not vertically offset.
// "SUPERSCRIPT" - The text is vertically offset upwards
// (superscript).
// "SUBSCRIPT" - The text is vertically offset downwards (subscript).
BaselineOffset string `json:"baselineOffset,omitempty"`
// Bold: Whether or not the text is rendered as bold.
Bold bool `json:"bold,omitempty"`
// FontSize: The size of the text's font.
FontSize *Dimension `json:"fontSize,omitempty"`
// ForegroundColor: The foreground color of the text. If set, the color
// is either an RGB color or transparent, depending on the `color`
// field.
ForegroundColor *OptionalColor `json:"foregroundColor,omitempty"`
// Italic: Whether or not the text is italicized.
Italic bool `json:"italic,omitempty"`
// Link: The hyperlink destination of the text. If unset, there is no
// link. Links are not inherited from parent text. Changing the link in
// an update request causes some other changes to the text style of the
// range: * When setting a link, the text foreground color will be
// updated to the default link color and the text will be underlined. If
// these fields are modified in the same request, those values will be
// used instead of the link defaults. * Setting a link on a text range
// that overlaps with an existing link will also update the existing
// link to point to the new URL. * Links are not settable on newline
// characters. As a result, setting a link on a text range that crosses
// a paragraph boundary, such as "ABC\n123", will separate the newline
// character(s) into their own text runs. The link will be applied
// separately to the runs before and after the newline. * Removing a
// link will update the text style of the range to match the style of
// the preceding text (or the default text styles if the preceding text
// is another link) unless different styles are being set in the same
// request.
Link *Link `json:"link,omitempty"`
// SmallCaps: Whether or not the text is in small capital letters.
SmallCaps bool `json:"smallCaps,omitempty"`
// Strikethrough: Whether or not the text is struck through.
Strikethrough bool `json:"strikethrough,omitempty"`
// Underline: Whether or not the text is underlined.
Underline bool `json:"underline,omitempty"`
// WeightedFontFamily: The font family and rendered weight of the text.
// If an update request specifies values for both `weighted_font_family`
// and `bold`, the `weighted_font_family` is applied first, then `bold`.
// If `weighted_font_family#weight` is not set, it defaults to `400`. If
// `weighted_font_family` is set, then
// `weighted_font_family#font_family` must also be set with a non-empty
// value. Otherwise, a 400 bad request error is returned.
WeightedFontFamily *WeightedFontFamily `json:"weightedFontFamily,omitempty"`
// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColor") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TextStyle) MarshalJSON() ([]byte, error) {
type NoMethod TextStyle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TextStyleSuggestionState: A mask that indicates which of the fields
// on the base TextStyle have been changed in this suggestion. For any
// field set to true, there is a new suggested value.
type TextStyleSuggestionState struct {
// BackgroundColorSuggested: Indicates if there was a suggested change
// to background_color.
BackgroundColorSuggested bool `json:"backgroundColorSuggested,omitempty"`
// BaselineOffsetSuggested: Indicates if there was a suggested change to
// baseline_offset.
BaselineOffsetSuggested bool `json:"baselineOffsetSuggested,omitempty"`
// BoldSuggested: Indicates if there was a suggested change to bold.
BoldSuggested bool `json:"boldSuggested,omitempty"`
// FontSizeSuggested: Indicates if there was a suggested change to
// font_size.
FontSizeSuggested bool `json:"fontSizeSuggested,omitempty"`
// ForegroundColorSuggested: Indicates if there was a suggested change
// to foreground_color.
ForegroundColorSuggested bool `json:"foregroundColorSuggested,omitempty"`
// ItalicSuggested: Indicates if there was a suggested change to italic.
ItalicSuggested bool `json:"italicSuggested,omitempty"`
// LinkSuggested: Indicates if there was a suggested change to link.
LinkSuggested bool `json:"linkSuggested,omitempty"`
// SmallCapsSuggested: Indicates if there was a suggested change to
// small_caps.
SmallCapsSuggested bool `json:"smallCapsSuggested,omitempty"`
// StrikethroughSuggested: Indicates if there was a suggested change to
// strikethrough.
StrikethroughSuggested bool `json:"strikethroughSuggested,omitempty"`
// UnderlineSuggested: Indicates if there was a suggested change to
// underline.
UnderlineSuggested bool `json:"underlineSuggested,omitempty"`
// WeightedFontFamilySuggested: Indicates if there was a suggested
// change to weighted_font_family.
WeightedFontFamilySuggested bool `json:"weightedFontFamilySuggested,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BackgroundColorSuggested") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColorSuggested")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TextStyleSuggestionState) MarshalJSON() ([]byte, error) {
type NoMethod TextStyleSuggestionState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UnmergeTableCellsRequest: Unmerges cells in a Table.
type UnmergeTableCellsRequest struct {
// TableRange: The table range specifying which cells of the table to
// unmerge. All merged cells in this range will be unmerged, and cells
// that are already unmerged will not be affected. If the range has no
// merged cells, the request will do nothing. If there is text in any of
// the merged cells, the text will remain in the "head" cell of the
// resulting block of unmerged cells. The "head" cell is the upper-left
// cell when the content direction is from left to right, and the
// upper-right otherwise.
TableRange *TableRange `json:"tableRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "TableRange") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TableRange") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UnmergeTableCellsRequest) MarshalJSON() ([]byte, error) {
type NoMethod UnmergeTableCellsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateDocumentStyleRequest: Updates the DocumentStyle.
type UpdateDocumentStyleRequest struct {
// DocumentStyle: The styles to set on the document. Certain document
// style changes may cause other changes in order to mirror the behavior
// of the Docs editor. See the documentation of DocumentStyle for more
// information.
DocumentStyle *DocumentStyle `json:"documentStyle,omitempty"`
// Fields: The fields that should be updated. At least one field must be
// specified. The root `document_style` is implied and should not be
// specified. A single "*" can be used as short-hand for listing every
// field. For example to update the background, set `fields` to
// "background".
Fields string `json:"fields,omitempty"`
// ForceSendFields is a list of field names (e.g. "DocumentStyle") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DocumentStyle") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateDocumentStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateDocumentStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateParagraphStyleRequest: Update the styling of all paragraphs
// that overlap with the given range.
type UpdateParagraphStyleRequest struct {
// Fields: The fields that should be updated. At least one field must be
// specified. The root `paragraph_style` is implied and should not be
// specified. For example, to update the paragraph style's alignment
// property, set `fields` to "alignment". To reset a property to its
// default value, include its field name in the field mask but leave the
// field itself unset.
Fields string `json:"fields,omitempty"`
// ParagraphStyle: The styles to set on the paragraphs. Certain
// paragraph style changes may cause other changes in order to mirror
// the behavior of the Docs editor. See the documentation of
// ParagraphStyle for more information.
ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"`
// Range: The range overlapping the paragraphs to style.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateParagraphStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateParagraphStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateSectionStyleRequest: Updates the SectionStyle.
type UpdateSectionStyleRequest struct {
// Fields: The fields that should be updated. At least one field must be
// specified. The root `section_style` is implied and must not be
// specified. A single "*" can be used as short-hand for listing every
// field. For example to update the left margin, set `fields` to
// "margin_left".
Fields string `json:"fields,omitempty"`
// Range: The range overlapping the sections to style. Because section
// breaks can only be inserted inside the body, the segment ID field
// must be empty.
Range *Range `json:"range,omitempty"`
// SectionStyle: The styles to be set on the section. Certain section
// style changes may cause other changes in order to mirror the behavior
// of the Docs editor. See the documentation of SectionStyle for more
// information.
SectionStyle *SectionStyle `json:"sectionStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateSectionStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateSectionStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateTableCellStyleRequest: Updates the style of a range of table
// cells.
type UpdateTableCellStyleRequest struct {
// Fields: The fields that should be updated. At least one field must be
// specified. The root `tableCellStyle` is implied and should not be
// specified. A single "*" can be used as short-hand for listing every
// field. For example to update the table cell background color, set
// `fields` to "backgroundColor". To reset a property to its default
// value, include its field name in the field mask but leave the field
// itself unset.
Fields string `json:"fields,omitempty"`
// TableCellStyle: The style to set on the table cells. When updating
// borders, if a cell shares a border with an adjacent cell, the
// corresponding border property of the adjacent cell is updated as
// well. Borders that are merged and invisible are not updated. Since
// updating a border shared by adjacent cells in the same request can
// cause conflicting border updates, border updates are applied in the
// following order: - `border_right` - `border_left` - `border_bottom` -
// `border_top`
TableCellStyle *TableCellStyle `json:"tableCellStyle,omitempty"`
// TableRange: The table range representing the subset of the table to
// which the updates are applied.
TableRange *TableRange `json:"tableRange,omitempty"`
// TableStartLocation: The location where the table starts in the
// document. When specified, the updates are applied to all the cells in
// the table.
TableStartLocation *Location `json:"tableStartLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateTableCellStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateTableCellStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateTableColumnPropertiesRequest: Updates the TableColumnProperties
// of columns in a table.
type UpdateTableColumnPropertiesRequest struct {
// ColumnIndices: The list of zero-based column indices whose property
// should be updated. If no indices are specified, all columns will be
// updated.
ColumnIndices []int64 `json:"columnIndices,omitempty"`
// Fields: The fields that should be updated. At least one field must be
// specified. The root `tableColumnProperties` is implied and should not
// be specified. A single "*" can be used as short-hand for listing
// every field. For example to update the column width, set `fields` to
// "width".
Fields string `json:"fields,omitempty"`
// TableColumnProperties: The table column properties to update. If the
// value of `table_column_properties#width` is less than 5 points (5/72
// inch), a 400 bad request error is returned.
TableColumnProperties *TableColumnProperties `json:"tableColumnProperties,omitempty"`
// TableStartLocation: The location where the table starts in the
// document.
TableStartLocation *Location `json:"tableStartLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColumnIndices") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColumnIndices") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateTableColumnPropertiesRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateTableColumnPropertiesRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateTableRowStyleRequest: Updates the TableRowStyle of rows in a
// table.
type UpdateTableRowStyleRequest struct {
// Fields: The fields that should be updated. At least one field must be
// specified. The root `tableRowStyle` is implied and should not be
// specified. A single "*" can be used as short-hand for listing every
// field. For example to update the minimum row height, set `fields` to
// "min_row_height".
Fields string `json:"fields,omitempty"`
// RowIndices: The list of zero-based row indices whose style should be
// updated. If no indices are specified, all rows will be updated.
RowIndices []int64 `json:"rowIndices,omitempty"`
// TableRowStyle: The styles to be set on the rows.
TableRowStyle *TableRowStyle `json:"tableRowStyle,omitempty"`
// TableStartLocation: The location where the table starts in the
// document.
TableStartLocation *Location `json:"tableStartLocation,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateTableRowStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateTableRowStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateTextStyleRequest: Update the styling of text.
type UpdateTextStyleRequest struct {
// Fields: The fields that should be updated. At least one field must be
// specified. The root `text_style` is implied and should not be
// specified. A single "*" can be used as short-hand for listing every
// field. For example, to update the text style to bold, set `fields` to
// "bold". To reset a property to its default value, include its field
// name in the field mask but leave the field itself unset.
Fields string `json:"fields,omitempty"`
// Range: The range of text to style. The range may be extended to
// include adjacent newlines. If the range fully contains a paragraph
// belonging to a list, the paragraph's bullet is also updated with the
// matching text style. Ranges cannot be inserted inside a relative
// UpdateTextStyleRequest.
Range *Range `json:"range,omitempty"`
// TextStyle: The styles to set on the text. If the value for a
// particular style matches that of the parent, that style will be set
// to inherit. Certain text style changes may cause other changes in
// order to to mirror the behavior of the Docs editor. See the
// documentation of TextStyle for more information.
TextStyle *TextStyle `json:"textStyle,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fields") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Fields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateTextStyleRequest) MarshalJSON() ([]byte, error) {
type NoMethod UpdateTextStyleRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WeightedFontFamily: Represents a font family and weight of text.
type WeightedFontFamily struct {
// FontFamily: The font family of the text. The font family can be any
// font from the Font menu in Docs or from [Google Fonts]
// (https://fonts.google.com/). If the font name is unrecognized, the
// text is rendered in `Arial`.
FontFamily string `json:"fontFamily,omitempty"`
// Weight: The weight of the font. This field can have any value that is
// a multiple of `100` between `100` and `900`, inclusive. This range
// corresponds to the numerical values described in the CSS 2.1
// Specification, section 15.6
// (https://www.w3.org/TR/CSS21/fonts.html#font-boldness), with
// non-numerical values disallowed. The default value is `400`
// ("normal"). The font weight makes up just one component of the
// rendered font weight. The rendered weight is determined by a
// combination of the `weight` and the text style's resolved `bold`
// value, after accounting for inheritance: * If the text is bold and
// the weight is less than `400`, the rendered weight is 400. * If the
// text is bold and the weight is greater than or equal to `400` but is
// less than `700`, the rendered weight is `700`. * If the weight is
// greater than or equal to `700`, the rendered weight is equal to the
// weight. * If the text is not bold, the rendered weight is equal to
// the weight.
Weight int64 `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "FontFamily") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FontFamily") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WeightedFontFamily) MarshalJSON() ([]byte, error) {
type NoMethod WeightedFontFamily
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WriteControl: Provides control over how write requests are executed.
type WriteControl struct {
// RequiredRevisionId: The revision ID of the document that the write
// request will be applied to. If this is not the latest revision of the
// document, the request will not be processed and will return a 400 bad
// request error. When a required revision ID is returned in a response,
// it indicates the revision ID of the document after the request was
// applied.
RequiredRevisionId string `json:"requiredRevisionId,omitempty"`
// TargetRevisionId: The target revision ID of the document that the
// write request will be applied to. If collaborator changes have
// occurred after the document was read using the API, the changes
// produced by this write request will be transformed against the
// collaborator changes. This results in a new revision of the document
// which incorporates both the changes in the request and the
// collaborator changes, and the Docs server will resolve conflicting
// changes. When using `target_revision_id`, the API client can be
// thought of as another collaborator of the document. The target
// revision ID may only be used to write to recent versions of a
// document. If the target revision is too far behind the latest
// revision, the request will not be processed and will return a 400 bad
// request error and the request should be retried after reading the
// latest version of the document. In most cases a `revision_id` will
// remain valid for use as a target revision for several minutes after
// it is read, but for frequently-edited documents this window may be
// shorter.
TargetRevisionId string `json:"targetRevisionId,omitempty"`
// ForceSendFields is a list of field names (e.g. "RequiredRevisionId")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RequiredRevisionId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WriteControl) MarshalJSON() ([]byte, error) {
type NoMethod WriteControl
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "docs.documents.batchUpdate":
type DocumentsBatchUpdateCall struct {
s *Service
documentId string
batchupdatedocumentrequest *BatchUpdateDocumentRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// BatchUpdate: Applies one or more updates to the document. Each
// request is validated before being applied. If any request is not
// valid, then the entire request will fail and nothing will be applied.
// Some requests have replies to give you some information about how
// they are applied. Other requests do not need to return information;
// these each return an empty reply. The order of replies matches that
// of the requests. For example, suppose you call batchUpdate with four
// updates, and only the third one returns information. The response
// would have two empty replies, the reply to the third request, and
// another empty reply, in that order. Because other users may be
// editing the document, the document might not exactly reflect your
// changes: your changes may be altered with respect to collaborator
// changes. If there are no collaborators, the document should reflect
// your changes. In any case, the updates in your request are guaranteed
// to be applied together atomically.
//
// - documentId: The ID of the document to update.
func (r *DocumentsService) BatchUpdate(documentId string, batchupdatedocumentrequest *BatchUpdateDocumentRequest) *DocumentsBatchUpdateCall {
c := &DocumentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.documentId = documentId
c.batchupdatedocumentrequest = batchupdatedocumentrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DocumentsBatchUpdateCall) Fields(s ...googleapi.Field) *DocumentsBatchUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DocumentsBatchUpdateCall) Context(ctx context.Context) *DocumentsBatchUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DocumentsBatchUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DocumentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchupdatedocumentrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/documents/{documentId}:batchUpdate")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"documentId": c.documentId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "docs.documents.batchUpdate" call.
// Exactly one of *BatchUpdateDocumentResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *BatchUpdateDocumentResponse.ServerResponse.Header or (if a response
// was returned at all) in error.(*googleapi.Error).Header. Use
// googleapi.IsNotModified to check whether the returned error was
// because http.StatusNotModified was returned.
func (c *DocumentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*BatchUpdateDocumentResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BatchUpdateDocumentResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.",
// "flatPath": "v1/documents/{documentId}:batchUpdate",
// "httpMethod": "POST",
// "id": "docs.documents.batchUpdate",
// "parameterOrder": [
// "documentId"
// ],
// "parameters": {
// "documentId": {
// "description": "The ID of the document to update.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/documents/{documentId}:batchUpdate",
// "request": {
// "$ref": "BatchUpdateDocumentRequest"
// },
// "response": {
// "$ref": "BatchUpdateDocumentResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/documents",
// "https://www.googleapis.com/auth/drive",
// "https://www.googleapis.com/auth/drive.file"
// ]
// }
}
// method id "docs.documents.create":
type DocumentsCreateCall struct {
s *Service
document *Document
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Create: Creates a blank document using the title given in the
// request. Other fields in the request, including any provided content,
// are ignored. Returns the created document.
func (r *DocumentsService) Create(document *Document) *DocumentsCreateCall {
c := &DocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.document = document
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DocumentsCreateCall) Fields(s ...googleapi.Field) *DocumentsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DocumentsCreateCall) Context(ctx context.Context) *DocumentsCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DocumentsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.document)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/documents")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "docs.documents.create" call.
// Exactly one of *Document or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Document.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *DocumentsCreateCall) Do(opts ...googleapi.CallOption) (*Document, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Document{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.",
// "flatPath": "v1/documents",
// "httpMethod": "POST",
// "id": "docs.documents.create",
// "parameterOrder": [],
// "parameters": {},
// "path": "v1/documents",
// "request": {
// "$ref": "Document"
// },
// "response": {
// "$ref": "Document"
// },
// "scopes": [
// "https://www.googleapis.com/auth/documents",
// "https://www.googleapis.com/auth/drive",
// "https://www.googleapis.com/auth/drive.file"
// ]
// }
}
// method id "docs.documents.get":
type DocumentsGetCall struct {
s *Service
documentId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets the latest version of the specified document.
//
// - documentId: The ID of the document to retrieve.
func (r *DocumentsService) Get(documentId string) *DocumentsGetCall {
c := &DocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.documentId = documentId
return c
}
// SuggestionsViewMode sets the optional parameter
// "suggestionsViewMode": The suggestions view mode to apply to the
// document. This allows viewing the document with all suggestions
// inline, accepted or rejected. If one is not specified,
// DEFAULT_FOR_CURRENT_ACCESS is used.
//
// Possible values:
// "DEFAULT_FOR_CURRENT_ACCESS" - The SuggestionsViewMode applied to
// the returned document depends on the user's current access level. If
// the user only has view access, PREVIEW_WITHOUT_SUGGESTIONS is
// applied. Otherwise, SUGGESTIONS_INLINE is applied. This is the
// default suggestions view mode.
// "SUGGESTIONS_INLINE" - The returned document has suggestions
// inline. Suggested changes will be differentiated from base content
// within the document. Requests to retrieve a document using this mode
// will return a 403 error if the user does not have permission to view
// suggested changes.
// "PREVIEW_SUGGESTIONS_ACCEPTED" - The returned document is a preview
// with all suggested changes accepted. Requests to retrieve a document
// using this mode will return a 403 error if the user does not have
// permission to view suggested changes.
// "PREVIEW_WITHOUT_SUGGESTIONS" - The returned document is a preview
// with all suggested changes rejected if there are any suggestions in
// the document.
func (c *DocumentsGetCall) SuggestionsViewMode(suggestionsViewMode string) *DocumentsGetCall {
c.urlParams_.Set("suggestionsViewMode", suggestionsViewMode)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DocumentsGetCall) Fields(s ...googleapi.Field) *DocumentsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *DocumentsGetCall) IfNoneMatch(entityTag string) *DocumentsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *DocumentsGetCall) Context(ctx context.Context) *DocumentsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DocumentsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DocumentsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211201")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/documents/{documentId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"documentId": c.documentId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "docs.documents.get" call.
// Exactly one of *Document or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Document.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *DocumentsGetCall) Do(opts ...googleapi.CallOption) (*Document, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Document{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets the latest version of the specified document.",
// "flatPath": "v1/documents/{documentId}",
// "httpMethod": "GET",
// "id": "docs.documents.get",
// "parameterOrder": [
// "documentId"
// ],
// "parameters": {
// "documentId": {
// "description": "The ID of the document to retrieve.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "suggestionsViewMode": {
// "description": "The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.",
// "enum": [
// "DEFAULT_FOR_CURRENT_ACCESS",
// "SUGGESTIONS_INLINE",
// "PREVIEW_SUGGESTIONS_ACCEPTED",
// "PREVIEW_WITHOUT_SUGGESTIONS"
// ],
// "enumDescriptions": [
// "The SuggestionsViewMode applied to the returned document depends on the user's current access level. If the user only has view access, PREVIEW_WITHOUT_SUGGESTIONS is applied. Otherwise, SUGGESTIONS_INLINE is applied. This is the default suggestions view mode.",
// "The returned document has suggestions inline. Suggested changes will be differentiated from base content within the document. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes.",
// "The returned document is a preview with all suggested changes accepted. Requests to retrieve a document using this mode will return a 403 error if the user does not have permission to view suggested changes.",
// "The returned document is a preview with all suggested changes rejected if there are any suggestions in the document."
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "v1/documents/{documentId}",
// "response": {
// "$ref": "Document"
// },
// "scopes": [
// "https://www.googleapis.com/auth/documents",
// "https://www.googleapis.com/auth/documents.readonly",
// "https://www.googleapis.com/auth/drive",
// "https://www.googleapis.com/auth/drive.file",
// "https://www.googleapis.com/auth/drive.readonly"
// ]
// }
}
|