Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: generated/googleapis/lib/slides/v1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/sheets/v4.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.slides.v1; 3 library googleapis.slides.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 * in the presentation. The ID must start with an alphanumeric character or an 1344 * in the presentation. The ID must start with an alphanumeric character or an
1345 * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters 1345 * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
1346 * may include those as well as a hyphen or colon (matches regex 1346 * may include those as well as a hyphen or colon (matches regex
1347 * `[a-zA-Z0-9_-:]`). 1347 * `[a-zA-Z0-9_-:]`).
1348 * The length of the ID must not be less than 5 or greater than 50. 1348 * The length of the ID must not be less than 5 or greater than 50.
1349 * 1349 *
1350 * If you don't specify an ID, a unique one is generated. 1350 * If you don't specify an ID, a unique one is generated.
1351 */ 1351 */
1352 core.String objectId; 1352 core.String objectId;
1353 /** 1353 /**
1354 * An optional list of object ID mappings from the placeholder(s) on the
1355 * layout to the placeholder(s)
1356 * that will be created on the new slide from that specified layout. Can only
1357 * be used when `slide_layout_reference` is specified.
1358 */
1359 core.List<LayoutPlaceholderIdMapping> placeholderIdMappings;
1360 /**
1354 * Layout reference of the slide to be inserted, based on the *current 1361 * Layout reference of the slide to be inserted, based on the *current
1355 * master*, which is one of the following: 1362 * master*, which is one of the following:
1356 * 1363 *
1357 * - The master of the previous slide index. 1364 * - The master of the previous slide index.
1358 * - The master of the first slide, if the insertion_index is zero. 1365 * - The master of the first slide, if the insertion_index is zero.
1359 * - The first master in the presentation, if there are no slides. 1366 * - The first master in the presentation, if there are no slides.
1360 * 1367 *
1361 * If the LayoutReference is not found in the current master, a 400 bad 1368 * If the LayoutReference is not found in the current master, a 400 bad
1362 * request error is returned. 1369 * request error is returned.
1363 * 1370 *
1364 * If you don't specify a layout reference, then the new slide will use the 1371 * If you don't specify a layout reference, then the new slide will use the
1365 * predefined layout `BLANK`. 1372 * predefined layout `BLANK`.
1366 */ 1373 */
1367 LayoutReference slideLayoutReference; 1374 LayoutReference slideLayoutReference;
1368 1375
1369 CreateSlideRequest(); 1376 CreateSlideRequest();
1370 1377
1371 CreateSlideRequest.fromJson(core.Map _json) { 1378 CreateSlideRequest.fromJson(core.Map _json) {
1372 if (_json.containsKey("insertionIndex")) { 1379 if (_json.containsKey("insertionIndex")) {
1373 insertionIndex = _json["insertionIndex"]; 1380 insertionIndex = _json["insertionIndex"];
1374 } 1381 }
1375 if (_json.containsKey("objectId")) { 1382 if (_json.containsKey("objectId")) {
1376 objectId = _json["objectId"]; 1383 objectId = _json["objectId"];
1377 } 1384 }
1385 if (_json.containsKey("placeholderIdMappings")) {
1386 placeholderIdMappings = _json["placeholderIdMappings"].map((value) => new LayoutPlaceholderIdMapping.fromJson(value)).toList();
1387 }
1378 if (_json.containsKey("slideLayoutReference")) { 1388 if (_json.containsKey("slideLayoutReference")) {
1379 slideLayoutReference = new LayoutReference.fromJson(_json["slideLayoutRefe rence"]); 1389 slideLayoutReference = new LayoutReference.fromJson(_json["slideLayoutRefe rence"]);
1380 } 1390 }
1381 } 1391 }
1382 1392
1383 core.Map toJson() { 1393 core.Map toJson() {
1384 var _json = new core.Map(); 1394 var _json = new core.Map();
1385 if (insertionIndex != null) { 1395 if (insertionIndex != null) {
1386 _json["insertionIndex"] = insertionIndex; 1396 _json["insertionIndex"] = insertionIndex;
1387 } 1397 }
1388 if (objectId != null) { 1398 if (objectId != null) {
1389 _json["objectId"] = objectId; 1399 _json["objectId"] = objectId;
1390 } 1400 }
1401 if (placeholderIdMappings != null) {
1402 _json["placeholderIdMappings"] = placeholderIdMappings.map((value) => (val ue).toJson()).toList();
1403 }
1391 if (slideLayoutReference != null) { 1404 if (slideLayoutReference != null) {
1392 _json["slideLayoutReference"] = (slideLayoutReference).toJson(); 1405 _json["slideLayoutReference"] = (slideLayoutReference).toJson();
1393 } 1406 }
1394 return _json; 1407 return _json;
1395 } 1408 }
1396 } 1409 }
1397 1410
1398 /** The result of creating a slide. */ 1411 /** The result of creating a slide. */
1399 class CreateSlideResponse { 1412 class CreateSlideResponse {
1400 /** The object ID of the created slide. */ 1413 /** The object ID of the created slide. */
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 1727
1715 core.Map toJson() { 1728 core.Map toJson() {
1716 var _json = new core.Map(); 1729 var _json = new core.Map();
1717 if (objectId != null) { 1730 if (objectId != null) {
1718 _json["objectId"] = objectId; 1731 _json["objectId"] = objectId;
1719 } 1732 }
1720 return _json; 1733 return _json;
1721 } 1734 }
1722 } 1735 }
1723 1736
1737 /**
1738 * Deletes bullets from all of the paragraphs that overlap with the given text
1739 * index range.
1740 *
1741 * The nesting level of each paragraph will be visually preserved by adding
1742 * indent to the start of the corresponding paragraph.
1743 */
1744 class DeleteParagraphBulletsRequest {
1745 /**
1746 * The optional table cell location if the text to be modified is in a table
1747 * cell. If present, the object_id must refer to a table.
1748 */
1749 TableCellLocation cellLocation;
1750 /**
1751 * The object ID of the shape or table containing the text to delete bullets
1752 * from.
1753 */
1754 core.String objectId;
1755 /**
1756 * The range of text to delete bullets from, based on TextElement indexes.
1757 */
1758 Range textRange;
1759
1760 DeleteParagraphBulletsRequest();
1761
1762 DeleteParagraphBulletsRequest.fromJson(core.Map _json) {
1763 if (_json.containsKey("cellLocation")) {
1764 cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]);
1765 }
1766 if (_json.containsKey("objectId")) {
1767 objectId = _json["objectId"];
1768 }
1769 if (_json.containsKey("textRange")) {
1770 textRange = new Range.fromJson(_json["textRange"]);
1771 }
1772 }
1773
1774 core.Map toJson() {
1775 var _json = new core.Map();
1776 if (cellLocation != null) {
1777 _json["cellLocation"] = (cellLocation).toJson();
1778 }
1779 if (objectId != null) {
1780 _json["objectId"] = objectId;
1781 }
1782 if (textRange != null) {
1783 _json["textRange"] = (textRange).toJson();
1784 }
1785 return _json;
1786 }
1787 }
1788
1724 /** Deletes a column from a table. */ 1789 /** Deletes a column from a table. */
1725 class DeleteTableColumnRequest { 1790 class DeleteTableColumnRequest {
1726 /** 1791 /**
1727 * The reference table cell location from which a column will be deleted. 1792 * The reference table cell location from which a column will be deleted.
1728 * 1793 *
1729 * The column this cell spans will be deleted. If this is a merged cell, 1794 * The column this cell spans will be deleted. If this is a merged cell,
1730 * multiple columns will be deleted. If no columns remain in the table after 1795 * multiple columns will be deleted. If no columns remain in the table after
1731 * this deletion, the whole table is deleted. 1796 * this deletion, the whole table is deleted.
1732 */ 1797 */
1733 TableCellLocation cellLocation; 1798 TableCellLocation cellLocation;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 _json["objectId"] = objectId; 2378 _json["objectId"] = objectId;
2314 } 2379 }
2315 if (text != null) { 2380 if (text != null) {
2316 _json["text"] = text; 2381 _json["text"] = text;
2317 } 2382 }
2318 return _json; 2383 return _json;
2319 } 2384 }
2320 } 2385 }
2321 2386
2322 /** 2387 /**
2388 * The user-specified ID mapping for a placeholder that will be created on a
2389 * slide from a specified layout.
2390 */
2391 class LayoutPlaceholderIdMapping {
2392 /**
2393 * The placeholder on a layout that will be applied to a slide. Only type and
2394 * index are needed. For example, a
2395 * predefined `TITLE_AND_BODY` layout may usually have a TITLE placeholder
2396 * with index 0 and a BODY placeholder with index 0.
2397 */
2398 Placeholder layoutPlaceholder;
2399 /**
2400 * The object ID of the placeholder on a layout that will be applied
2401 * to a slide.
2402 */
2403 core.String layoutPlaceholderObjectId;
2404 /**
2405 * A user-supplied object ID for the placeholder identified above that to be
2406 * created onto a slide.
2407 *
2408 * If you specify an ID, it must be unique among all pages and page elements
2409 * in the presentation. The ID must start with an alphanumeric character or an
2410 * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
2411 * may include those as well as a hyphen or colon (matches regex
2412 * `[a-zA-Z0-9_-:]`).
2413 * The length of the ID must not be less than 5 or greater than 50.
2414 *
2415 * If you don't specify an ID, a unique one is generated.
2416 */
2417 core.String objectId;
2418
2419 LayoutPlaceholderIdMapping();
2420
2421 LayoutPlaceholderIdMapping.fromJson(core.Map _json) {
2422 if (_json.containsKey("layoutPlaceholder")) {
2423 layoutPlaceholder = new Placeholder.fromJson(_json["layoutPlaceholder"]);
2424 }
2425 if (_json.containsKey("layoutPlaceholderObjectId")) {
2426 layoutPlaceholderObjectId = _json["layoutPlaceholderObjectId"];
2427 }
2428 if (_json.containsKey("objectId")) {
2429 objectId = _json["objectId"];
2430 }
2431 }
2432
2433 core.Map toJson() {
2434 var _json = new core.Map();
2435 if (layoutPlaceholder != null) {
2436 _json["layoutPlaceholder"] = (layoutPlaceholder).toJson();
2437 }
2438 if (layoutPlaceholderObjectId != null) {
2439 _json["layoutPlaceholderObjectId"] = layoutPlaceholderObjectId;
2440 }
2441 if (objectId != null) {
2442 _json["objectId"] = objectId;
2443 }
2444 return _json;
2445 }
2446 }
2447
2448 /**
2323 * The properties of Page are only 2449 * The properties of Page are only
2324 * relevant for pages with page_type LAYOUT. 2450 * relevant for pages with page_type LAYOUT.
2325 */ 2451 */
2326 class LayoutProperties { 2452 class LayoutProperties {
2327 /** The human readable name of the layout in the presentation's locale. */ 2453 /** The human readable name of the layout in the presentation's locale. */
2328 core.String displayName; 2454 core.String displayName;
2329 /** The object ID of the master that this layout is based on. */ 2455 /** The object ID of the master that this layout is based on. */
2330 core.String masterObjectId; 2456 core.String masterObjectId;
2331 /** The name of the layout. */ 2457 /** The name of the layout. */
2332 core.String name; 2458 core.String name;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 2869
2744 core.Map toJson() { 2870 core.Map toJson() {
2745 var _json = new core.Map(); 2871 var _json = new core.Map();
2746 if (bulletStyle != null) { 2872 if (bulletStyle != null) {
2747 _json["bulletStyle"] = (bulletStyle).toJson(); 2873 _json["bulletStyle"] = (bulletStyle).toJson();
2748 } 2874 }
2749 return _json; 2875 return _json;
2750 } 2876 }
2751 } 2877 }
2752 2878
2879 /**
2880 * The properties of Page that are only
2881 * relevant for pages with page_type NOTES.
2882 */
2883 class NotesProperties {
2884 /**
2885 * The object ID of the shape on this notes page that contains the speaker
2886 * notes for the corresponding slide.
2887 * The actual shape may not always exist on the notes page. Inserting text
2888 * using this object ID will automatically create the shape. In this case, the
2889 * actual shape may have different object ID. The `GetPresentation` or
2890 * `GetPage` action will always return the latest object ID.
2891 */
2892 core.String speakerNotesObjectId;
2893
2894 NotesProperties();
2895
2896 NotesProperties.fromJson(core.Map _json) {
2897 if (_json.containsKey("speakerNotesObjectId")) {
2898 speakerNotesObjectId = _json["speakerNotesObjectId"];
2899 }
2900 }
2901
2902 core.Map toJson() {
2903 var _json = new core.Map();
2904 if (speakerNotesObjectId != null) {
2905 _json["speakerNotesObjectId"] = speakerNotesObjectId;
2906 }
2907 return _json;
2908 }
2909 }
2910
2753 /** A themeable solid color value. */ 2911 /** A themeable solid color value. */
2754 class OpaqueColor { 2912 class OpaqueColor {
2755 /** An opaque RGB color. */ 2913 /** An opaque RGB color. */
2756 RgbColor rgbColor; 2914 RgbColor rgbColor;
2757 /** 2915 /**
2758 * An opaque theme color. 2916 * An opaque theme color.
2759 * Possible string values are: 2917 * Possible string values are:
2760 * - "THEME_COLOR_TYPE_UNSPECIFIED" : Unspecified theme color. This value 2918 * - "THEME_COLOR_TYPE_UNSPECIFIED" : Unspecified theme color. This value
2761 * should not be used. 2919 * should not be used.
2762 * - "DARK1" : Represents the first dark color. 2920 * - "DARK1" : Represents the first dark color.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 _json["solidFill"] = (solidFill).toJson(); 3103 _json["solidFill"] = (solidFill).toJson();
2946 } 3104 }
2947 return _json; 3105 return _json;
2948 } 3106 }
2949 } 3107 }
2950 3108
2951 /** A page in a presentation. */ 3109 /** A page in a presentation. */
2952 class Page { 3110 class Page {
2953 /** Layout specific properties. Only set if page_type = LAYOUT. */ 3111 /** Layout specific properties. Only set if page_type = LAYOUT. */
2954 LayoutProperties layoutProperties; 3112 LayoutProperties layoutProperties;
3113 /** Notes specific properties. Only set if page_type = NOTES. */
3114 NotesProperties notesProperties;
2955 /** 3115 /**
2956 * The object ID for this page. Object IDs used by 3116 * The object ID for this page. Object IDs used by
2957 * Page and 3117 * Page and
2958 * PageElement share the same namespace. 3118 * PageElement share the same namespace.
2959 */ 3119 */
2960 core.String objectId; 3120 core.String objectId;
2961 /** The page elements rendered on the page. */ 3121 /** The page elements rendered on the page. */
2962 core.List<PageElement> pageElements; 3122 core.List<PageElement> pageElements;
2963 /** The properties of the page. */ 3123 /** The properties of the page. */
2964 PageProperties pageProperties; 3124 PageProperties pageProperties;
2965 /** 3125 /**
2966 * The type of the page. 3126 * The type of the page.
2967 * Possible string values are: 3127 * Possible string values are:
2968 * - "SLIDE" : A slide page. 3128 * - "SLIDE" : A slide page.
2969 * - "MASTER" : A master slide page. 3129 * - "MASTER" : A master slide page.
2970 * - "LAYOUT" : A layout page. 3130 * - "LAYOUT" : A layout page.
3131 * - "NOTES" : A notes page.
3132 * - "NOTES_MASTER" : A notes master page.
2971 */ 3133 */
2972 core.String pageType; 3134 core.String pageType;
2973 /** Slide specific properties. Only set if page_type = SLIDE. */ 3135 /** Slide specific properties. Only set if page_type = SLIDE. */
2974 SlideProperties slideProperties; 3136 SlideProperties slideProperties;
2975 3137
2976 Page(); 3138 Page();
2977 3139
2978 Page.fromJson(core.Map _json) { 3140 Page.fromJson(core.Map _json) {
2979 if (_json.containsKey("layoutProperties")) { 3141 if (_json.containsKey("layoutProperties")) {
2980 layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"] ); 3142 layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"] );
2981 } 3143 }
3144 if (_json.containsKey("notesProperties")) {
3145 notesProperties = new NotesProperties.fromJson(_json["notesProperties"]);
3146 }
2982 if (_json.containsKey("objectId")) { 3147 if (_json.containsKey("objectId")) {
2983 objectId = _json["objectId"]; 3148 objectId = _json["objectId"];
2984 } 3149 }
2985 if (_json.containsKey("pageElements")) { 3150 if (_json.containsKey("pageElements")) {
2986 pageElements = _json["pageElements"].map((value) => new PageElement.fromJs on(value)).toList(); 3151 pageElements = _json["pageElements"].map((value) => new PageElement.fromJs on(value)).toList();
2987 } 3152 }
2988 if (_json.containsKey("pageProperties")) { 3153 if (_json.containsKey("pageProperties")) {
2989 pageProperties = new PageProperties.fromJson(_json["pageProperties"]); 3154 pageProperties = new PageProperties.fromJson(_json["pageProperties"]);
2990 } 3155 }
2991 if (_json.containsKey("pageType")) { 3156 if (_json.containsKey("pageType")) {
2992 pageType = _json["pageType"]; 3157 pageType = _json["pageType"];
2993 } 3158 }
2994 if (_json.containsKey("slideProperties")) { 3159 if (_json.containsKey("slideProperties")) {
2995 slideProperties = new SlideProperties.fromJson(_json["slideProperties"]); 3160 slideProperties = new SlideProperties.fromJson(_json["slideProperties"]);
2996 } 3161 }
2997 } 3162 }
2998 3163
2999 core.Map toJson() { 3164 core.Map toJson() {
3000 var _json = new core.Map(); 3165 var _json = new core.Map();
3001 if (layoutProperties != null) { 3166 if (layoutProperties != null) {
3002 _json["layoutProperties"] = (layoutProperties).toJson(); 3167 _json["layoutProperties"] = (layoutProperties).toJson();
3003 } 3168 }
3169 if (notesProperties != null) {
3170 _json["notesProperties"] = (notesProperties).toJson();
3171 }
3004 if (objectId != null) { 3172 if (objectId != null) {
3005 _json["objectId"] = objectId; 3173 _json["objectId"] = objectId;
3006 } 3174 }
3007 if (pageElements != null) { 3175 if (pageElements != null) {
3008 _json["pageElements"] = pageElements.map((value) => (value).toJson()).toLi st(); 3176 _json["pageElements"] = pageElements.map((value) => (value).toJson()).toLi st();
3009 } 3177 }
3010 if (pageProperties != null) { 3178 if (pageProperties != null) {
3011 _json["pageProperties"] = (pageProperties).toJson(); 3179 _json["pageProperties"] = (pageProperties).toJson();
3012 } 3180 }
3013 if (pageType != null) { 3181 if (pageType != null) {
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 * for 3531 * for
3364 * LTR text, right-aligned otherwise. 3532 * LTR text, right-aligned otherwise.
3365 * - "CENTER" : The paragraph is centered. 3533 * - "CENTER" : The paragraph is centered.
3366 * - "END" : The paragraph is aligned to the end of the line. Right-aligned 3534 * - "END" : The paragraph is aligned to the end of the line. Right-aligned
3367 * for 3535 * for
3368 * LTR text, left-aligned otherwise. 3536 * LTR text, left-aligned otherwise.
3369 * - "JUSTIFIED" : The paragraph is justified. 3537 * - "JUSTIFIED" : The paragraph is justified.
3370 */ 3538 */
3371 core.String alignment; 3539 core.String alignment;
3372 /** 3540 /**
3373 * The text direction of this paragraph. This property is read-only. 3541 * The text direction of this paragraph. If unset, the value defaults to
3542 * LEFT_TO_RIGHT
3543 * since text direction is not inherited. This property is read-only.
3374 * Possible string values are: 3544 * Possible string values are:
3375 * - "TEXT_DIRECTION_UNSPECIFIED" : The text direction is inherited from the 3545 * - "TEXT_DIRECTION_UNSPECIFIED" : The text direction is inherited from the
3376 * parent. 3546 * parent.
3377 * - "LEFT_TO_RIGHT" : The text goes from left to right. 3547 * - "LEFT_TO_RIGHT" : The text goes from left to right.
3378 * - "RIGHT_TO_LEFT" : The text goes from right to left. 3548 * - "RIGHT_TO_LEFT" : The text goes from right to left.
3379 */ 3549 */
3380 core.String direction; 3550 core.String direction;
3381 /** 3551 /**
3382 * The amount indentation for the paragraph on the side that corresponds to 3552 * The amount indentation for the paragraph on the side that corresponds to
3383 * the end of the text, based on the current text direction. If unset, the 3553 * the end of the text, based on the current text direction. If unset, the
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
3570 * three purposes: 3740 * three purposes:
3571 * 3741 *
3572 * - Placeholder shapes on a master contain the default text styles and shape 3742 * - Placeholder shapes on a master contain the default text styles and shape
3573 * properties of all placeholder shapes on pages that use that master. 3743 * properties of all placeholder shapes on pages that use that master.
3574 * - The master page properties define the common page properties inherited by 3744 * - The master page properties define the common page properties inherited by
3575 * its layouts. 3745 * its layouts.
3576 * - Any other shapes on the master slide will appear on all slides using that 3746 * - Any other shapes on the master slide will appear on all slides using that
3577 * master, regardless of their layout. 3747 * master, regardless of their layout.
3578 */ 3748 */
3579 core.List<Page> masters; 3749 core.List<Page> masters;
3750 /**
3751 * The notes master in the presentation. It serves three purposes:
3752 *
3753 * - Placeholder shapes on a notes master contain the default text styles and
3754 * shape properties of all placeholder shapes on notes pages. Specifically,
3755 * a SLIDE_IMAGE placeholder shape is defined to contain the slide
3756 * thumbnail, and a BODY placeholder shape is defined to contain the speaker
3757 * notes.
3758 * - The notes master page properties define the common page properties
3759 * inherited by all notes pages.
3760 * - Any other shapes on the notes master will appear on all notes pages.
3761 *
3762 * The notes master is read-only.
3763 */
3764 Page notesMaster;
3580 /** The size of pages in the presentation. */ 3765 /** The size of pages in the presentation. */
3581 Size pageSize; 3766 Size pageSize;
3582 /** The ID of the presentation. */ 3767 /** The ID of the presentation. */
3583 core.String presentationId; 3768 core.String presentationId;
3584 /** 3769 /**
3585 * The slides in the presentation. 3770 * The slides in the presentation.
3586 * A slide inherits properties from a slide layout. 3771 * A slide inherits properties from a slide layout.
3587 */ 3772 */
3588 core.List<Page> slides; 3773 core.List<Page> slides;
3589 /** The title of the presentation. */ 3774 /** The title of the presentation. */
3590 core.String title; 3775 core.String title;
3591 3776
3592 Presentation(); 3777 Presentation();
3593 3778
3594 Presentation.fromJson(core.Map _json) { 3779 Presentation.fromJson(core.Map _json) {
3595 if (_json.containsKey("layouts")) { 3780 if (_json.containsKey("layouts")) {
3596 layouts = _json["layouts"].map((value) => new Page.fromJson(value)).toList (); 3781 layouts = _json["layouts"].map((value) => new Page.fromJson(value)).toList ();
3597 } 3782 }
3598 if (_json.containsKey("locale")) { 3783 if (_json.containsKey("locale")) {
3599 locale = _json["locale"]; 3784 locale = _json["locale"];
3600 } 3785 }
3601 if (_json.containsKey("masters")) { 3786 if (_json.containsKey("masters")) {
3602 masters = _json["masters"].map((value) => new Page.fromJson(value)).toList (); 3787 masters = _json["masters"].map((value) => new Page.fromJson(value)).toList ();
3603 } 3788 }
3789 if (_json.containsKey("notesMaster")) {
3790 notesMaster = new Page.fromJson(_json["notesMaster"]);
3791 }
3604 if (_json.containsKey("pageSize")) { 3792 if (_json.containsKey("pageSize")) {
3605 pageSize = new Size.fromJson(_json["pageSize"]); 3793 pageSize = new Size.fromJson(_json["pageSize"]);
3606 } 3794 }
3607 if (_json.containsKey("presentationId")) { 3795 if (_json.containsKey("presentationId")) {
3608 presentationId = _json["presentationId"]; 3796 presentationId = _json["presentationId"];
3609 } 3797 }
3610 if (_json.containsKey("slides")) { 3798 if (_json.containsKey("slides")) {
3611 slides = _json["slides"].map((value) => new Page.fromJson(value)).toList() ; 3799 slides = _json["slides"].map((value) => new Page.fromJson(value)).toList() ;
3612 } 3800 }
3613 if (_json.containsKey("title")) { 3801 if (_json.containsKey("title")) {
3614 title = _json["title"]; 3802 title = _json["title"];
3615 } 3803 }
3616 } 3804 }
3617 3805
3618 core.Map toJson() { 3806 core.Map toJson() {
3619 var _json = new core.Map(); 3807 var _json = new core.Map();
3620 if (layouts != null) { 3808 if (layouts != null) {
3621 _json["layouts"] = layouts.map((value) => (value).toJson()).toList(); 3809 _json["layouts"] = layouts.map((value) => (value).toJson()).toList();
3622 } 3810 }
3623 if (locale != null) { 3811 if (locale != null) {
3624 _json["locale"] = locale; 3812 _json["locale"] = locale;
3625 } 3813 }
3626 if (masters != null) { 3814 if (masters != null) {
3627 _json["masters"] = masters.map((value) => (value).toJson()).toList(); 3815 _json["masters"] = masters.map((value) => (value).toJson()).toList();
3628 } 3816 }
3817 if (notesMaster != null) {
3818 _json["notesMaster"] = (notesMaster).toJson();
3819 }
3629 if (pageSize != null) { 3820 if (pageSize != null) {
3630 _json["pageSize"] = (pageSize).toJson(); 3821 _json["pageSize"] = (pageSize).toJson();
3631 } 3822 }
3632 if (presentationId != null) { 3823 if (presentationId != null) {
3633 _json["presentationId"] = presentationId; 3824 _json["presentationId"] = presentationId;
3634 } 3825 }
3635 if (slides != null) { 3826 if (slides != null) {
3636 _json["slides"] = slides.map((value) => (value).toJson()).toList(); 3827 _json["slides"] = slides.map((value) => (value).toJson()).toList();
3637 } 3828 }
3638 if (title != null) { 3829 if (title != null) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 if (type != null) { 3889 if (type != null) {
3699 _json["type"] = type; 3890 _json["type"] = type;
3700 } 3891 }
3701 return _json; 3892 return _json;
3702 } 3893 }
3703 } 3894 }
3704 3895
3705 /** A recolor effect applied on an image. */ 3896 /** A recolor effect applied on an image. */
3706 class Recolor { 3897 class Recolor {
3707 /** 3898 /**
3899 * The name of the recolor effect.
3900 *
3901 * The name is determined from the `recolor_stops` by matching the gradient
3902 * against the colors in the page's current color scheme. This property is
3903 * read-only.
3904 * Possible string values are:
3905 * - "NONE" : No recolor effect. The default value.
3906 * - "LIGHT1" : A recolor effect that lightens the image using the page's
3907 * first available
3908 * color from its color scheme.
3909 * - "LIGHT2" : A recolor effect that lightens the image using the page's
3910 * second
3911 * available color from its color scheme.
3912 * - "LIGHT3" : A recolor effect that lightens the image using the page's
3913 * third available
3914 * color from its color scheme.
3915 * - "LIGHT4" : A recolor effect that lightens the image using the page's
3916 * forth available
3917 * color from its color scheme.
3918 * - "LIGHT5" : A recolor effect that lightens the image using the page's
3919 * fifth available
3920 * color from its color scheme.
3921 * - "LIGHT6" : A recolor effect that lightens the image using the page's
3922 * sixth available
3923 * color from its color scheme.
3924 * - "LIGHT7" : A recolor effect that lightens the image using the page's
3925 * seventh
3926 * available color from its color scheme.e.
3927 * - "LIGHT8" : A recolor effect that lightens the image using the page's
3928 * eighth
3929 * available color from its color scheme.
3930 * - "LIGHT9" : A recolor effect that lightens the image using the page's
3931 * ninth available
3932 * color from its color scheme.
3933 * - "LIGHT10" : A recolor effect that lightens the image using the page's
3934 * tenth available
3935 * color from its color scheme.
3936 * - "DARK1" : A recolor effect that darkens the image using the page's first
3937 * available
3938 * color from its color scheme.
3939 * - "DARK2" : A recolor effect that darkens the image using the page's second
3940 * available
3941 * color from its color scheme.
3942 * - "DARK3" : A recolor effect that darkens the image using the page's third
3943 * available
3944 * color from its color scheme.
3945 * - "DARK4" : A recolor effect that darkens the image using the page's fourth
3946 * available
3947 * color from its color scheme.
3948 * - "DARK5" : A recolor effect that darkens the image using the page's fifth
3949 * available
3950 * color from its color scheme.
3951 * - "DARK6" : A recolor effect that darkens the image using the page's sixth
3952 * available
3953 * color from its color scheme.
3954 * - "DARK7" : A recolor effect that darkens the image using the page's
3955 * seventh
3956 * available color from its color scheme.
3957 * - "DARK8" : A recolor effect that darkens the image using the page's eighth
3958 * available
3959 * color from its color scheme.
3960 * - "DARK9" : A recolor effect that darkens the image using the page's ninth
3961 * available
3962 * color from its color scheme.
3963 * - "DARK10" : A recolor effect that darkens the image using the page's tenth
3964 * available
3965 * color from its color scheme.
3966 * - "GRAYSCALE" : A recolor effect that recolors the image to grayscale.
3967 * - "NEGATIVE" : A recolor effect that recolors the image to negative
3968 * grayscale.
3969 * - "SEPIA" : A recolor effect that recolors the image using the sepia color.
3970 * - "CUSTOM" : Custom recolor effect. Refer to `recolor_stops` for the
3971 * concrete
3972 * gradient.
3973 */
3974 core.String name;
3975 /**
3708 * The recolor effect is represented by a gradient, which is a list of color 3976 * The recolor effect is represented by a gradient, which is a list of color
3709 * stops. This property is read-only. 3977 * stops.
3978 *
3979 * The colors in the gradient will replace the corresponding colors at
3980 * the same position in the color palette and apply to the image. This
3981 * property is read-only.
3710 */ 3982 */
3711 core.List<ColorStop> recolorStops; 3983 core.List<ColorStop> recolorStops;
3712 3984
3713 Recolor(); 3985 Recolor();
3714 3986
3715 Recolor.fromJson(core.Map _json) { 3987 Recolor.fromJson(core.Map _json) {
3988 if (_json.containsKey("name")) {
3989 name = _json["name"];
3990 }
3716 if (_json.containsKey("recolorStops")) { 3991 if (_json.containsKey("recolorStops")) {
3717 recolorStops = _json["recolorStops"].map((value) => new ColorStop.fromJson (value)).toList(); 3992 recolorStops = _json["recolorStops"].map((value) => new ColorStop.fromJson (value)).toList();
3718 } 3993 }
3719 } 3994 }
3720 3995
3721 core.Map toJson() { 3996 core.Map toJson() {
3722 var _json = new core.Map(); 3997 var _json = new core.Map();
3998 if (name != null) {
3999 _json["name"] = name;
4000 }
3723 if (recolorStops != null) { 4001 if (recolorStops != null) {
3724 _json["recolorStops"] = recolorStops.map((value) => (value).toJson()).toLi st(); 4002 _json["recolorStops"] = recolorStops.map((value) => (value).toJson()).toLi st();
3725 } 4003 }
3726 return _json; 4004 return _json;
3727 } 4005 }
3728 } 4006 }
3729 4007
3730 /** 4008 /**
3731 * Refreshes an embedded Google Sheets chart by replacing it with the latest 4009 * Refreshes an embedded Google Sheets chart by replacing it with the latest
3732 * version of the chart from Google Sheets. 4010 * version of the chart from Google Sheets.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
3832 4110
3833 core.Map toJson() { 4111 core.Map toJson() {
3834 var _json = new core.Map(); 4112 var _json = new core.Map();
3835 if (occurrencesChanged != null) { 4113 if (occurrencesChanged != null) {
3836 _json["occurrencesChanged"] = occurrencesChanged; 4114 _json["occurrencesChanged"] = occurrencesChanged;
3837 } 4115 }
3838 return _json; 4116 return _json;
3839 } 4117 }
3840 } 4118 }
3841 4119
4120 /**
4121 * Replaces all shapes that match the given criteria with the provided Google
4122 * Sheets chart. The chart will be scaled and centered to fit within the bounds
4123 * of the original shape.
4124 *
4125 * NOTE: Replacing shapes with a chart requires at least one of the
4126 * spreadsheets.readonly, spreadsheets, drive.readonly, or drive OAuth scopes.
4127 */
4128 class ReplaceAllShapesWithSheetsChartRequest {
4129 /** The ID of the specific chart in the Google Sheets spreadsheet. */
4130 core.int chartId;
4131 /**
4132 * The criteria that the shapes must match in order to be replaced. The
4133 * request will replace all of the shapes that contain the given text.
4134 */
4135 SubstringMatchCriteria containsText;
4136 /**
4137 * The mode with which the chart is linked to the source spreadsheet. When
4138 * not specified, the chart will be an image that is not linked.
4139 * Possible string values are:
4140 * - "NOT_LINKED_IMAGE" : The chart is not associated with the source
4141 * spreadsheet and cannot be
4142 * updated. A chart that is not linked will be inserted as an image.
4143 * - "LINKED" : Linking the chart allows it to be updated, and other
4144 * collaborators will
4145 * see a link to the spreadsheet.
4146 */
4147 core.String linkingMode;
4148 /** The ID of the Google Sheets spreadsheet that contains the chart. */
4149 core.String spreadsheetId;
4150
4151 ReplaceAllShapesWithSheetsChartRequest();
4152
4153 ReplaceAllShapesWithSheetsChartRequest.fromJson(core.Map _json) {
4154 if (_json.containsKey("chartId")) {
4155 chartId = _json["chartId"];
4156 }
4157 if (_json.containsKey("containsText")) {
4158 containsText = new SubstringMatchCriteria.fromJson(_json["containsText"]);
4159 }
4160 if (_json.containsKey("linkingMode")) {
4161 linkingMode = _json["linkingMode"];
4162 }
4163 if (_json.containsKey("spreadsheetId")) {
4164 spreadsheetId = _json["spreadsheetId"];
4165 }
4166 }
4167
4168 core.Map toJson() {
4169 var _json = new core.Map();
4170 if (chartId != null) {
4171 _json["chartId"] = chartId;
4172 }
4173 if (containsText != null) {
4174 _json["containsText"] = (containsText).toJson();
4175 }
4176 if (linkingMode != null) {
4177 _json["linkingMode"] = linkingMode;
4178 }
4179 if (spreadsheetId != null) {
4180 _json["spreadsheetId"] = spreadsheetId;
4181 }
4182 return _json;
4183 }
4184 }
4185
4186 /** The result of replacing shapes with a Google Sheets chart. */
4187 class ReplaceAllShapesWithSheetsChartResponse {
4188 /** The number of shapes replaced with charts. */
4189 core.int occurrencesChanged;
4190
4191 ReplaceAllShapesWithSheetsChartResponse();
4192
4193 ReplaceAllShapesWithSheetsChartResponse.fromJson(core.Map _json) {
4194 if (_json.containsKey("occurrencesChanged")) {
4195 occurrencesChanged = _json["occurrencesChanged"];
4196 }
4197 }
4198
4199 core.Map toJson() {
4200 var _json = new core.Map();
4201 if (occurrencesChanged != null) {
4202 _json["occurrencesChanged"] = occurrencesChanged;
4203 }
4204 return _json;
4205 }
4206 }
4207
3842 /** Replaces all instances of text matching a criteria with replace text. */ 4208 /** Replaces all instances of text matching a criteria with replace text. */
3843 class ReplaceAllTextRequest { 4209 class ReplaceAllTextRequest {
3844 /** Finds text in a shape matching this substring. */ 4210 /** Finds text in a shape matching this substring. */
3845 SubstringMatchCriteria containsText; 4211 SubstringMatchCriteria containsText;
3846 /** The text that will replace the matched text. */ 4212 /** The text that will replace the matched text. */
3847 core.String replaceText; 4213 core.String replaceText;
3848 4214
3849 ReplaceAllTextRequest(); 4215 ReplaceAllTextRequest();
3850 4216
3851 ReplaceAllTextRequest.fromJson(core.Map _json) { 4217 ReplaceAllTextRequest.fromJson(core.Map _json) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
3904 /** Creates an embedded Google Sheets chart. */ 4270 /** Creates an embedded Google Sheets chart. */
3905 CreateSheetsChartRequest createSheetsChart; 4271 CreateSheetsChartRequest createSheetsChart;
3906 /** Creates a new slide. */ 4272 /** Creates a new slide. */
3907 CreateSlideRequest createSlide; 4273 CreateSlideRequest createSlide;
3908 /** Creates a new table. */ 4274 /** Creates a new table. */
3909 CreateTableRequest createTable; 4275 CreateTableRequest createTable;
3910 /** Creates a video. */ 4276 /** Creates a video. */
3911 CreateVideoRequest createVideo; 4277 CreateVideoRequest createVideo;
3912 /** Deletes a page or page element from the presentation. */ 4278 /** Deletes a page or page element from the presentation. */
3913 DeleteObjectRequest deleteObject; 4279 DeleteObjectRequest deleteObject;
4280 /** Deletes bullets from paragraphs. */
4281 DeleteParagraphBulletsRequest deleteParagraphBullets;
3914 /** Deletes a column from a table. */ 4282 /** Deletes a column from a table. */
3915 DeleteTableColumnRequest deleteTableColumn; 4283 DeleteTableColumnRequest deleteTableColumn;
3916 /** Deletes a row from a table. */ 4284 /** Deletes a row from a table. */
3917 DeleteTableRowRequest deleteTableRow; 4285 DeleteTableRowRequest deleteTableRow;
3918 /** Deletes text from a shape or a table cell. */ 4286 /** Deletes text from a shape or a table cell. */
3919 DeleteTextRequest deleteText; 4287 DeleteTextRequest deleteText;
3920 /** Duplicates a slide or page element. */ 4288 /** Duplicates a slide or page element. */
3921 DuplicateObjectRequest duplicateObject; 4289 DuplicateObjectRequest duplicateObject;
3922 /** Inserts columns into a table. */ 4290 /** Inserts columns into a table. */
3923 InsertTableColumnsRequest insertTableColumns; 4291 InsertTableColumnsRequest insertTableColumns;
3924 /** Inserts rows into a table. */ 4292 /** Inserts rows into a table. */
3925 InsertTableRowsRequest insertTableRows; 4293 InsertTableRowsRequest insertTableRows;
3926 /** Inserts text into a shape or table cell. */ 4294 /** Inserts text into a shape or table cell. */
3927 InsertTextRequest insertText; 4295 InsertTextRequest insertText;
3928 /** Refreshes a Google Sheets chart. */ 4296 /** Refreshes a Google Sheets chart. */
3929 RefreshSheetsChartRequest refreshSheetsChart; 4297 RefreshSheetsChartRequest refreshSheetsChart;
3930 /** Replaces all shapes matching some criteria with an image. */ 4298 /** Replaces all shapes matching some criteria with an image. */
3931 ReplaceAllShapesWithImageRequest replaceAllShapesWithImage; 4299 ReplaceAllShapesWithImageRequest replaceAllShapesWithImage;
4300 /** Replaces all shapes matching some criteria with a Google Sheets chart. */
4301 ReplaceAllShapesWithSheetsChartRequest replaceAllShapesWithSheetsChart;
3932 /** Replaces all instances of specified text. */ 4302 /** Replaces all instances of specified text. */
3933 ReplaceAllTextRequest replaceAllText; 4303 ReplaceAllTextRequest replaceAllText;
3934 /** Updates the properties of an Image. */ 4304 /** Updates the properties of an Image. */
3935 UpdateImagePropertiesRequest updateImageProperties; 4305 UpdateImagePropertiesRequest updateImageProperties;
3936 /** Updates the properties of a Line. */ 4306 /** Updates the properties of a Line. */
3937 UpdateLinePropertiesRequest updateLineProperties; 4307 UpdateLinePropertiesRequest updateLineProperties;
3938 /** Updates the transform of a page element. */ 4308 /** Updates the transform of a page element. */
3939 UpdatePageElementTransformRequest updatePageElementTransform; 4309 UpdatePageElementTransformRequest updatePageElementTransform;
3940 /** Updates the properties of a Page. */ 4310 /** Updates the properties of a Page. */
3941 UpdatePagePropertiesRequest updatePageProperties; 4311 UpdatePagePropertiesRequest updatePageProperties;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
3973 } 4343 }
3974 if (_json.containsKey("createTable")) { 4344 if (_json.containsKey("createTable")) {
3975 createTable = new CreateTableRequest.fromJson(_json["createTable"]); 4345 createTable = new CreateTableRequest.fromJson(_json["createTable"]);
3976 } 4346 }
3977 if (_json.containsKey("createVideo")) { 4347 if (_json.containsKey("createVideo")) {
3978 createVideo = new CreateVideoRequest.fromJson(_json["createVideo"]); 4348 createVideo = new CreateVideoRequest.fromJson(_json["createVideo"]);
3979 } 4349 }
3980 if (_json.containsKey("deleteObject")) { 4350 if (_json.containsKey("deleteObject")) {
3981 deleteObject = new DeleteObjectRequest.fromJson(_json["deleteObject"]); 4351 deleteObject = new DeleteObjectRequest.fromJson(_json["deleteObject"]);
3982 } 4352 }
4353 if (_json.containsKey("deleteParagraphBullets")) {
4354 deleteParagraphBullets = new DeleteParagraphBulletsRequest.fromJson(_json[ "deleteParagraphBullets"]);
4355 }
3983 if (_json.containsKey("deleteTableColumn")) { 4356 if (_json.containsKey("deleteTableColumn")) {
3984 deleteTableColumn = new DeleteTableColumnRequest.fromJson(_json["deleteTab leColumn"]); 4357 deleteTableColumn = new DeleteTableColumnRequest.fromJson(_json["deleteTab leColumn"]);
3985 } 4358 }
3986 if (_json.containsKey("deleteTableRow")) { 4359 if (_json.containsKey("deleteTableRow")) {
3987 deleteTableRow = new DeleteTableRowRequest.fromJson(_json["deleteTableRow" ]); 4360 deleteTableRow = new DeleteTableRowRequest.fromJson(_json["deleteTableRow" ]);
3988 } 4361 }
3989 if (_json.containsKey("deleteText")) { 4362 if (_json.containsKey("deleteText")) {
3990 deleteText = new DeleteTextRequest.fromJson(_json["deleteText"]); 4363 deleteText = new DeleteTextRequest.fromJson(_json["deleteText"]);
3991 } 4364 }
3992 if (_json.containsKey("duplicateObject")) { 4365 if (_json.containsKey("duplicateObject")) {
3993 duplicateObject = new DuplicateObjectRequest.fromJson(_json["duplicateObje ct"]); 4366 duplicateObject = new DuplicateObjectRequest.fromJson(_json["duplicateObje ct"]);
3994 } 4367 }
3995 if (_json.containsKey("insertTableColumns")) { 4368 if (_json.containsKey("insertTableColumns")) {
3996 insertTableColumns = new InsertTableColumnsRequest.fromJson(_json["insertT ableColumns"]); 4369 insertTableColumns = new InsertTableColumnsRequest.fromJson(_json["insertT ableColumns"]);
3997 } 4370 }
3998 if (_json.containsKey("insertTableRows")) { 4371 if (_json.containsKey("insertTableRows")) {
3999 insertTableRows = new InsertTableRowsRequest.fromJson(_json["insertTableRo ws"]); 4372 insertTableRows = new InsertTableRowsRequest.fromJson(_json["insertTableRo ws"]);
4000 } 4373 }
4001 if (_json.containsKey("insertText")) { 4374 if (_json.containsKey("insertText")) {
4002 insertText = new InsertTextRequest.fromJson(_json["insertText"]); 4375 insertText = new InsertTextRequest.fromJson(_json["insertText"]);
4003 } 4376 }
4004 if (_json.containsKey("refreshSheetsChart")) { 4377 if (_json.containsKey("refreshSheetsChart")) {
4005 refreshSheetsChart = new RefreshSheetsChartRequest.fromJson(_json["refresh SheetsChart"]); 4378 refreshSheetsChart = new RefreshSheetsChartRequest.fromJson(_json["refresh SheetsChart"]);
4006 } 4379 }
4007 if (_json.containsKey("replaceAllShapesWithImage")) { 4380 if (_json.containsKey("replaceAllShapesWithImage")) {
4008 replaceAllShapesWithImage = new ReplaceAllShapesWithImageRequest.fromJson( _json["replaceAllShapesWithImage"]); 4381 replaceAllShapesWithImage = new ReplaceAllShapesWithImageRequest.fromJson( _json["replaceAllShapesWithImage"]);
4009 } 4382 }
4383 if (_json.containsKey("replaceAllShapesWithSheetsChart")) {
4384 replaceAllShapesWithSheetsChart = new ReplaceAllShapesWithSheetsChartReque st.fromJson(_json["replaceAllShapesWithSheetsChart"]);
4385 }
4010 if (_json.containsKey("replaceAllText")) { 4386 if (_json.containsKey("replaceAllText")) {
4011 replaceAllText = new ReplaceAllTextRequest.fromJson(_json["replaceAllText" ]); 4387 replaceAllText = new ReplaceAllTextRequest.fromJson(_json["replaceAllText" ]);
4012 } 4388 }
4013 if (_json.containsKey("updateImageProperties")) { 4389 if (_json.containsKey("updateImageProperties")) {
4014 updateImageProperties = new UpdateImagePropertiesRequest.fromJson(_json["u pdateImageProperties"]); 4390 updateImageProperties = new UpdateImagePropertiesRequest.fromJson(_json["u pdateImageProperties"]);
4015 } 4391 }
4016 if (_json.containsKey("updateLineProperties")) { 4392 if (_json.containsKey("updateLineProperties")) {
4017 updateLineProperties = new UpdateLinePropertiesRequest.fromJson(_json["upd ateLineProperties"]); 4393 updateLineProperties = new UpdateLinePropertiesRequest.fromJson(_json["upd ateLineProperties"]);
4018 } 4394 }
4019 if (_json.containsKey("updatePageElementTransform")) { 4395 if (_json.containsKey("updatePageElementTransform")) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
4061 } 4437 }
4062 if (createTable != null) { 4438 if (createTable != null) {
4063 _json["createTable"] = (createTable).toJson(); 4439 _json["createTable"] = (createTable).toJson();
4064 } 4440 }
4065 if (createVideo != null) { 4441 if (createVideo != null) {
4066 _json["createVideo"] = (createVideo).toJson(); 4442 _json["createVideo"] = (createVideo).toJson();
4067 } 4443 }
4068 if (deleteObject != null) { 4444 if (deleteObject != null) {
4069 _json["deleteObject"] = (deleteObject).toJson(); 4445 _json["deleteObject"] = (deleteObject).toJson();
4070 } 4446 }
4447 if (deleteParagraphBullets != null) {
4448 _json["deleteParagraphBullets"] = (deleteParagraphBullets).toJson();
4449 }
4071 if (deleteTableColumn != null) { 4450 if (deleteTableColumn != null) {
4072 _json["deleteTableColumn"] = (deleteTableColumn).toJson(); 4451 _json["deleteTableColumn"] = (deleteTableColumn).toJson();
4073 } 4452 }
4074 if (deleteTableRow != null) { 4453 if (deleteTableRow != null) {
4075 _json["deleteTableRow"] = (deleteTableRow).toJson(); 4454 _json["deleteTableRow"] = (deleteTableRow).toJson();
4076 } 4455 }
4077 if (deleteText != null) { 4456 if (deleteText != null) {
4078 _json["deleteText"] = (deleteText).toJson(); 4457 _json["deleteText"] = (deleteText).toJson();
4079 } 4458 }
4080 if (duplicateObject != null) { 4459 if (duplicateObject != null) {
4081 _json["duplicateObject"] = (duplicateObject).toJson(); 4460 _json["duplicateObject"] = (duplicateObject).toJson();
4082 } 4461 }
4083 if (insertTableColumns != null) { 4462 if (insertTableColumns != null) {
4084 _json["insertTableColumns"] = (insertTableColumns).toJson(); 4463 _json["insertTableColumns"] = (insertTableColumns).toJson();
4085 } 4464 }
4086 if (insertTableRows != null) { 4465 if (insertTableRows != null) {
4087 _json["insertTableRows"] = (insertTableRows).toJson(); 4466 _json["insertTableRows"] = (insertTableRows).toJson();
4088 } 4467 }
4089 if (insertText != null) { 4468 if (insertText != null) {
4090 _json["insertText"] = (insertText).toJson(); 4469 _json["insertText"] = (insertText).toJson();
4091 } 4470 }
4092 if (refreshSheetsChart != null) { 4471 if (refreshSheetsChart != null) {
4093 _json["refreshSheetsChart"] = (refreshSheetsChart).toJson(); 4472 _json["refreshSheetsChart"] = (refreshSheetsChart).toJson();
4094 } 4473 }
4095 if (replaceAllShapesWithImage != null) { 4474 if (replaceAllShapesWithImage != null) {
4096 _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson(); 4475 _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson();
4097 } 4476 }
4477 if (replaceAllShapesWithSheetsChart != null) {
4478 _json["replaceAllShapesWithSheetsChart"] = (replaceAllShapesWithSheetsChar t).toJson();
4479 }
4098 if (replaceAllText != null) { 4480 if (replaceAllText != null) {
4099 _json["replaceAllText"] = (replaceAllText).toJson(); 4481 _json["replaceAllText"] = (replaceAllText).toJson();
4100 } 4482 }
4101 if (updateImageProperties != null) { 4483 if (updateImageProperties != null) {
4102 _json["updateImageProperties"] = (updateImageProperties).toJson(); 4484 _json["updateImageProperties"] = (updateImageProperties).toJson();
4103 } 4485 }
4104 if (updateLineProperties != null) { 4486 if (updateLineProperties != null) {
4105 _json["updateLineProperties"] = (updateLineProperties).toJson(); 4487 _json["updateLineProperties"] = (updateLineProperties).toJson();
4106 } 4488 }
4107 if (updatePageElementTransform != null) { 4489 if (updatePageElementTransform != null) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
4145 CreateTableResponse createTable; 4527 CreateTableResponse createTable;
4146 /** The result of creating a video. */ 4528 /** The result of creating a video. */
4147 CreateVideoResponse createVideo; 4529 CreateVideoResponse createVideo;
4148 /** The result of duplicating an object. */ 4530 /** The result of duplicating an object. */
4149 DuplicateObjectResponse duplicateObject; 4531 DuplicateObjectResponse duplicateObject;
4150 /** 4532 /**
4151 * The result of replacing all shapes matching some criteria with an 4533 * The result of replacing all shapes matching some criteria with an
4152 * image. 4534 * image.
4153 */ 4535 */
4154 ReplaceAllShapesWithImageResponse replaceAllShapesWithImage; 4536 ReplaceAllShapesWithImageResponse replaceAllShapesWithImage;
4537 /**
4538 * The result of replacing all shapes matching some criteria with a Google
4539 * Sheets chart.
4540 */
4541 ReplaceAllShapesWithSheetsChartResponse replaceAllShapesWithSheetsChart;
4155 /** The result of replacing text. */ 4542 /** The result of replacing text. */
4156 ReplaceAllTextResponse replaceAllText; 4543 ReplaceAllTextResponse replaceAllText;
4157 4544
4158 Response(); 4545 Response();
4159 4546
4160 Response.fromJson(core.Map _json) { 4547 Response.fromJson(core.Map _json) {
4161 if (_json.containsKey("createImage")) { 4548 if (_json.containsKey("createImage")) {
4162 createImage = new CreateImageResponse.fromJson(_json["createImage"]); 4549 createImage = new CreateImageResponse.fromJson(_json["createImage"]);
4163 } 4550 }
4164 if (_json.containsKey("createLine")) { 4551 if (_json.containsKey("createLine")) {
(...skipping 13 matching lines...) Expand all
4178 } 4565 }
4179 if (_json.containsKey("createVideo")) { 4566 if (_json.containsKey("createVideo")) {
4180 createVideo = new CreateVideoResponse.fromJson(_json["createVideo"]); 4567 createVideo = new CreateVideoResponse.fromJson(_json["createVideo"]);
4181 } 4568 }
4182 if (_json.containsKey("duplicateObject")) { 4569 if (_json.containsKey("duplicateObject")) {
4183 duplicateObject = new DuplicateObjectResponse.fromJson(_json["duplicateObj ect"]); 4570 duplicateObject = new DuplicateObjectResponse.fromJson(_json["duplicateObj ect"]);
4184 } 4571 }
4185 if (_json.containsKey("replaceAllShapesWithImage")) { 4572 if (_json.containsKey("replaceAllShapesWithImage")) {
4186 replaceAllShapesWithImage = new ReplaceAllShapesWithImageResponse.fromJson (_json["replaceAllShapesWithImage"]); 4573 replaceAllShapesWithImage = new ReplaceAllShapesWithImageResponse.fromJson (_json["replaceAllShapesWithImage"]);
4187 } 4574 }
4575 if (_json.containsKey("replaceAllShapesWithSheetsChart")) {
4576 replaceAllShapesWithSheetsChart = new ReplaceAllShapesWithSheetsChartRespo nse.fromJson(_json["replaceAllShapesWithSheetsChart"]);
4577 }
4188 if (_json.containsKey("replaceAllText")) { 4578 if (_json.containsKey("replaceAllText")) {
4189 replaceAllText = new ReplaceAllTextResponse.fromJson(_json["replaceAllText "]); 4579 replaceAllText = new ReplaceAllTextResponse.fromJson(_json["replaceAllText "]);
4190 } 4580 }
4191 } 4581 }
4192 4582
4193 core.Map toJson() { 4583 core.Map toJson() {
4194 var _json = new core.Map(); 4584 var _json = new core.Map();
4195 if (createImage != null) { 4585 if (createImage != null) {
4196 _json["createImage"] = (createImage).toJson(); 4586 _json["createImage"] = (createImage).toJson();
4197 } 4587 }
(...skipping 14 matching lines...) Expand all
4212 } 4602 }
4213 if (createVideo != null) { 4603 if (createVideo != null) {
4214 _json["createVideo"] = (createVideo).toJson(); 4604 _json["createVideo"] = (createVideo).toJson();
4215 } 4605 }
4216 if (duplicateObject != null) { 4606 if (duplicateObject != null) {
4217 _json["duplicateObject"] = (duplicateObject).toJson(); 4607 _json["duplicateObject"] = (duplicateObject).toJson();
4218 } 4608 }
4219 if (replaceAllShapesWithImage != null) { 4609 if (replaceAllShapesWithImage != null) {
4220 _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson(); 4610 _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson();
4221 } 4611 }
4612 if (replaceAllShapesWithSheetsChart != null) {
4613 _json["replaceAllShapesWithSheetsChart"] = (replaceAllShapesWithSheetsChar t).toJson();
4614 }
4222 if (replaceAllText != null) { 4615 if (replaceAllText != null) {
4223 _json["replaceAllText"] = (replaceAllText).toJson(); 4616 _json["replaceAllText"] = (replaceAllText).toJson();
4224 } 4617 }
4225 return _json; 4618 return _json;
4226 } 4619 }
4227 } 4620 }
4228 4621
4229 /** An RGB color. */ 4622 /** An RGB color. */
4230 class RgbColor { 4623 class RgbColor {
4231 /** The blue component of the color, from 0.0 to 1.0. */ 4624 /** The blue component of the color, from 0.0 to 1.0. */
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
5012 5405
5013 /** 5406 /**
5014 * The properties of Page that are only 5407 * The properties of Page that are only
5015 * relevant for pages with page_type SLIDE. 5408 * relevant for pages with page_type SLIDE.
5016 */ 5409 */
5017 class SlideProperties { 5410 class SlideProperties {
5018 /** The object ID of the layout that this slide is based on. */ 5411 /** The object ID of the layout that this slide is based on. */
5019 core.String layoutObjectId; 5412 core.String layoutObjectId;
5020 /** The object ID of the master that this slide is based on. */ 5413 /** The object ID of the master that this slide is based on. */
5021 core.String masterObjectId; 5414 core.String masterObjectId;
5415 /**
5416 * The notes page that this slide is associated with. It defines the visual
5417 * appearance of a notes page when printing or exporting slides with speaker
5418 * notes. A notes page inherits properties from the
5419 * notes mater.
5420 * The placeholder shape with type BODY on the notes page contains the speaker
5421 * notes for this slide. The ID of this shape is identified by the
5422 * speaker notes object id field.
5423 * The notes page is read-only except for the text content and styles of the
5424 * speaker notes shape.
5425 */
5426 Page notesPage;
5022 5427
5023 SlideProperties(); 5428 SlideProperties();
5024 5429
5025 SlideProperties.fromJson(core.Map _json) { 5430 SlideProperties.fromJson(core.Map _json) {
5026 if (_json.containsKey("layoutObjectId")) { 5431 if (_json.containsKey("layoutObjectId")) {
5027 layoutObjectId = _json["layoutObjectId"]; 5432 layoutObjectId = _json["layoutObjectId"];
5028 } 5433 }
5029 if (_json.containsKey("masterObjectId")) { 5434 if (_json.containsKey("masterObjectId")) {
5030 masterObjectId = _json["masterObjectId"]; 5435 masterObjectId = _json["masterObjectId"];
5031 } 5436 }
5437 if (_json.containsKey("notesPage")) {
5438 notesPage = new Page.fromJson(_json["notesPage"]);
5439 }
5032 } 5440 }
5033 5441
5034 core.Map toJson() { 5442 core.Map toJson() {
5035 var _json = new core.Map(); 5443 var _json = new core.Map();
5036 if (layoutObjectId != null) { 5444 if (layoutObjectId != null) {
5037 _json["layoutObjectId"] = layoutObjectId; 5445 _json["layoutObjectId"] = layoutObjectId;
5038 } 5446 }
5039 if (masterObjectId != null) { 5447 if (masterObjectId != null) {
5040 _json["masterObjectId"] = masterObjectId; 5448 _json["masterObjectId"] = masterObjectId;
5041 } 5449 }
5450 if (notesPage != null) {
5451 _json["notesPage"] = (notesPage).toJson();
5452 }
5042 return _json; 5453 return _json;
5043 } 5454 }
5044 } 5455 }
5045 5456
5046 /** 5457 /**
5047 * A solid color fill. The page or page element is filled entirely with the 5458 * A solid color fill. The page or page element is filled entirely with the
5048 * specified color value. 5459 * specified color value.
5049 * 5460 *
5050 * If any field is unset, its value may be inherited from a parent placeholder 5461 * If any field is unset, its value may be inherited from a parent placeholder
5051 * if it exists. 5462 * if it exists.
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
6232 * cell. If present, the object_id must refer to a table. 6643 * cell. If present, the object_id must refer to a table.
6233 */ 6644 */
6234 TableCellLocation cellLocation; 6645 TableCellLocation cellLocation;
6235 /** 6646 /**
6236 * The fields that should be updated. 6647 * The fields that should be updated.
6237 * 6648 *
6238 * At least one field must be specified. The root `style` is implied and 6649 * At least one field must be specified. The root `style` is implied and
6239 * should not be specified. A single `"*"` can be used as short-hand for 6650 * should not be specified. A single `"*"` can be used as short-hand for
6240 * listing every field. 6651 * listing every field.
6241 * 6652 *
6242 * For example to update the text style to bold, set `fields` to `"bold"`. 6653 * For example, to update the text style to bold, set `fields` to `"bold"`.
6243 * 6654 *
6244 * To reset a property to its default value, 6655 * To reset a property to its default value, include its field name in the
6245 * include its field name in the field mask but leave the field itself unset. 6656 * field mask but leave the field itself unset.
6246 */ 6657 */
6247 core.String fields; 6658 core.String fields;
6248 /** The object ID of the shape or table with the text to be styled. */ 6659 /** The object ID of the shape or table with the text to be styled. */
6249 core.String objectId; 6660 core.String objectId;
6250 /** 6661 /**
6251 * The style(s) to set on the text. 6662 * The style(s) to set on the text.
6252 * 6663 *
6253 * If the value for a particular style matches that of the parent, that style 6664 * If the value for a particular style matches that of the parent, that style
6254 * will be set to inherit. 6665 * will be set to inherit.
6255 * 6666 *
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
6458 } 6869 }
6459 6870
6460 core.Map toJson() { 6871 core.Map toJson() {
6461 var _json = new core.Map(); 6872 var _json = new core.Map();
6462 if (renderedText != null) { 6873 if (renderedText != null) {
6463 _json["renderedText"] = renderedText; 6874 _json["renderedText"] = renderedText;
6464 } 6875 }
6465 return _json; 6876 return _json;
6466 } 6877 }
6467 } 6878 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/sheets/v4.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698