OLD | NEW |
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 var _response = _requester.request(_url, | 243 var _response = _requester.request(_url, |
244 "GET", | 244 "GET", |
245 body: _body, | 245 body: _body, |
246 queryParams: _queryParams, | 246 queryParams: _queryParams, |
247 uploadOptions: _uploadOptions, | 247 uploadOptions: _uploadOptions, |
248 uploadMedia: _uploadMedia, | 248 uploadMedia: _uploadMedia, |
249 downloadOptions: _downloadOptions); | 249 downloadOptions: _downloadOptions); |
250 return _response.then((data) => new Page.fromJson(data)); | 250 return _response.then((data) => new Page.fromJson(data)); |
251 } | 251 } |
252 | 252 |
| 253 /** |
| 254 * Generates a thumbnail of the latest version of the specified page in the |
| 255 * presentation and returns a URL to the thumbnail image. |
| 256 * |
| 257 * Request parameters: |
| 258 * |
| 259 * [presentationId] - The ID of the presentation to retrieve. |
| 260 * |
| 261 * [pageObjectId] - The object ID of the page whose thumbnail to retrieve. |
| 262 * |
| 263 * [thumbnailProperties_mimeType] - The optional mime type of the thumbnail |
| 264 * image. |
| 265 * |
| 266 * If you don't specify the mime type, the default mime type will be PNG. |
| 267 * Possible string values are: |
| 268 * - "PNG" : A PNG. |
| 269 * |
| 270 * [thumbnailProperties_thumbnailSize] - The optional thumbnail image size. |
| 271 * |
| 272 * If you don't specify the size, the server chooses a default size of the |
| 273 * image. |
| 274 * Possible string values are: |
| 275 * - "THUMBNAIL_SIZE_UNSPECIFIED" : A THUMBNAIL_SIZE_UNSPECIFIED. |
| 276 * - "LARGE" : A LARGE. |
| 277 * |
| 278 * Completes with a [Thumbnail]. |
| 279 * |
| 280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 281 * error. |
| 282 * |
| 283 * If the used [http.Client] completes with an error when making a REST call, |
| 284 * this method will complete with the same error. |
| 285 */ |
| 286 async.Future<Thumbnail> getThumbnail(core.String presentationId, core.String p
ageObjectId, {core.String thumbnailProperties_mimeType, core.String thumbnailPro
perties_thumbnailSize}) { |
| 287 var _url = null; |
| 288 var _queryParams = new core.Map(); |
| 289 var _uploadMedia = null; |
| 290 var _uploadOptions = null; |
| 291 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 292 var _body = null; |
| 293 |
| 294 if (presentationId == null) { |
| 295 throw new core.ArgumentError("Parameter presentationId is required."); |
| 296 } |
| 297 if (pageObjectId == null) { |
| 298 throw new core.ArgumentError("Parameter pageObjectId is required."); |
| 299 } |
| 300 if (thumbnailProperties_mimeType != null) { |
| 301 _queryParams["thumbnailProperties.mimeType"] = [thumbnailProperties_mimeTy
pe]; |
| 302 } |
| 303 if (thumbnailProperties_thumbnailSize != null) { |
| 304 _queryParams["thumbnailProperties.thumbnailSize"] = [thumbnailProperties_t
humbnailSize]; |
| 305 } |
| 306 |
| 307 _url = 'v1/presentations/' + commons.Escaper.ecapeVariable('$presentationId'
) + '/pages/' + commons.Escaper.ecapeVariable('$pageObjectId') + '/thumbnail'; |
| 308 |
| 309 var _response = _requester.request(_url, |
| 310 "GET", |
| 311 body: _body, |
| 312 queryParams: _queryParams, |
| 313 uploadOptions: _uploadOptions, |
| 314 uploadMedia: _uploadMedia, |
| 315 downloadOptions: _downloadOptions); |
| 316 return _response.then((data) => new Thumbnail.fromJson(data)); |
| 317 } |
| 318 |
253 } | 319 } |
254 | 320 |
255 | 321 |
256 | 322 |
257 /** | 323 /** |
258 * AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] | 324 * AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] |
259 * to transform source coordinates (x,y) into destination coordinates (x', y') | 325 * to transform source coordinates (x,y) into destination coordinates (x', y') |
260 * according to: | 326 * according to: |
261 * | 327 * |
262 * x' x = shear_y scale_y translate_y | 328 * x' x = shear_y scale_y translate_y |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 _json["type"] = type; | 453 _json["type"] = type; |
388 } | 454 } |
389 return _json; | 455 return _json; |
390 } | 456 } |
391 } | 457 } |
392 | 458 |
393 /** Request message for PresentationsService.BatchUpdatePresentation. */ | 459 /** Request message for PresentationsService.BatchUpdatePresentation. */ |
394 class BatchUpdatePresentationRequest { | 460 class BatchUpdatePresentationRequest { |
395 /** A list of updates to apply to the presentation. */ | 461 /** A list of updates to apply to the presentation. */ |
396 core.List<Request> requests; | 462 core.List<Request> requests; |
| 463 /** |
| 464 * Provides control over how write requests are executed, such as |
| 465 * conditionally updating the presentation. |
| 466 */ |
| 467 WriteControl writeControl; |
397 | 468 |
398 BatchUpdatePresentationRequest(); | 469 BatchUpdatePresentationRequest(); |
399 | 470 |
400 BatchUpdatePresentationRequest.fromJson(core.Map _json) { | 471 BatchUpdatePresentationRequest.fromJson(core.Map _json) { |
401 if (_json.containsKey("requests")) { | 472 if (_json.containsKey("requests")) { |
402 requests = _json["requests"].map((value) => new Request.fromJson(value)).t
oList(); | 473 requests = _json["requests"].map((value) => new Request.fromJson(value)).t
oList(); |
403 } | 474 } |
| 475 if (_json.containsKey("writeControl")) { |
| 476 writeControl = new WriteControl.fromJson(_json["writeControl"]); |
| 477 } |
404 } | 478 } |
405 | 479 |
406 core.Map toJson() { | 480 core.Map toJson() { |
407 var _json = new core.Map(); | 481 var _json = new core.Map(); |
408 if (requests != null) { | 482 if (requests != null) { |
409 _json["requests"] = requests.map((value) => (value).toJson()).toList(); | 483 _json["requests"] = requests.map((value) => (value).toJson()).toList(); |
410 } | 484 } |
| 485 if (writeControl != null) { |
| 486 _json["writeControl"] = (writeControl).toJson(); |
| 487 } |
411 return _json; | 488 return _json; |
412 } | 489 } |
413 } | 490 } |
414 | 491 |
415 /** Response message from a batch update. */ | 492 /** Response message from a batch update. */ |
416 class BatchUpdatePresentationResponse { | 493 class BatchUpdatePresentationResponse { |
417 /** The presentation the updates were applied to. */ | 494 /** The presentation the updates were applied to. */ |
418 core.String presentationId; | 495 core.String presentationId; |
419 /** | 496 /** |
420 * The reply of the updates. This maps 1:1 with the updates, although | 497 * The reply of the updates. This maps 1:1 with the updates, although |
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3125 /** | 3202 /** |
3126 * The type of the page. | 3203 * The type of the page. |
3127 * Possible string values are: | 3204 * Possible string values are: |
3128 * - "SLIDE" : A slide page. | 3205 * - "SLIDE" : A slide page. |
3129 * - "MASTER" : A master slide page. | 3206 * - "MASTER" : A master slide page. |
3130 * - "LAYOUT" : A layout page. | 3207 * - "LAYOUT" : A layout page. |
3131 * - "NOTES" : A notes page. | 3208 * - "NOTES" : A notes page. |
3132 * - "NOTES_MASTER" : A notes master page. | 3209 * - "NOTES_MASTER" : A notes master page. |
3133 */ | 3210 */ |
3134 core.String pageType; | 3211 core.String pageType; |
| 3212 /** |
| 3213 * The revision ID of the presentation containing this page. Can be used in |
| 3214 * update requests to assert that the presentation revision hasn't changed |
| 3215 * since the last read operation. Only populated if the user has edit access |
| 3216 * to the presentation. |
| 3217 * |
| 3218 * The format of the revision ID may change over time, so it should be treated |
| 3219 * opaquely. A returned revision ID is only guaranteed to be valid for 24 |
| 3220 * hours after it has been returned and cannot be shared across |
| 3221 * users. Callers can assume that if two revision IDs are equal then the |
| 3222 * presentation has not changed. |
| 3223 */ |
| 3224 core.String revisionId; |
3135 /** Slide specific properties. Only set if page_type = SLIDE. */ | 3225 /** Slide specific properties. Only set if page_type = SLIDE. */ |
3136 SlideProperties slideProperties; | 3226 SlideProperties slideProperties; |
3137 | 3227 |
3138 Page(); | 3228 Page(); |
3139 | 3229 |
3140 Page.fromJson(core.Map _json) { | 3230 Page.fromJson(core.Map _json) { |
3141 if (_json.containsKey("layoutProperties")) { | 3231 if (_json.containsKey("layoutProperties")) { |
3142 layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"]
); | 3232 layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"]
); |
3143 } | 3233 } |
3144 if (_json.containsKey("notesProperties")) { | 3234 if (_json.containsKey("notesProperties")) { |
3145 notesProperties = new NotesProperties.fromJson(_json["notesProperties"]); | 3235 notesProperties = new NotesProperties.fromJson(_json["notesProperties"]); |
3146 } | 3236 } |
3147 if (_json.containsKey("objectId")) { | 3237 if (_json.containsKey("objectId")) { |
3148 objectId = _json["objectId"]; | 3238 objectId = _json["objectId"]; |
3149 } | 3239 } |
3150 if (_json.containsKey("pageElements")) { | 3240 if (_json.containsKey("pageElements")) { |
3151 pageElements = _json["pageElements"].map((value) => new PageElement.fromJs
on(value)).toList(); | 3241 pageElements = _json["pageElements"].map((value) => new PageElement.fromJs
on(value)).toList(); |
3152 } | 3242 } |
3153 if (_json.containsKey("pageProperties")) { | 3243 if (_json.containsKey("pageProperties")) { |
3154 pageProperties = new PageProperties.fromJson(_json["pageProperties"]); | 3244 pageProperties = new PageProperties.fromJson(_json["pageProperties"]); |
3155 } | 3245 } |
3156 if (_json.containsKey("pageType")) { | 3246 if (_json.containsKey("pageType")) { |
3157 pageType = _json["pageType"]; | 3247 pageType = _json["pageType"]; |
3158 } | 3248 } |
| 3249 if (_json.containsKey("revisionId")) { |
| 3250 revisionId = _json["revisionId"]; |
| 3251 } |
3159 if (_json.containsKey("slideProperties")) { | 3252 if (_json.containsKey("slideProperties")) { |
3160 slideProperties = new SlideProperties.fromJson(_json["slideProperties"]); | 3253 slideProperties = new SlideProperties.fromJson(_json["slideProperties"]); |
3161 } | 3254 } |
3162 } | 3255 } |
3163 | 3256 |
3164 core.Map toJson() { | 3257 core.Map toJson() { |
3165 var _json = new core.Map(); | 3258 var _json = new core.Map(); |
3166 if (layoutProperties != null) { | 3259 if (layoutProperties != null) { |
3167 _json["layoutProperties"] = (layoutProperties).toJson(); | 3260 _json["layoutProperties"] = (layoutProperties).toJson(); |
3168 } | 3261 } |
3169 if (notesProperties != null) { | 3262 if (notesProperties != null) { |
3170 _json["notesProperties"] = (notesProperties).toJson(); | 3263 _json["notesProperties"] = (notesProperties).toJson(); |
3171 } | 3264 } |
3172 if (objectId != null) { | 3265 if (objectId != null) { |
3173 _json["objectId"] = objectId; | 3266 _json["objectId"] = objectId; |
3174 } | 3267 } |
3175 if (pageElements != null) { | 3268 if (pageElements != null) { |
3176 _json["pageElements"] = pageElements.map((value) => (value).toJson()).toLi
st(); | 3269 _json["pageElements"] = pageElements.map((value) => (value).toJson()).toLi
st(); |
3177 } | 3270 } |
3178 if (pageProperties != null) { | 3271 if (pageProperties != null) { |
3179 _json["pageProperties"] = (pageProperties).toJson(); | 3272 _json["pageProperties"] = (pageProperties).toJson(); |
3180 } | 3273 } |
3181 if (pageType != null) { | 3274 if (pageType != null) { |
3182 _json["pageType"] = pageType; | 3275 _json["pageType"] = pageType; |
3183 } | 3276 } |
| 3277 if (revisionId != null) { |
| 3278 _json["revisionId"] = revisionId; |
| 3279 } |
3184 if (slideProperties != null) { | 3280 if (slideProperties != null) { |
3185 _json["slideProperties"] = (slideProperties).toJson(); | 3281 _json["slideProperties"] = (slideProperties).toJson(); |
3186 } | 3282 } |
3187 return _json; | 3283 return _json; |
3188 } | 3284 } |
3189 } | 3285 } |
3190 | 3286 |
3191 /** The page background fill. */ | 3287 /** The page background fill. */ |
3192 class PageBackgroundFill { | 3288 class PageBackgroundFill { |
3193 /** | 3289 /** |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3743 * its layouts. | 3839 * its layouts. |
3744 * - Any other shapes on the master slide will appear on all slides using that | 3840 * - Any other shapes on the master slide will appear on all slides using that |
3745 * master, regardless of their layout. | 3841 * master, regardless of their layout. |
3746 */ | 3842 */ |
3747 core.List<Page> masters; | 3843 core.List<Page> masters; |
3748 /** | 3844 /** |
3749 * The notes master in the presentation. It serves three purposes: | 3845 * The notes master in the presentation. It serves three purposes: |
3750 * | 3846 * |
3751 * - Placeholder shapes on a notes master contain the default text styles and | 3847 * - Placeholder shapes on a notes master contain the default text styles and |
3752 * shape properties of all placeholder shapes on notes pages. Specifically, | 3848 * shape properties of all placeholder shapes on notes pages. Specifically, |
3753 * a SLIDE_IMAGE placeholder shape is defined to contain the slide | 3849 * a `SLIDE_IMAGE` placeholder shape contains the slide thumbnail, and a |
3754 * thumbnail, and a BODY placeholder shape is defined to contain the speaker | 3850 * `BODY` placeholder shape contains the speaker notes. |
3755 * notes. | |
3756 * - The notes master page properties define the common page properties | 3851 * - The notes master page properties define the common page properties |
3757 * inherited by all notes pages. | 3852 * inherited by all notes pages. |
3758 * - Any other shapes on the notes master will appear on all notes pages. | 3853 * - Any other shapes on the notes master will appear on all notes pages. |
3759 * | 3854 * |
3760 * The notes master is read-only. | 3855 * The notes master is read-only. |
3761 */ | 3856 */ |
3762 Page notesMaster; | 3857 Page notesMaster; |
3763 /** The size of pages in the presentation. */ | 3858 /** The size of pages in the presentation. */ |
3764 Size pageSize; | 3859 Size pageSize; |
3765 /** The ID of the presentation. */ | 3860 /** The ID of the presentation. */ |
3766 core.String presentationId; | 3861 core.String presentationId; |
3767 /** | 3862 /** |
| 3863 * The revision ID of the presentation. Can be used in update requests |
| 3864 * to assert that the presentation revision hasn't changed since the last |
| 3865 * read operation. Only populated if the user has edit access to the |
| 3866 * presentation. |
| 3867 * |
| 3868 * The format of the revision ID may change over time, so it should be treated |
| 3869 * opaquely. A returned revision ID is only guaranteed to be valid for 24 |
| 3870 * hours after it has been returned and cannot be shared across users. Callers |
| 3871 * can assume that if two revision IDs are equal then the presentation has not |
| 3872 * changed. |
| 3873 */ |
| 3874 core.String revisionId; |
| 3875 /** |
3768 * The slides in the presentation. | 3876 * The slides in the presentation. |
3769 * A slide inherits properties from a slide layout. | 3877 * A slide inherits properties from a slide layout. |
3770 */ | 3878 */ |
3771 core.List<Page> slides; | 3879 core.List<Page> slides; |
3772 /** The title of the presentation. */ | 3880 /** The title of the presentation. */ |
3773 core.String title; | 3881 core.String title; |
3774 | 3882 |
3775 Presentation(); | 3883 Presentation(); |
3776 | 3884 |
3777 Presentation.fromJson(core.Map _json) { | 3885 Presentation.fromJson(core.Map _json) { |
3778 if (_json.containsKey("layouts")) { | 3886 if (_json.containsKey("layouts")) { |
3779 layouts = _json["layouts"].map((value) => new Page.fromJson(value)).toList
(); | 3887 layouts = _json["layouts"].map((value) => new Page.fromJson(value)).toList
(); |
3780 } | 3888 } |
3781 if (_json.containsKey("locale")) { | 3889 if (_json.containsKey("locale")) { |
3782 locale = _json["locale"]; | 3890 locale = _json["locale"]; |
3783 } | 3891 } |
3784 if (_json.containsKey("masters")) { | 3892 if (_json.containsKey("masters")) { |
3785 masters = _json["masters"].map((value) => new Page.fromJson(value)).toList
(); | 3893 masters = _json["masters"].map((value) => new Page.fromJson(value)).toList
(); |
3786 } | 3894 } |
3787 if (_json.containsKey("notesMaster")) { | 3895 if (_json.containsKey("notesMaster")) { |
3788 notesMaster = new Page.fromJson(_json["notesMaster"]); | 3896 notesMaster = new Page.fromJson(_json["notesMaster"]); |
3789 } | 3897 } |
3790 if (_json.containsKey("pageSize")) { | 3898 if (_json.containsKey("pageSize")) { |
3791 pageSize = new Size.fromJson(_json["pageSize"]); | 3899 pageSize = new Size.fromJson(_json["pageSize"]); |
3792 } | 3900 } |
3793 if (_json.containsKey("presentationId")) { | 3901 if (_json.containsKey("presentationId")) { |
3794 presentationId = _json["presentationId"]; | 3902 presentationId = _json["presentationId"]; |
3795 } | 3903 } |
| 3904 if (_json.containsKey("revisionId")) { |
| 3905 revisionId = _json["revisionId"]; |
| 3906 } |
3796 if (_json.containsKey("slides")) { | 3907 if (_json.containsKey("slides")) { |
3797 slides = _json["slides"].map((value) => new Page.fromJson(value)).toList()
; | 3908 slides = _json["slides"].map((value) => new Page.fromJson(value)).toList()
; |
3798 } | 3909 } |
3799 if (_json.containsKey("title")) { | 3910 if (_json.containsKey("title")) { |
3800 title = _json["title"]; | 3911 title = _json["title"]; |
3801 } | 3912 } |
3802 } | 3913 } |
3803 | 3914 |
3804 core.Map toJson() { | 3915 core.Map toJson() { |
3805 var _json = new core.Map(); | 3916 var _json = new core.Map(); |
3806 if (layouts != null) { | 3917 if (layouts != null) { |
3807 _json["layouts"] = layouts.map((value) => (value).toJson()).toList(); | 3918 _json["layouts"] = layouts.map((value) => (value).toJson()).toList(); |
3808 } | 3919 } |
3809 if (locale != null) { | 3920 if (locale != null) { |
3810 _json["locale"] = locale; | 3921 _json["locale"] = locale; |
3811 } | 3922 } |
3812 if (masters != null) { | 3923 if (masters != null) { |
3813 _json["masters"] = masters.map((value) => (value).toJson()).toList(); | 3924 _json["masters"] = masters.map((value) => (value).toJson()).toList(); |
3814 } | 3925 } |
3815 if (notesMaster != null) { | 3926 if (notesMaster != null) { |
3816 _json["notesMaster"] = (notesMaster).toJson(); | 3927 _json["notesMaster"] = (notesMaster).toJson(); |
3817 } | 3928 } |
3818 if (pageSize != null) { | 3929 if (pageSize != null) { |
3819 _json["pageSize"] = (pageSize).toJson(); | 3930 _json["pageSize"] = (pageSize).toJson(); |
3820 } | 3931 } |
3821 if (presentationId != null) { | 3932 if (presentationId != null) { |
3822 _json["presentationId"] = presentationId; | 3933 _json["presentationId"] = presentationId; |
3823 } | 3934 } |
| 3935 if (revisionId != null) { |
| 3936 _json["revisionId"] = revisionId; |
| 3937 } |
3824 if (slides != null) { | 3938 if (slides != null) { |
3825 _json["slides"] = slides.map((value) => (value).toJson()).toList(); | 3939 _json["slides"] = slides.map((value) => (value).toJson()).toList(); |
3826 } | 3940 } |
3827 if (title != null) { | 3941 if (title != null) { |
3828 _json["title"] = title; | 3942 _json["title"] = title; |
3829 } | 3943 } |
3830 return _json; | 3944 return _json; |
3831 } | 3945 } |
3832 } | 3946 } |
3833 | 3947 |
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6155 * text is another link) unless different styles are being set in the same | 6269 * text is another link) unless different styles are being set in the same |
6156 * request. | 6270 * request. |
6157 */ | 6271 */ |
6158 Link link; | 6272 Link link; |
6159 /** Whether or not the text is in small capital letters. */ | 6273 /** Whether or not the text is in small capital letters. */ |
6160 core.bool smallCaps; | 6274 core.bool smallCaps; |
6161 /** Whether or not the text is struck through. */ | 6275 /** Whether or not the text is struck through. */ |
6162 core.bool strikethrough; | 6276 core.bool strikethrough; |
6163 /** Whether or not the text is underlined. */ | 6277 /** Whether or not the text is underlined. */ |
6164 core.bool underline; | 6278 core.bool underline; |
| 6279 /** |
| 6280 * The font family and rendered weight of the text. This property is |
| 6281 * read-only. |
| 6282 * |
| 6283 * This field is an extension of `font_family` meant to support explicit font |
| 6284 * weights without breaking backwards compatibility. As such, when reading the |
| 6285 * style of a range of text, the value of `weighted_font_family.font_family` |
| 6286 * will always be equal to that of `font_family`. |
| 6287 */ |
| 6288 WeightedFontFamily weightedFontFamily; |
6165 | 6289 |
6166 TextStyle(); | 6290 TextStyle(); |
6167 | 6291 |
6168 TextStyle.fromJson(core.Map _json) { | 6292 TextStyle.fromJson(core.Map _json) { |
6169 if (_json.containsKey("backgroundColor")) { | 6293 if (_json.containsKey("backgroundColor")) { |
6170 backgroundColor = new OptionalColor.fromJson(_json["backgroundColor"]); | 6294 backgroundColor = new OptionalColor.fromJson(_json["backgroundColor"]); |
6171 } | 6295 } |
6172 if (_json.containsKey("baselineOffset")) { | 6296 if (_json.containsKey("baselineOffset")) { |
6173 baselineOffset = _json["baselineOffset"]; | 6297 baselineOffset = _json["baselineOffset"]; |
6174 } | 6298 } |
(...skipping 17 matching lines...) Expand all Loading... |
6192 } | 6316 } |
6193 if (_json.containsKey("smallCaps")) { | 6317 if (_json.containsKey("smallCaps")) { |
6194 smallCaps = _json["smallCaps"]; | 6318 smallCaps = _json["smallCaps"]; |
6195 } | 6319 } |
6196 if (_json.containsKey("strikethrough")) { | 6320 if (_json.containsKey("strikethrough")) { |
6197 strikethrough = _json["strikethrough"]; | 6321 strikethrough = _json["strikethrough"]; |
6198 } | 6322 } |
6199 if (_json.containsKey("underline")) { | 6323 if (_json.containsKey("underline")) { |
6200 underline = _json["underline"]; | 6324 underline = _json["underline"]; |
6201 } | 6325 } |
| 6326 if (_json.containsKey("weightedFontFamily")) { |
| 6327 weightedFontFamily = new WeightedFontFamily.fromJson(_json["weightedFontFa
mily"]); |
| 6328 } |
6202 } | 6329 } |
6203 | 6330 |
6204 core.Map toJson() { | 6331 core.Map toJson() { |
6205 var _json = new core.Map(); | 6332 var _json = new core.Map(); |
6206 if (backgroundColor != null) { | 6333 if (backgroundColor != null) { |
6207 _json["backgroundColor"] = (backgroundColor).toJson(); | 6334 _json["backgroundColor"] = (backgroundColor).toJson(); |
6208 } | 6335 } |
6209 if (baselineOffset != null) { | 6336 if (baselineOffset != null) { |
6210 _json["baselineOffset"] = baselineOffset; | 6337 _json["baselineOffset"] = baselineOffset; |
6211 } | 6338 } |
(...skipping 17 matching lines...) Expand all Loading... |
6229 } | 6356 } |
6230 if (smallCaps != null) { | 6357 if (smallCaps != null) { |
6231 _json["smallCaps"] = smallCaps; | 6358 _json["smallCaps"] = smallCaps; |
6232 } | 6359 } |
6233 if (strikethrough != null) { | 6360 if (strikethrough != null) { |
6234 _json["strikethrough"] = strikethrough; | 6361 _json["strikethrough"] = strikethrough; |
6235 } | 6362 } |
6236 if (underline != null) { | 6363 if (underline != null) { |
6237 _json["underline"] = underline; | 6364 _json["underline"] = underline; |
6238 } | 6365 } |
| 6366 if (weightedFontFamily != null) { |
| 6367 _json["weightedFontFamily"] = (weightedFontFamily).toJson(); |
| 6368 } |
6239 return _json; | 6369 return _json; |
6240 } | 6370 } |
6241 } | 6371 } |
6242 | 6372 |
6243 /** A pair mapping a theme color type to the concrete color it represents. */ | 6373 /** A pair mapping a theme color type to the concrete color it represents. */ |
6244 class ThemeColorPair { | 6374 class ThemeColorPair { |
6245 /** The concrete color corresponding to the theme color type above. */ | 6375 /** The concrete color corresponding to the theme color type above. */ |
6246 RgbColor color; | 6376 RgbColor color; |
6247 /** | 6377 /** |
6248 * The type of the theme color. | 6378 * The type of the theme color. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6285 if (color != null) { | 6415 if (color != null) { |
6286 _json["color"] = (color).toJson(); | 6416 _json["color"] = (color).toJson(); |
6287 } | 6417 } |
6288 if (type != null) { | 6418 if (type != null) { |
6289 _json["type"] = type; | 6419 _json["type"] = type; |
6290 } | 6420 } |
6291 return _json; | 6421 return _json; |
6292 } | 6422 } |
6293 } | 6423 } |
6294 | 6424 |
| 6425 /** The thumbnail of a page. */ |
| 6426 class Thumbnail { |
| 6427 /** |
| 6428 * The content URL of the thumbnail image. |
| 6429 * |
| 6430 * The URL to the image has a default lifetime of 30 minutes. |
| 6431 * This URL is tagged with the account of the requester. Anyone with the URL |
| 6432 * effectively accesses the image as the original requester. Access to the |
| 6433 * image may be lost if the presentation's sharing settings change. |
| 6434 * The mime type of the thumbnail image is the same as specified in the |
| 6435 * `GetPageThumbnailRequest`. |
| 6436 */ |
| 6437 core.String contentUrl; |
| 6438 /** The positive height in pixels of the thumbnail image. */ |
| 6439 core.int height; |
| 6440 /** The positive width in pixels of the thumbnail image. */ |
| 6441 core.int width; |
| 6442 |
| 6443 Thumbnail(); |
| 6444 |
| 6445 Thumbnail.fromJson(core.Map _json) { |
| 6446 if (_json.containsKey("contentUrl")) { |
| 6447 contentUrl = _json["contentUrl"]; |
| 6448 } |
| 6449 if (_json.containsKey("height")) { |
| 6450 height = _json["height"]; |
| 6451 } |
| 6452 if (_json.containsKey("width")) { |
| 6453 width = _json["width"]; |
| 6454 } |
| 6455 } |
| 6456 |
| 6457 core.Map toJson() { |
| 6458 var _json = new core.Map(); |
| 6459 if (contentUrl != null) { |
| 6460 _json["contentUrl"] = contentUrl; |
| 6461 } |
| 6462 if (height != null) { |
| 6463 _json["height"] = height; |
| 6464 } |
| 6465 if (width != null) { |
| 6466 _json["width"] = width; |
| 6467 } |
| 6468 return _json; |
| 6469 } |
| 6470 } |
| 6471 |
6295 /** Update the properties of an Image. */ | 6472 /** Update the properties of an Image. */ |
6296 class UpdateImagePropertiesRequest { | 6473 class UpdateImagePropertiesRequest { |
6297 /** | 6474 /** |
6298 * The fields that should be updated. | 6475 * The fields that should be updated. |
6299 * | 6476 * |
6300 * At least one field must be specified. The root `imageProperties` is | 6477 * At least one field must be specified. The root `imageProperties` is |
6301 * implied and should not be specified. A single `"*"` can be used as | 6478 * implied and should not be specified. A single `"*"` can be used as |
6302 * short-hand for listing every field. | 6479 * short-hand for listing every field. |
6303 * | 6480 * |
6304 * For example to update the image outline color, set `fields` to | 6481 * For example to update the image outline color, set `fields` to |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6489 } | 6666 } |
6490 } | 6667 } |
6491 | 6668 |
6492 /** | 6669 /** |
6493 * Updates the styling for all of the paragraphs within a Shape or Table that | 6670 * Updates the styling for all of the paragraphs within a Shape or Table that |
6494 * overlap with the given text index range. | 6671 * overlap with the given text index range. |
6495 */ | 6672 */ |
6496 class UpdateParagraphStyleRequest { | 6673 class UpdateParagraphStyleRequest { |
6497 /** | 6674 /** |
6498 * The location of the cell in the table containing the paragraph(s) to | 6675 * The location of the cell in the table containing the paragraph(s) to |
6499 * style. If object_id refers to a table, cell_location must have a value. | 6676 * style. If `object_id` refers to a table, `cell_location` must have a value. |
6500 * Otherwise, it must not. | 6677 * Otherwise, it must not. |
6501 */ | 6678 */ |
6502 TableCellLocation cellLocation; | 6679 TableCellLocation cellLocation; |
6503 /** | 6680 /** |
6504 * The fields that should be updated. | 6681 * The fields that should be updated. |
6505 * | 6682 * |
6506 * At least one field must be specified. The root `style` is implied and | 6683 * At least one field must be specified. The root `style` is implied and |
6507 * should not be specified. A single `"*"` can be used as short-hand for | 6684 * should not be specified. A single `"*"` can be used as short-hand for |
6508 * listing every field. | 6685 * listing every field. |
6509 * | 6686 * |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6712 } | 6889 } |
6713 } | 6890 } |
6714 | 6891 |
6715 /** | 6892 /** |
6716 * Update the styling of text in a Shape or | 6893 * Update the styling of text in a Shape or |
6717 * Table. | 6894 * Table. |
6718 */ | 6895 */ |
6719 class UpdateTextStyleRequest { | 6896 class UpdateTextStyleRequest { |
6720 /** | 6897 /** |
6721 * The location of the cell in the table containing the text to style. If | 6898 * The location of the cell in the table containing the text to style. If |
6722 * object_id refers to a table, cell_location must have a value. Otherwise, it | 6899 * `object_id` refers to a table, `cell_location` must have a value. |
6723 * must not. | 6900 * Otherwise, it must not. |
6724 */ | 6901 */ |
6725 TableCellLocation cellLocation; | 6902 TableCellLocation cellLocation; |
6726 /** | 6903 /** |
6727 * The fields that should be updated. | 6904 * The fields that should be updated. |
6728 * | 6905 * |
6729 * At least one field must be specified. The root `style` is implied and | 6906 * At least one field must be specified. The root `style` is implied and |
6730 * should not be specified. A single `"*"` can be used as short-hand for | 6907 * should not be specified. A single `"*"` can be used as short-hand for |
6731 * listing every field. | 6908 * listing every field. |
6732 * | 6909 * |
6733 * For example, to update the text style to bold, set `fields` to `"bold"`. | 6910 * For example, to update the text style to bold, set `fields` to `"bold"`. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6925 | 7102 |
6926 core.Map toJson() { | 7103 core.Map toJson() { |
6927 var _json = new core.Map(); | 7104 var _json = new core.Map(); |
6928 if (outline != null) { | 7105 if (outline != null) { |
6929 _json["outline"] = (outline).toJson(); | 7106 _json["outline"] = (outline).toJson(); |
6930 } | 7107 } |
6931 return _json; | 7108 return _json; |
6932 } | 7109 } |
6933 } | 7110 } |
6934 | 7111 |
| 7112 /** Represents a font family and weight used to style a TextRun. */ |
| 7113 class WeightedFontFamily { |
| 7114 /** |
| 7115 * The font family of the text. |
| 7116 * |
| 7117 * The font family can be any font from the Font menu in Slides or from |
| 7118 * [Google Fonts] (https://fonts.google.com/). If the font name is |
| 7119 * unrecognized, the text is rendered in `Arial`. |
| 7120 */ |
| 7121 core.String fontFamily; |
| 7122 /** |
| 7123 * The rendered weight of the text. This field can have any value that is a |
| 7124 * multiple of 100 between 100 and 900, inclusive. This range corresponds to |
| 7125 * only the numerical values described in the "Cascading Style Sheets Level |
| 7126 * 2 Revision 1 (CSS 2.1) Specification", |
| 7127 * [section 15.6](https://www.w3.org/TR/CSS21/fonts.html#font-boldness). The |
| 7128 * non-numerical values in the specification are disallowed. Weights greater |
| 7129 * than or equal to 700 are considered bold, and weights less than 700 are |
| 7130 * not bold. The default value is `400` ("normal"). |
| 7131 */ |
| 7132 core.int weight; |
| 7133 |
| 7134 WeightedFontFamily(); |
| 7135 |
| 7136 WeightedFontFamily.fromJson(core.Map _json) { |
| 7137 if (_json.containsKey("fontFamily")) { |
| 7138 fontFamily = _json["fontFamily"]; |
| 7139 } |
| 7140 if (_json.containsKey("weight")) { |
| 7141 weight = _json["weight"]; |
| 7142 } |
| 7143 } |
| 7144 |
| 7145 core.Map toJson() { |
| 7146 var _json = new core.Map(); |
| 7147 if (fontFamily != null) { |
| 7148 _json["fontFamily"] = fontFamily; |
| 7149 } |
| 7150 if (weight != null) { |
| 7151 _json["weight"] = weight; |
| 7152 } |
| 7153 return _json; |
| 7154 } |
| 7155 } |
| 7156 |
6935 /** | 7157 /** |
6936 * A PageElement kind representing | 7158 * A PageElement kind representing |
6937 * word art. | 7159 * word art. |
6938 */ | 7160 */ |
6939 class WordArt { | 7161 class WordArt { |
6940 /** The text rendered as word art. */ | 7162 /** The text rendered as word art. */ |
6941 core.String renderedText; | 7163 core.String renderedText; |
6942 | 7164 |
6943 WordArt(); | 7165 WordArt(); |
6944 | 7166 |
6945 WordArt.fromJson(core.Map _json) { | 7167 WordArt.fromJson(core.Map _json) { |
6946 if (_json.containsKey("renderedText")) { | 7168 if (_json.containsKey("renderedText")) { |
6947 renderedText = _json["renderedText"]; | 7169 renderedText = _json["renderedText"]; |
6948 } | 7170 } |
6949 } | 7171 } |
6950 | 7172 |
6951 core.Map toJson() { | 7173 core.Map toJson() { |
6952 var _json = new core.Map(); | 7174 var _json = new core.Map(); |
6953 if (renderedText != null) { | 7175 if (renderedText != null) { |
6954 _json["renderedText"] = renderedText; | 7176 _json["renderedText"] = renderedText; |
6955 } | 7177 } |
6956 return _json; | 7178 return _json; |
6957 } | 7179 } |
6958 } | 7180 } |
| 7181 |
| 7182 /** Provides control over how write requests are executed. */ |
| 7183 class WriteControl { |
| 7184 /** |
| 7185 * The revision ID of the presentation required for the write request. If |
| 7186 * specified and the `required_revision_id` doesn't exactly match the |
| 7187 * presentation's current `revision_id`, the request will not be processed and |
| 7188 * will return a 400 bad request error. |
| 7189 */ |
| 7190 core.String requiredRevisionId; |
| 7191 |
| 7192 WriteControl(); |
| 7193 |
| 7194 WriteControl.fromJson(core.Map _json) { |
| 7195 if (_json.containsKey("requiredRevisionId")) { |
| 7196 requiredRevisionId = _json["requiredRevisionId"]; |
| 7197 } |
| 7198 } |
| 7199 |
| 7200 core.Map toJson() { |
| 7201 var _json = new core.Map(); |
| 7202 if (requiredRevisionId != null) { |
| 7203 _json["requiredRevisionId"] = requiredRevisionId; |
| 7204 } |
| 7205 return _json; |
| 7206 } |
| 7207 } |
OLD | NEW |