| 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.playmoviespartner.v1; | 3 library googleapis.playmoviespartner.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; | 
| 11 | 11 | 
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 
| 13     ApiRequestError, DetailedApiRequestError; | 13     ApiRequestError, DetailedApiRequestError; | 
| 14 | 14 | 
| 15 const core.String USER_AGENT = 'dart-api-client playmoviespartner/v1'; | 15 const core.String USER_AGENT = 'dart-api-client playmoviespartner/v1'; | 
| 16 | 16 | 
| 17 /** | 17 /** | 
| 18  * An API providing Google Play Movies Partners a way to get the delivery status | 18  * Lets Google Play Movies Partners get the delivery status of their titles. | 
| 19  * of their titles. |  | 
| 20  */ | 19  */ | 
| 21 class PlaymoviespartnerApi { | 20 class PlaymoviespartnerApi { | 
|  | 21   /** View the digital assets you publish on Google Play Movies and TV */ | 
|  | 22   static const PlaymoviesPartnerReadonlyScope = "https://www.googleapis.com/auth
      /playmovies_partner.readonly"; | 
|  | 23 | 
| 22 | 24 | 
| 23   final commons.ApiRequester _requester; | 25   final commons.ApiRequester _requester; | 
| 24 | 26 | 
|  | 27   AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 
|  | 28 | 
| 25   PlaymoviespartnerApi(http.Client client, {core.String rootUrl: "https://playmo
      viespartner.googleapis.com/", core.String servicePath: ""}) : | 29   PlaymoviespartnerApi(http.Client client, {core.String rootUrl: "https://playmo
      viespartner.googleapis.com/", core.String servicePath: ""}) : | 
| 26       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); | 30       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); | 
| 27 } | 31 } | 
|  | 32 | 
|  | 33 | 
|  | 34 class AccountsResourceApi { | 
|  | 35   final commons.ApiRequester _requester; | 
|  | 36 | 
|  | 37   AccountsAvailsResourceApi get avails => new AccountsAvailsResourceApi(_request
      er); | 
|  | 38   AccountsExperienceLocalesResourceApi get experienceLocales => new AccountsExpe
      rienceLocalesResourceApi(_requester); | 
|  | 39   AccountsOrdersResourceApi get orders => new AccountsOrdersResourceApi(_request
      er); | 
|  | 40   AccountsStoreInfosResourceApi get storeInfos => new AccountsStoreInfosResource
      Api(_requester); | 
|  | 41 | 
|  | 42   AccountsResourceApi(commons.ApiRequester client) : | 
|  | 43       _requester = client; | 
|  | 44 } | 
|  | 45 | 
|  | 46 | 
|  | 47 class AccountsAvailsResourceApi { | 
|  | 48   final commons.ApiRequester _requester; | 
|  | 49 | 
|  | 50   AccountsAvailsResourceApi(commons.ApiRequester client) : | 
|  | 51       _requester = client; | 
|  | 52 | 
|  | 53   /** | 
|  | 54    * List Avails owned or managed by the partner. See _Authentication and | 
|  | 55    * Authorization rules_ and _List methods rules_ for more information about | 
|  | 56    * this method. | 
|  | 57    * | 
|  | 58    * Request parameters: | 
|  | 59    * | 
|  | 60    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 61    * field. | 
|  | 62    * | 
|  | 63    * [pageSize] - See _List methods rules_ for info about this field. | 
|  | 64    * | 
|  | 65    * [pageToken] - See _List methods rules_ for info about this field. | 
|  | 66    * | 
|  | 67    * [pphNames] - See _List methods rules_ for info about this field. | 
|  | 68    * | 
|  | 69    * [studioNames] - See _List methods rules_ for info about this field. | 
|  | 70    * | 
|  | 71    * [title] - Filter Avails that match a case-insensitive substring of the | 
|  | 72    * default Title name. | 
|  | 73    * | 
|  | 74    * [territories] - Filter Avails that match (case-insensitive) any of the | 
|  | 75    * given country codes, using the "ISO 3166-1 alpha-2" format (examples: "US", | 
|  | 76    * "us", "Us"). | 
|  | 77    * | 
|  | 78    * [altId] - Filter Avails that match a case-insensitive, partner-specific | 
|  | 79    * custom id. | 
|  | 80    * | 
|  | 81    * [videoIds] - Filter Avails that match any of the given `video_id`s. | 
|  | 82    * | 
|  | 83    * Completes with a [ListAvailsResponse]. | 
|  | 84    * | 
|  | 85    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 86    * error. | 
|  | 87    * | 
|  | 88    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 89    * this method will complete with the same error. | 
|  | 90    */ | 
|  | 91   async.Future<ListAvailsResponse> list(core.String accountId, {core.int pageSiz
      e, core.String pageToken, core.List<core.String> pphNames, core.List<core.String
      > studioNames, core.String title, core.List<core.String> territories, core.Strin
      g altId, core.List<core.String> videoIds}) { | 
|  | 92     var _url = null; | 
|  | 93     var _queryParams = new core.Map(); | 
|  | 94     var _uploadMedia = null; | 
|  | 95     var _uploadOptions = null; | 
|  | 96     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 97     var _body = null; | 
|  | 98 | 
|  | 99     if (accountId == null) { | 
|  | 100       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 101     } | 
|  | 102     if (pageSize != null) { | 
|  | 103       _queryParams["pageSize"] = ["${pageSize}"]; | 
|  | 104     } | 
|  | 105     if (pageToken != null) { | 
|  | 106       _queryParams["pageToken"] = [pageToken]; | 
|  | 107     } | 
|  | 108     if (pphNames != null) { | 
|  | 109       _queryParams["pphNames"] = pphNames; | 
|  | 110     } | 
|  | 111     if (studioNames != null) { | 
|  | 112       _queryParams["studioNames"] = studioNames; | 
|  | 113     } | 
|  | 114     if (title != null) { | 
|  | 115       _queryParams["title"] = [title]; | 
|  | 116     } | 
|  | 117     if (territories != null) { | 
|  | 118       _queryParams["territories"] = territories; | 
|  | 119     } | 
|  | 120     if (altId != null) { | 
|  | 121       _queryParams["altId"] = [altId]; | 
|  | 122     } | 
|  | 123     if (videoIds != null) { | 
|  | 124       _queryParams["videoIds"] = videoIds; | 
|  | 125     } | 
|  | 126 | 
|  | 127     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
      ls'; | 
|  | 128 | 
|  | 129     var _response = _requester.request(_url, | 
|  | 130                                        "GET", | 
|  | 131                                        body: _body, | 
|  | 132                                        queryParams: _queryParams, | 
|  | 133                                        uploadOptions: _uploadOptions, | 
|  | 134                                        uploadMedia: _uploadMedia, | 
|  | 135                                        downloadOptions: _downloadOptions); | 
|  | 136     return _response.then((data) => new ListAvailsResponse.fromJson(data)); | 
|  | 137   } | 
|  | 138 | 
|  | 139 } | 
|  | 140 | 
|  | 141 | 
|  | 142 class AccountsExperienceLocalesResourceApi { | 
|  | 143   final commons.ApiRequester _requester; | 
|  | 144 | 
|  | 145   AccountsExperienceLocalesResourceApi(commons.ApiRequester client) : | 
|  | 146       _requester = client; | 
|  | 147 | 
|  | 148   /** | 
|  | 149    * Get an ExperienceLocale given its id. See _Authentication and Authorization | 
|  | 150    * rules_ and _Get methods rules_ for more information about this method. | 
|  | 151    * | 
|  | 152    * Request parameters: | 
|  | 153    * | 
|  | 154    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 155    * field. | 
|  | 156    * | 
|  | 157    * [elId] - REQUIRED. ExperienceLocale ID, as defined by Google. | 
|  | 158    * | 
|  | 159    * Completes with a [ExperienceLocale]. | 
|  | 160    * | 
|  | 161    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 162    * error. | 
|  | 163    * | 
|  | 164    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 165    * this method will complete with the same error. | 
|  | 166    */ | 
|  | 167   async.Future<ExperienceLocale> get(core.String accountId, core.String elId) { | 
|  | 168     var _url = null; | 
|  | 169     var _queryParams = new core.Map(); | 
|  | 170     var _uploadMedia = null; | 
|  | 171     var _uploadOptions = null; | 
|  | 172     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 173     var _body = null; | 
|  | 174 | 
|  | 175     if (accountId == null) { | 
|  | 176       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 177     } | 
|  | 178     if (elId == null) { | 
|  | 179       throw new core.ArgumentError("Parameter elId is required."); | 
|  | 180     } | 
|  | 181 | 
|  | 182     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/expe
      rienceLocales/' + commons.Escaper.ecapeVariable('$elId'); | 
|  | 183 | 
|  | 184     var _response = _requester.request(_url, | 
|  | 185                                        "GET", | 
|  | 186                                        body: _body, | 
|  | 187                                        queryParams: _queryParams, | 
|  | 188                                        uploadOptions: _uploadOptions, | 
|  | 189                                        uploadMedia: _uploadMedia, | 
|  | 190                                        downloadOptions: _downloadOptions); | 
|  | 191     return _response.then((data) => new ExperienceLocale.fromJson(data)); | 
|  | 192   } | 
|  | 193 | 
|  | 194   /** | 
|  | 195    * List ExperienceLocales owned or managed by the partner. See _Authentication | 
|  | 196    * and Authorization rules_ and _List methods rules_ for more information | 
|  | 197    * about this method. | 
|  | 198    * | 
|  | 199    * Request parameters: | 
|  | 200    * | 
|  | 201    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 202    * field. | 
|  | 203    * | 
|  | 204    * [pageSize] - See _List methods rules_ for info about this field. | 
|  | 205    * | 
|  | 206    * [pageToken] - See _List methods rules_ for info about this field. | 
|  | 207    * | 
|  | 208    * [pphNames] - See _List methods rules_ for info about this field. | 
|  | 209    * | 
|  | 210    * [studioNames] - See _List methods rules_ for info about this field. | 
|  | 211    * | 
|  | 212    * [titleLevelEidr] - Filter ExperienceLocales that match a given title-level | 
|  | 213    * EIDR. | 
|  | 214    * | 
|  | 215    * [editLevelEidr] - Filter ExperienceLocales that match a given edit-level | 
|  | 216    * EIDR. | 
|  | 217    * | 
|  | 218    * [status] - Filter ExperienceLocales that match one of the given status. | 
|  | 219    * | 
|  | 220    * [customId] - Filter ExperienceLocales that match a case-insensitive, | 
|  | 221    * partner-specific custom id. | 
|  | 222    * | 
|  | 223    * [altCutId] - Filter ExperienceLocales that match a case-insensitive, | 
|  | 224    * partner-specific Alternative Cut ID. | 
|  | 225    * | 
|  | 226    * Completes with a [ListExperienceLocalesResponse]. | 
|  | 227    * | 
|  | 228    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 229    * error. | 
|  | 230    * | 
|  | 231    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 232    * this method will complete with the same error. | 
|  | 233    */ | 
|  | 234   async.Future<ListExperienceLocalesResponse> list(core.String accountId, {core.
      int pageSize, core.String pageToken, core.List<core.String> pphNames, core.List<
      core.String> studioNames, core.String titleLevelEidr, core.String editLevelEidr,
       core.List<core.String> status, core.String customId, core.String altCutId}) { | 
|  | 235     var _url = null; | 
|  | 236     var _queryParams = new core.Map(); | 
|  | 237     var _uploadMedia = null; | 
|  | 238     var _uploadOptions = null; | 
|  | 239     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 240     var _body = null; | 
|  | 241 | 
|  | 242     if (accountId == null) { | 
|  | 243       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 244     } | 
|  | 245     if (pageSize != null) { | 
|  | 246       _queryParams["pageSize"] = ["${pageSize}"]; | 
|  | 247     } | 
|  | 248     if (pageToken != null) { | 
|  | 249       _queryParams["pageToken"] = [pageToken]; | 
|  | 250     } | 
|  | 251     if (pphNames != null) { | 
|  | 252       _queryParams["pphNames"] = pphNames; | 
|  | 253     } | 
|  | 254     if (studioNames != null) { | 
|  | 255       _queryParams["studioNames"] = studioNames; | 
|  | 256     } | 
|  | 257     if (titleLevelEidr != null) { | 
|  | 258       _queryParams["titleLevelEidr"] = [titleLevelEidr]; | 
|  | 259     } | 
|  | 260     if (editLevelEidr != null) { | 
|  | 261       _queryParams["editLevelEidr"] = [editLevelEidr]; | 
|  | 262     } | 
|  | 263     if (status != null) { | 
|  | 264       _queryParams["status"] = status; | 
|  | 265     } | 
|  | 266     if (customId != null) { | 
|  | 267       _queryParams["customId"] = [customId]; | 
|  | 268     } | 
|  | 269     if (altCutId != null) { | 
|  | 270       _queryParams["altCutId"] = [altCutId]; | 
|  | 271     } | 
|  | 272 | 
|  | 273     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/expe
      rienceLocales'; | 
|  | 274 | 
|  | 275     var _response = _requester.request(_url, | 
|  | 276                                        "GET", | 
|  | 277                                        body: _body, | 
|  | 278                                        queryParams: _queryParams, | 
|  | 279                                        uploadOptions: _uploadOptions, | 
|  | 280                                        uploadMedia: _uploadMedia, | 
|  | 281                                        downloadOptions: _downloadOptions); | 
|  | 282     return _response.then((data) => new ListExperienceLocalesResponse.fromJson(d
      ata)); | 
|  | 283   } | 
|  | 284 | 
|  | 285 } | 
|  | 286 | 
|  | 287 | 
|  | 288 class AccountsOrdersResourceApi { | 
|  | 289   final commons.ApiRequester _requester; | 
|  | 290 | 
|  | 291   AccountsOrdersResourceApi(commons.ApiRequester client) : | 
|  | 292       _requester = client; | 
|  | 293 | 
|  | 294   /** | 
|  | 295    * Get an Order given its id. See _Authentication and Authorization rules_ and | 
|  | 296    * _Get methods rules_ for more information about this method. | 
|  | 297    * | 
|  | 298    * Request parameters: | 
|  | 299    * | 
|  | 300    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 301    * field. | 
|  | 302    * | 
|  | 303    * [orderId] - REQUIRED. Order ID. | 
|  | 304    * | 
|  | 305    * Completes with a [Order]. | 
|  | 306    * | 
|  | 307    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 308    * error. | 
|  | 309    * | 
|  | 310    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 311    * this method will complete with the same error. | 
|  | 312    */ | 
|  | 313   async.Future<Order> get(core.String accountId, core.String orderId) { | 
|  | 314     var _url = null; | 
|  | 315     var _queryParams = new core.Map(); | 
|  | 316     var _uploadMedia = null; | 
|  | 317     var _uploadOptions = null; | 
|  | 318     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 319     var _body = null; | 
|  | 320 | 
|  | 321     if (accountId == null) { | 
|  | 322       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 323     } | 
|  | 324     if (orderId == null) { | 
|  | 325       throw new core.ArgumentError("Parameter orderId is required."); | 
|  | 326     } | 
|  | 327 | 
|  | 328     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
      rs/' + commons.Escaper.ecapeVariable('$orderId'); | 
|  | 329 | 
|  | 330     var _response = _requester.request(_url, | 
|  | 331                                        "GET", | 
|  | 332                                        body: _body, | 
|  | 333                                        queryParams: _queryParams, | 
|  | 334                                        uploadOptions: _uploadOptions, | 
|  | 335                                        uploadMedia: _uploadMedia, | 
|  | 336                                        downloadOptions: _downloadOptions); | 
|  | 337     return _response.then((data) => new Order.fromJson(data)); | 
|  | 338   } | 
|  | 339 | 
|  | 340   /** | 
|  | 341    * List Orders owned or managed by the partner. See _Authentication and | 
|  | 342    * Authorization rules_ and _List methods rules_ for more information about | 
|  | 343    * this method. | 
|  | 344    * | 
|  | 345    * Request parameters: | 
|  | 346    * | 
|  | 347    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 348    * field. | 
|  | 349    * | 
|  | 350    * [pageSize] - See _List methods rules_ for info about this field. | 
|  | 351    * | 
|  | 352    * [pageToken] - See _List methods rules_ for info about this field. | 
|  | 353    * | 
|  | 354    * [pphNames] - See _List methods rules_ for info about this field. | 
|  | 355    * | 
|  | 356    * [studioNames] - See _List methods rules_ for info about this field. | 
|  | 357    * | 
|  | 358    * [name] - Filter Orders that match a title name (case-insensitive, | 
|  | 359    * sub-string match). | 
|  | 360    * | 
|  | 361    * [status] - Filter Orders that match one of the given status. | 
|  | 362    * | 
|  | 363    * [customId] - Filter Orders that match a case-insensitive, partner-specific | 
|  | 364    * custom id. | 
|  | 365    * | 
|  | 366    * Completes with a [ListOrdersResponse]. | 
|  | 367    * | 
|  | 368    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 369    * error. | 
|  | 370    * | 
|  | 371    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 372    * this method will complete with the same error. | 
|  | 373    */ | 
|  | 374   async.Future<ListOrdersResponse> list(core.String accountId, {core.int pageSiz
      e, core.String pageToken, core.List<core.String> pphNames, core.List<core.String
      > studioNames, core.String name, core.List<core.String> status, core.String cust
      omId}) { | 
|  | 375     var _url = null; | 
|  | 376     var _queryParams = new core.Map(); | 
|  | 377     var _uploadMedia = null; | 
|  | 378     var _uploadOptions = null; | 
|  | 379     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 380     var _body = null; | 
|  | 381 | 
|  | 382     if (accountId == null) { | 
|  | 383       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 384     } | 
|  | 385     if (pageSize != null) { | 
|  | 386       _queryParams["pageSize"] = ["${pageSize}"]; | 
|  | 387     } | 
|  | 388     if (pageToken != null) { | 
|  | 389       _queryParams["pageToken"] = [pageToken]; | 
|  | 390     } | 
|  | 391     if (pphNames != null) { | 
|  | 392       _queryParams["pphNames"] = pphNames; | 
|  | 393     } | 
|  | 394     if (studioNames != null) { | 
|  | 395       _queryParams["studioNames"] = studioNames; | 
|  | 396     } | 
|  | 397     if (name != null) { | 
|  | 398       _queryParams["name"] = [name]; | 
|  | 399     } | 
|  | 400     if (status != null) { | 
|  | 401       _queryParams["status"] = status; | 
|  | 402     } | 
|  | 403     if (customId != null) { | 
|  | 404       _queryParams["customId"] = [customId]; | 
|  | 405     } | 
|  | 406 | 
|  | 407     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
      rs'; | 
|  | 408 | 
|  | 409     var _response = _requester.request(_url, | 
|  | 410                                        "GET", | 
|  | 411                                        body: _body, | 
|  | 412                                        queryParams: _queryParams, | 
|  | 413                                        uploadOptions: _uploadOptions, | 
|  | 414                                        uploadMedia: _uploadMedia, | 
|  | 415                                        downloadOptions: _downloadOptions); | 
|  | 416     return _response.then((data) => new ListOrdersResponse.fromJson(data)); | 
|  | 417   } | 
|  | 418 | 
|  | 419 } | 
|  | 420 | 
|  | 421 | 
|  | 422 class AccountsStoreInfosResourceApi { | 
|  | 423   final commons.ApiRequester _requester; | 
|  | 424 | 
|  | 425   AccountsStoreInfosCountryResourceApi get country => new AccountsStoreInfosCoun
      tryResourceApi(_requester); | 
|  | 426 | 
|  | 427   AccountsStoreInfosResourceApi(commons.ApiRequester client) : | 
|  | 428       _requester = client; | 
|  | 429 | 
|  | 430   /** | 
|  | 431    * List StoreInfos owned or managed by the partner. See _Authentication and | 
|  | 432    * Authorization rules_ and _List methods rules_ for more information about | 
|  | 433    * this method. | 
|  | 434    * | 
|  | 435    * Request parameters: | 
|  | 436    * | 
|  | 437    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 438    * field. | 
|  | 439    * | 
|  | 440    * [pageSize] - See _List methods rules_ for info about this field. | 
|  | 441    * | 
|  | 442    * [pageToken] - See _List methods rules_ for info about this field. | 
|  | 443    * | 
|  | 444    * [pphNames] - See _List methods rules_ for info about this field. | 
|  | 445    * | 
|  | 446    * [studioNames] - See _List methods rules_ for info about this field. | 
|  | 447    * | 
|  | 448    * [videoId] - Filter StoreInfos that match a given `video_id`. NOTE: this | 
|  | 449    * field is deprecated and will be removed on V2; `video_ids` should be used | 
|  | 450    * instead. | 
|  | 451    * | 
|  | 452    * [countries] - Filter StoreInfos that match (case-insensitive) any of the | 
|  | 453    * given country codes, using the "ISO 3166-1 alpha-2" format (examples: "US", | 
|  | 454    * "us", "Us"). | 
|  | 455    * | 
|  | 456    * [name] - Filter StoreInfos that match a case-insensitive substring of the | 
|  | 457    * default name. | 
|  | 458    * | 
|  | 459    * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. | 
|  | 460    * | 
|  | 461    * Completes with a [ListStoreInfosResponse]. | 
|  | 462    * | 
|  | 463    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 464    * error. | 
|  | 465    * | 
|  | 466    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 467    * this method will complete with the same error. | 
|  | 468    */ | 
|  | 469   async.Future<ListStoreInfosResponse> list(core.String accountId, {core.int pag
      eSize, core.String pageToken, core.List<core.String> pphNames, core.List<core.St
      ring> studioNames, core.String videoId, core.List<core.String> countries, core.S
      tring name, core.List<core.String> videoIds}) { | 
|  | 470     var _url = null; | 
|  | 471     var _queryParams = new core.Map(); | 
|  | 472     var _uploadMedia = null; | 
|  | 473     var _uploadOptions = null; | 
|  | 474     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 475     var _body = null; | 
|  | 476 | 
|  | 477     if (accountId == null) { | 
|  | 478       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 479     } | 
|  | 480     if (pageSize != null) { | 
|  | 481       _queryParams["pageSize"] = ["${pageSize}"]; | 
|  | 482     } | 
|  | 483     if (pageToken != null) { | 
|  | 484       _queryParams["pageToken"] = [pageToken]; | 
|  | 485     } | 
|  | 486     if (pphNames != null) { | 
|  | 487       _queryParams["pphNames"] = pphNames; | 
|  | 488     } | 
|  | 489     if (studioNames != null) { | 
|  | 490       _queryParams["studioNames"] = studioNames; | 
|  | 491     } | 
|  | 492     if (videoId != null) { | 
|  | 493       _queryParams["videoId"] = [videoId]; | 
|  | 494     } | 
|  | 495     if (countries != null) { | 
|  | 496       _queryParams["countries"] = countries; | 
|  | 497     } | 
|  | 498     if (name != null) { | 
|  | 499       _queryParams["name"] = [name]; | 
|  | 500     } | 
|  | 501     if (videoIds != null) { | 
|  | 502       _queryParams["videoIds"] = videoIds; | 
|  | 503     } | 
|  | 504 | 
|  | 505     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
      eInfos'; | 
|  | 506 | 
|  | 507     var _response = _requester.request(_url, | 
|  | 508                                        "GET", | 
|  | 509                                        body: _body, | 
|  | 510                                        queryParams: _queryParams, | 
|  | 511                                        uploadOptions: _uploadOptions, | 
|  | 512                                        uploadMedia: _uploadMedia, | 
|  | 513                                        downloadOptions: _downloadOptions); | 
|  | 514     return _response.then((data) => new ListStoreInfosResponse.fromJson(data)); | 
|  | 515   } | 
|  | 516 | 
|  | 517 } | 
|  | 518 | 
|  | 519 | 
|  | 520 class AccountsStoreInfosCountryResourceApi { | 
|  | 521   final commons.ApiRequester _requester; | 
|  | 522 | 
|  | 523   AccountsStoreInfosCountryResourceApi(commons.ApiRequester client) : | 
|  | 524       _requester = client; | 
|  | 525 | 
|  | 526   /** | 
|  | 527    * Get a StoreInfo given its video id and country. See _Authentication and | 
|  | 528    * Authorization rules_ and _Get methods rules_ for more information about | 
|  | 529    * this method. | 
|  | 530    * | 
|  | 531    * Request parameters: | 
|  | 532    * | 
|  | 533    * [accountId] - REQUIRED. See _General rules_ for more information about this | 
|  | 534    * field. | 
|  | 535    * | 
|  | 536    * [videoId] - REQUIRED. Video ID. | 
|  | 537    * | 
|  | 538    * [country] - REQUIRED. Edit country. | 
|  | 539    * | 
|  | 540    * Completes with a [StoreInfo]. | 
|  | 541    * | 
|  | 542    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 543    * error. | 
|  | 544    * | 
|  | 545    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 546    * this method will complete with the same error. | 
|  | 547    */ | 
|  | 548   async.Future<StoreInfo> get(core.String accountId, core.String videoId, core.S
      tring country) { | 
|  | 549     var _url = null; | 
|  | 550     var _queryParams = new core.Map(); | 
|  | 551     var _uploadMedia = null; | 
|  | 552     var _uploadOptions = null; | 
|  | 553     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 554     var _body = null; | 
|  | 555 | 
|  | 556     if (accountId == null) { | 
|  | 557       throw new core.ArgumentError("Parameter accountId is required."); | 
|  | 558     } | 
|  | 559     if (videoId == null) { | 
|  | 560       throw new core.ArgumentError("Parameter videoId is required."); | 
|  | 561     } | 
|  | 562     if (country == null) { | 
|  | 563       throw new core.ArgumentError("Parameter country is required."); | 
|  | 564     } | 
|  | 565 | 
|  | 566     _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
      eInfos/' + commons.Escaper.ecapeVariable('$videoId') + '/country/' + commons.Esc
      aper.ecapeVariable('$country'); | 
|  | 567 | 
|  | 568     var _response = _requester.request(_url, | 
|  | 569                                        "GET", | 
|  | 570                                        body: _body, | 
|  | 571                                        queryParams: _queryParams, | 
|  | 572                                        uploadOptions: _uploadOptions, | 
|  | 573                                        uploadMedia: _uploadMedia, | 
|  | 574                                        downloadOptions: _downloadOptions); | 
|  | 575     return _response.then((data) => new StoreInfo.fromJson(data)); | 
|  | 576   } | 
|  | 577 | 
|  | 578 } | 
|  | 579 | 
|  | 580 | 
|  | 581 | 
|  | 582 /** | 
|  | 583  * An Avail describes the Availability Window of a specific Edit in a given | 
|  | 584  * country, which means the period Google is allowed to sell or rent the Edit. | 
|  | 585  * Avails are exposed in EMA format Version 1.6b (available at | 
|  | 586  * http://www.movielabs.com/md/avails/) Studios can see the Avails for the | 
|  | 587  * Titles they own. Post-production houses cannot see any Avails. | 
|  | 588  */ | 
|  | 589 class Avail { | 
|  | 590   /** | 
|  | 591    * Other identifier referring to the Edit, as defined by partner. Example: | 
|  | 592    * "GOOGLER_2006" | 
|  | 593    */ | 
|  | 594   core.String altId; | 
|  | 595   /** | 
|  | 596    * Communicating an exempt category as defined by FCC regulations. It is not | 
|  | 597    * required for non-US Avails. Example: "1" | 
|  | 598    */ | 
|  | 599   core.String captionExemption; | 
|  | 600   /** Communicating if caption file will be delivered. */ | 
|  | 601   core.bool captionIncluded; | 
|  | 602   /** | 
|  | 603    * Title Identifier. This should be the Title Level EIDR. Example: | 
|  | 604    * "10.5240/1489-49A2-3956-4B2D-FE16-5". | 
|  | 605    */ | 
|  | 606   core.String contentId; | 
|  | 607   /** | 
|  | 608    * The name of the studio that owns the Edit referred in the Avail. This is | 
|  | 609    * the equivalent of `studio_name` in other resources, but it follows the EMA | 
|  | 610    * nomenclature. Example: "Google Films". | 
|  | 611    */ | 
|  | 612   core.String displayName; | 
|  | 613   /** | 
|  | 614    * Manifestation Identifier. This should be the Manifestation Level EIDR. | 
|  | 615    * Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" | 
|  | 616    */ | 
|  | 617   core.String encodeId; | 
|  | 618   /** | 
|  | 619    * End of term in YYYY-MM-DD format in the timezone of the country of the | 
|  | 620    * Avail. "Open" if no end date is available. Example: "2019-02-17" | 
|  | 621    */ | 
|  | 622   core.String end; | 
|  | 623   /** | 
|  | 624    * Other identifier referring to the episode, as defined by partner. Only | 
|  | 625    * available on TV avails. Example: "rs_googlers_s1_3". | 
|  | 626    */ | 
|  | 627   core.String episodeAltId; | 
|  | 628   /** | 
|  | 629    * The number assigned to the episode within a season. Only available on TV | 
|  | 630    * Avails. Example: "3". | 
|  | 631    */ | 
|  | 632   core.String episodeNumber; | 
|  | 633   /** | 
|  | 634    * OPTIONAL.TV Only. Title used by involved parties to refer to this episode. | 
|  | 635    * Only available on TV Avails. Example: "Coding at Google". | 
|  | 636    */ | 
|  | 637   core.String episodeTitleInternalAlias; | 
|  | 638   /** | 
|  | 639    * Indicates the format profile covered by the transaction. | 
|  | 640    * Possible string values are: | 
|  | 641    * - "FORMAT_PROFILE_UNSPECIFIED" : A FORMAT_PROFILE_UNSPECIFIED. | 
|  | 642    * - "SD" : A SD. | 
|  | 643    * - "HD" : A HD. | 
|  | 644    */ | 
|  | 645   core.String formatProfile; | 
|  | 646   /** | 
|  | 647    * Type of transaction. | 
|  | 648    * Possible string values are: | 
|  | 649    * - "LICENSE_TYPE_UNSPECIFIED" : A LICENSE_TYPE_UNSPECIFIED. | 
|  | 650    * - "EST" : A EST. | 
|  | 651    * - "VOD" : A VOD. | 
|  | 652    * - "SVOD" : A SVOD. | 
|  | 653    */ | 
|  | 654   core.String licenseType; | 
|  | 655   /** | 
|  | 656    * Name of the post-production houses that manage the Avail. Not part of EMA | 
|  | 657    * Specs. | 
|  | 658    */ | 
|  | 659   core.List<core.String> pphNames; | 
|  | 660   /** | 
|  | 661    * Type of pricing that should be applied to this Avail based on how the | 
|  | 662    * partner classify them. Example: "Tier", "WSP", "SRP", or "Category". | 
|  | 663    */ | 
|  | 664   core.String priceType; | 
|  | 665   /** Value to be applied to the pricing type. Example: "4" or "2.99" */ | 
|  | 666   core.String priceValue; | 
|  | 667   /** | 
|  | 668    * Edit Identifier. This should be the Edit Level EIDR. Example: | 
|  | 669    * "10.2340/1489-49A2-3956-4B2D-FE16-6" | 
|  | 670    */ | 
|  | 671   core.String productId; | 
|  | 672   /** | 
|  | 673    * Value representing the rating reason. Rating reasons should be formatted as | 
|  | 674    * per [EMA ratings spec](http://www.movielabs.com/md/ratings/) and | 
|  | 675    * comma-separated for inclusion of multiple reasons. Example: "L, S, V" | 
|  | 676    */ | 
|  | 677   core.String ratingReason; | 
|  | 678   /** | 
|  | 679    * Rating system applied to the version of title within territory of Avail. | 
|  | 680    * Rating systems should be formatted as per [EMA ratings | 
|  | 681    * spec](http://www.movielabs.com/md/ratings/) Example: "MPAA" | 
|  | 682    */ | 
|  | 683   core.String ratingSystem; | 
|  | 684   /** | 
|  | 685    * Value representing the rating. Ratings should be formatted as per | 
|  | 686    * http://www.movielabs.com/md/ratings/ Example: "PG" | 
|  | 687    */ | 
|  | 688   core.String ratingValue; | 
|  | 689   /** | 
|  | 690    * Release date of the Title in earliest released territory. Typically it is | 
|  | 691    * just the year, but it is free-form as per EMA spec. Examples: "1979", "Oct | 
|  | 692    * 2014" | 
|  | 693    */ | 
|  | 694   core.String releaseDate; | 
|  | 695   /** | 
|  | 696    * Other identifier referring to the season, as defined by partner. Only | 
|  | 697    * available on TV avails. Example: "rs_googlers_s1". | 
|  | 698    */ | 
|  | 699   core.String seasonAltId; | 
|  | 700   /** | 
|  | 701    * The number assigned to the season within a series. Only available on TV | 
|  | 702    * Avails. Example: "1". | 
|  | 703    */ | 
|  | 704   core.String seasonNumber; | 
|  | 705   /** | 
|  | 706    * Title used by involved parties to refer to this season. Only available on | 
|  | 707    * TV Avails. Example: "Googlers, The". | 
|  | 708    */ | 
|  | 709   core.String seasonTitleInternalAlias; | 
|  | 710   /** | 
|  | 711    * Other identifier referring to the series, as defined by partner. Only | 
|  | 712    * available on TV avails. Example: "rs_googlers". | 
|  | 713    */ | 
|  | 714   core.String seriesAltId; | 
|  | 715   /** | 
|  | 716    * Title used by involved parties to refer to this series. Only available on | 
|  | 717    * TV Avails. Example: "Googlers, The". | 
|  | 718    */ | 
|  | 719   core.String seriesTitleInternalAlias; | 
|  | 720   /** | 
|  | 721    * Start of term in YYYY-MM-DD format in the timezone of the country of the | 
|  | 722    * Avail. Example: "2013-05-14". | 
|  | 723    */ | 
|  | 724   core.String start; | 
|  | 725   /** | 
|  | 726    * Spoken language of the intended audience. Language shall be encoded in | 
|  | 727    * accordance with RFC 5646. Example: "fr". | 
|  | 728    */ | 
|  | 729   core.String storeLanguage; | 
|  | 730   /** | 
|  | 731    * First date an Edit could be publically announced as becoming available at a | 
|  | 732    * specific future date in territory of Avail. *Not* the Avail start date or | 
|  | 733    * pre-order start date. Format is YYYY-MM-DD. Only available for pre-orders. | 
|  | 734    * Example: "2012-12-10" | 
|  | 735    */ | 
|  | 736   core.String suppressionLiftDate; | 
|  | 737   /** | 
|  | 738    * ISO 3166-1 alpha-2 country code for the country or territory of this Avail. | 
|  | 739    * For Avails, we use Territory in lieu of Country to comply with EMA | 
|  | 740    * specifications. But please note that Territory and Country identify the | 
|  | 741    * same thing. Example: "US". | 
|  | 742    */ | 
|  | 743   core.String territory; | 
|  | 744   /** | 
|  | 745    * Title used by involved parties to refer to this content. Example: | 
|  | 746    * "Googlers, The". Only available on Movie Avails. | 
|  | 747    */ | 
|  | 748   core.String titleInternalAlias; | 
|  | 749   /** | 
|  | 750    * Google-generated ID identifying the video linked to this Avail, once | 
|  | 751    * delivered. Not part of EMA Specs. Example: 'gtry456_xc' | 
|  | 752    */ | 
|  | 753   core.String videoId; | 
|  | 754   /** | 
|  | 755    * Work type as enumerated in EMA. | 
|  | 756    * Possible string values are: | 
|  | 757    * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 
|  | 758    * - "MOVIE" : A MOVIE. | 
|  | 759    * - "SEASON" : A SEASON. | 
|  | 760    * - "EPISODE" : A EPISODE. | 
|  | 761    */ | 
|  | 762   core.String workType; | 
|  | 763 | 
|  | 764   Avail(); | 
|  | 765 | 
|  | 766   Avail.fromJson(core.Map _json) { | 
|  | 767     if (_json.containsKey("altId")) { | 
|  | 768       altId = _json["altId"]; | 
|  | 769     } | 
|  | 770     if (_json.containsKey("captionExemption")) { | 
|  | 771       captionExemption = _json["captionExemption"]; | 
|  | 772     } | 
|  | 773     if (_json.containsKey("captionIncluded")) { | 
|  | 774       captionIncluded = _json["captionIncluded"]; | 
|  | 775     } | 
|  | 776     if (_json.containsKey("contentId")) { | 
|  | 777       contentId = _json["contentId"]; | 
|  | 778     } | 
|  | 779     if (_json.containsKey("displayName")) { | 
|  | 780       displayName = _json["displayName"]; | 
|  | 781     } | 
|  | 782     if (_json.containsKey("encodeId")) { | 
|  | 783       encodeId = _json["encodeId"]; | 
|  | 784     } | 
|  | 785     if (_json.containsKey("end")) { | 
|  | 786       end = _json["end"]; | 
|  | 787     } | 
|  | 788     if (_json.containsKey("episodeAltId")) { | 
|  | 789       episodeAltId = _json["episodeAltId"]; | 
|  | 790     } | 
|  | 791     if (_json.containsKey("episodeNumber")) { | 
|  | 792       episodeNumber = _json["episodeNumber"]; | 
|  | 793     } | 
|  | 794     if (_json.containsKey("episodeTitleInternalAlias")) { | 
|  | 795       episodeTitleInternalAlias = _json["episodeTitleInternalAlias"]; | 
|  | 796     } | 
|  | 797     if (_json.containsKey("formatProfile")) { | 
|  | 798       formatProfile = _json["formatProfile"]; | 
|  | 799     } | 
|  | 800     if (_json.containsKey("licenseType")) { | 
|  | 801       licenseType = _json["licenseType"]; | 
|  | 802     } | 
|  | 803     if (_json.containsKey("pphNames")) { | 
|  | 804       pphNames = _json["pphNames"]; | 
|  | 805     } | 
|  | 806     if (_json.containsKey("priceType")) { | 
|  | 807       priceType = _json["priceType"]; | 
|  | 808     } | 
|  | 809     if (_json.containsKey("priceValue")) { | 
|  | 810       priceValue = _json["priceValue"]; | 
|  | 811     } | 
|  | 812     if (_json.containsKey("productId")) { | 
|  | 813       productId = _json["productId"]; | 
|  | 814     } | 
|  | 815     if (_json.containsKey("ratingReason")) { | 
|  | 816       ratingReason = _json["ratingReason"]; | 
|  | 817     } | 
|  | 818     if (_json.containsKey("ratingSystem")) { | 
|  | 819       ratingSystem = _json["ratingSystem"]; | 
|  | 820     } | 
|  | 821     if (_json.containsKey("ratingValue")) { | 
|  | 822       ratingValue = _json["ratingValue"]; | 
|  | 823     } | 
|  | 824     if (_json.containsKey("releaseDate")) { | 
|  | 825       releaseDate = _json["releaseDate"]; | 
|  | 826     } | 
|  | 827     if (_json.containsKey("seasonAltId")) { | 
|  | 828       seasonAltId = _json["seasonAltId"]; | 
|  | 829     } | 
|  | 830     if (_json.containsKey("seasonNumber")) { | 
|  | 831       seasonNumber = _json["seasonNumber"]; | 
|  | 832     } | 
|  | 833     if (_json.containsKey("seasonTitleInternalAlias")) { | 
|  | 834       seasonTitleInternalAlias = _json["seasonTitleInternalAlias"]; | 
|  | 835     } | 
|  | 836     if (_json.containsKey("seriesAltId")) { | 
|  | 837       seriesAltId = _json["seriesAltId"]; | 
|  | 838     } | 
|  | 839     if (_json.containsKey("seriesTitleInternalAlias")) { | 
|  | 840       seriesTitleInternalAlias = _json["seriesTitleInternalAlias"]; | 
|  | 841     } | 
|  | 842     if (_json.containsKey("start")) { | 
|  | 843       start = _json["start"]; | 
|  | 844     } | 
|  | 845     if (_json.containsKey("storeLanguage")) { | 
|  | 846       storeLanguage = _json["storeLanguage"]; | 
|  | 847     } | 
|  | 848     if (_json.containsKey("suppressionLiftDate")) { | 
|  | 849       suppressionLiftDate = _json["suppressionLiftDate"]; | 
|  | 850     } | 
|  | 851     if (_json.containsKey("territory")) { | 
|  | 852       territory = _json["territory"]; | 
|  | 853     } | 
|  | 854     if (_json.containsKey("titleInternalAlias")) { | 
|  | 855       titleInternalAlias = _json["titleInternalAlias"]; | 
|  | 856     } | 
|  | 857     if (_json.containsKey("videoId")) { | 
|  | 858       videoId = _json["videoId"]; | 
|  | 859     } | 
|  | 860     if (_json.containsKey("workType")) { | 
|  | 861       workType = _json["workType"]; | 
|  | 862     } | 
|  | 863   } | 
|  | 864 | 
|  | 865   core.Map toJson() { | 
|  | 866     var _json = new core.Map(); | 
|  | 867     if (altId != null) { | 
|  | 868       _json["altId"] = altId; | 
|  | 869     } | 
|  | 870     if (captionExemption != null) { | 
|  | 871       _json["captionExemption"] = captionExemption; | 
|  | 872     } | 
|  | 873     if (captionIncluded != null) { | 
|  | 874       _json["captionIncluded"] = captionIncluded; | 
|  | 875     } | 
|  | 876     if (contentId != null) { | 
|  | 877       _json["contentId"] = contentId; | 
|  | 878     } | 
|  | 879     if (displayName != null) { | 
|  | 880       _json["displayName"] = displayName; | 
|  | 881     } | 
|  | 882     if (encodeId != null) { | 
|  | 883       _json["encodeId"] = encodeId; | 
|  | 884     } | 
|  | 885     if (end != null) { | 
|  | 886       _json["end"] = end; | 
|  | 887     } | 
|  | 888     if (episodeAltId != null) { | 
|  | 889       _json["episodeAltId"] = episodeAltId; | 
|  | 890     } | 
|  | 891     if (episodeNumber != null) { | 
|  | 892       _json["episodeNumber"] = episodeNumber; | 
|  | 893     } | 
|  | 894     if (episodeTitleInternalAlias != null) { | 
|  | 895       _json["episodeTitleInternalAlias"] = episodeTitleInternalAlias; | 
|  | 896     } | 
|  | 897     if (formatProfile != null) { | 
|  | 898       _json["formatProfile"] = formatProfile; | 
|  | 899     } | 
|  | 900     if (licenseType != null) { | 
|  | 901       _json["licenseType"] = licenseType; | 
|  | 902     } | 
|  | 903     if (pphNames != null) { | 
|  | 904       _json["pphNames"] = pphNames; | 
|  | 905     } | 
|  | 906     if (priceType != null) { | 
|  | 907       _json["priceType"] = priceType; | 
|  | 908     } | 
|  | 909     if (priceValue != null) { | 
|  | 910       _json["priceValue"] = priceValue; | 
|  | 911     } | 
|  | 912     if (productId != null) { | 
|  | 913       _json["productId"] = productId; | 
|  | 914     } | 
|  | 915     if (ratingReason != null) { | 
|  | 916       _json["ratingReason"] = ratingReason; | 
|  | 917     } | 
|  | 918     if (ratingSystem != null) { | 
|  | 919       _json["ratingSystem"] = ratingSystem; | 
|  | 920     } | 
|  | 921     if (ratingValue != null) { | 
|  | 922       _json["ratingValue"] = ratingValue; | 
|  | 923     } | 
|  | 924     if (releaseDate != null) { | 
|  | 925       _json["releaseDate"] = releaseDate; | 
|  | 926     } | 
|  | 927     if (seasonAltId != null) { | 
|  | 928       _json["seasonAltId"] = seasonAltId; | 
|  | 929     } | 
|  | 930     if (seasonNumber != null) { | 
|  | 931       _json["seasonNumber"] = seasonNumber; | 
|  | 932     } | 
|  | 933     if (seasonTitleInternalAlias != null) { | 
|  | 934       _json["seasonTitleInternalAlias"] = seasonTitleInternalAlias; | 
|  | 935     } | 
|  | 936     if (seriesAltId != null) { | 
|  | 937       _json["seriesAltId"] = seriesAltId; | 
|  | 938     } | 
|  | 939     if (seriesTitleInternalAlias != null) { | 
|  | 940       _json["seriesTitleInternalAlias"] = seriesTitleInternalAlias; | 
|  | 941     } | 
|  | 942     if (start != null) { | 
|  | 943       _json["start"] = start; | 
|  | 944     } | 
|  | 945     if (storeLanguage != null) { | 
|  | 946       _json["storeLanguage"] = storeLanguage; | 
|  | 947     } | 
|  | 948     if (suppressionLiftDate != null) { | 
|  | 949       _json["suppressionLiftDate"] = suppressionLiftDate; | 
|  | 950     } | 
|  | 951     if (territory != null) { | 
|  | 952       _json["territory"] = territory; | 
|  | 953     } | 
|  | 954     if (titleInternalAlias != null) { | 
|  | 955       _json["titleInternalAlias"] = titleInternalAlias; | 
|  | 956     } | 
|  | 957     if (videoId != null) { | 
|  | 958       _json["videoId"] = videoId; | 
|  | 959     } | 
|  | 960     if (workType != null) { | 
|  | 961       _json["workType"] = workType; | 
|  | 962     } | 
|  | 963     return _json; | 
|  | 964   } | 
|  | 965 } | 
|  | 966 | 
|  | 967 /** | 
|  | 968  * An ExperienceLocale tracks the fulfillment of a Title in a country using a | 
|  | 969  * specific language, when delivered using component-based delivery. For | 
|  | 970  * example, a Title in Switzerland might have 3 ExperienceLocales: they both | 
|  | 971  * share the same country ("CH"), but each has different languages ("de", "fr", | 
|  | 972  * and "it"). Each ExperienceLocale is uniquely identified by an `el_id`, which | 
|  | 973  * is generated by Google. Externally, an ExperienceLocale can also be | 
|  | 974  * identified by partners using its EIDR IDs, AltCutID or `custom_id` (when | 
|  | 975  * provided). | 
|  | 976  */ | 
|  | 977 class ExperienceLocale { | 
|  | 978   /** | 
|  | 979    * Alternative Cut ID, sometimes available in lieu of the main Edit-level EIDR | 
|  | 980    * ID. This is not an EIDR ID, but a Partner-provided ID. Example: | 
|  | 981    * "206346_79838". | 
|  | 982    */ | 
|  | 983   core.String altCutId; | 
|  | 984   /** Timestamp when the ExperienceLocale was approved. */ | 
|  | 985   core.String approvedTime; | 
|  | 986   /** | 
|  | 987    * YouTube Channel ID linked to the ExperienceLocale. Example: | 
|  | 988    * "UCRG64darCZhb". | 
|  | 989    */ | 
|  | 990   core.String channelId; | 
|  | 991   /** | 
|  | 992    * Country where the ExperienceLocale is available, using the "ISO 3166-1 | 
|  | 993    * alpha-2" format. Example: "US". | 
|  | 994    */ | 
|  | 995   core.String country; | 
|  | 996   /** Timestamp when the ExperienceLocale was created. */ | 
|  | 997   core.String createdTime; | 
|  | 998   /** | 
|  | 999    * List of custom IDs (defined by the partner) linked to this | 
|  | 1000    * ExperienceLocale. Example: "R86241" | 
|  | 1001    */ | 
|  | 1002   core.List<core.String> customIds; | 
|  | 1003   /** | 
|  | 1004    * Timestamp of the earliest start date of the Avails linked to this | 
|  | 1005    * ExperienceLocale. | 
|  | 1006    */ | 
|  | 1007   core.String earliestAvailStartTime; | 
|  | 1008   /** Edit-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". */ | 
|  | 1009   core.String editLevelEidr; | 
|  | 1010   /** | 
|  | 1011    * ID internally generated by Google to uniquely identify a ExperienceLocale. | 
|  | 1012    * Example: 'KRZiVjY9h7t' | 
|  | 1013    */ | 
|  | 1014   core.String elId; | 
|  | 1015   /** InventoryID as defined in the EMA specs. */ | 
|  | 1016   core.String inventoryId; | 
|  | 1017   /** | 
|  | 1018    * Language of the ExperienceLocale, using the "BCP 47" format. Examples: | 
|  | 1019    * "en", "en-US", "es", "es-419". | 
|  | 1020    */ | 
|  | 1021   core.String language; | 
|  | 1022   /** | 
|  | 1023    * Default Edit name, usually in the language of the country of origin. | 
|  | 1024    * Example: "Googlers, The". | 
|  | 1025    */ | 
|  | 1026   core.String name; | 
|  | 1027   /** | 
|  | 1028    * A simpler representation of the priority. | 
|  | 1029    * Possible string values are: | 
|  | 1030    * - "NORMALIZED_PRIORITY_UNSPECIFIED" : A NORMALIZED_PRIORITY_UNSPECIFIED. | 
|  | 1031    * - "LOW_PRIORITY" : A LOW_PRIORITY. | 
|  | 1032    * - "HIGH_PRIORITY" : A HIGH_PRIORITY. | 
|  | 1033    */ | 
|  | 1034   core.String normalizedPriority; | 
|  | 1035   /** PlayableSequenceID as defined in the EMA specs. */ | 
|  | 1036   core.String playableSequenceId; | 
|  | 1037   /** Name of the post-production houses that manage the ExperienceLocale. */ | 
|  | 1038   core.List<core.String> pphNames; | 
|  | 1039   /** PresentationID as defined in the EMA specs. */ | 
|  | 1040   core.String presentationId; | 
|  | 1041   /** | 
|  | 1042    * ExperienceLocale priority, as defined by Google. The higher the value, the | 
|  | 1043    * higher the priority. Example: 90 | 
|  | 1044    */ | 
|  | 1045   core.double priority; | 
|  | 1046   /** | 
|  | 1047    * High-level status of the ExperienceLocale. | 
|  | 1048    * Possible string values are: | 
|  | 1049    * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. | 
|  | 1050    * - "STATUS_APPROVED" : A STATUS_APPROVED. | 
|  | 1051    * - "STATUS_FAILED" : A STATUS_FAILED. | 
|  | 1052    * - "STATUS_PROCESSING" : A STATUS_PROCESSING. | 
|  | 1053    * - "STATUS_UNFULFILLED" : A STATUS_UNFULFILLED. | 
|  | 1054    * - "STATUS_NOT_AVAILABLE" : A STATUS_NOT_AVAILABLE. | 
|  | 1055    */ | 
|  | 1056   core.String status; | 
|  | 1057   /** Name of the studio that owns the ExperienceLocale. */ | 
|  | 1058   core.String studioName; | 
|  | 1059   /** Title-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". */ | 
|  | 1060   core.String titleLevelEidr; | 
|  | 1061   /** | 
|  | 1062    * Trailer ID, as defined by Google, linked to the trailer video in the | 
|  | 1063    * ExperienceLocale. Example: 'gtry457_tr'. | 
|  | 1064    */ | 
|  | 1065   core.String trailerId; | 
|  | 1066   /** | 
|  | 1067    * Type of the Edit linked to the ExperienceLocale. | 
|  | 1068    * Possible string values are: | 
|  | 1069    * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 
|  | 1070    * - "MOVIE" : A MOVIE. | 
|  | 1071    * - "SEASON" : A SEASON. | 
|  | 1072    * - "EPISODE" : A EPISODE. | 
|  | 1073    */ | 
|  | 1074   core.String type; | 
|  | 1075   /** | 
|  | 1076    * Video ID, as defined by Google, linked to the feature video in the | 
|  | 1077    * ExperienceLocale. Example: 'gtry456_xc'. | 
|  | 1078    */ | 
|  | 1079   core.String videoId; | 
|  | 1080 | 
|  | 1081   ExperienceLocale(); | 
|  | 1082 | 
|  | 1083   ExperienceLocale.fromJson(core.Map _json) { | 
|  | 1084     if (_json.containsKey("altCutId")) { | 
|  | 1085       altCutId = _json["altCutId"]; | 
|  | 1086     } | 
|  | 1087     if (_json.containsKey("approvedTime")) { | 
|  | 1088       approvedTime = _json["approvedTime"]; | 
|  | 1089     } | 
|  | 1090     if (_json.containsKey("channelId")) { | 
|  | 1091       channelId = _json["channelId"]; | 
|  | 1092     } | 
|  | 1093     if (_json.containsKey("country")) { | 
|  | 1094       country = _json["country"]; | 
|  | 1095     } | 
|  | 1096     if (_json.containsKey("createdTime")) { | 
|  | 1097       createdTime = _json["createdTime"]; | 
|  | 1098     } | 
|  | 1099     if (_json.containsKey("customIds")) { | 
|  | 1100       customIds = _json["customIds"]; | 
|  | 1101     } | 
|  | 1102     if (_json.containsKey("earliestAvailStartTime")) { | 
|  | 1103       earliestAvailStartTime = _json["earliestAvailStartTime"]; | 
|  | 1104     } | 
|  | 1105     if (_json.containsKey("editLevelEidr")) { | 
|  | 1106       editLevelEidr = _json["editLevelEidr"]; | 
|  | 1107     } | 
|  | 1108     if (_json.containsKey("elId")) { | 
|  | 1109       elId = _json["elId"]; | 
|  | 1110     } | 
|  | 1111     if (_json.containsKey("inventoryId")) { | 
|  | 1112       inventoryId = _json["inventoryId"]; | 
|  | 1113     } | 
|  | 1114     if (_json.containsKey("language")) { | 
|  | 1115       language = _json["language"]; | 
|  | 1116     } | 
|  | 1117     if (_json.containsKey("name")) { | 
|  | 1118       name = _json["name"]; | 
|  | 1119     } | 
|  | 1120     if (_json.containsKey("normalizedPriority")) { | 
|  | 1121       normalizedPriority = _json["normalizedPriority"]; | 
|  | 1122     } | 
|  | 1123     if (_json.containsKey("playableSequenceId")) { | 
|  | 1124       playableSequenceId = _json["playableSequenceId"]; | 
|  | 1125     } | 
|  | 1126     if (_json.containsKey("pphNames")) { | 
|  | 1127       pphNames = _json["pphNames"]; | 
|  | 1128     } | 
|  | 1129     if (_json.containsKey("presentationId")) { | 
|  | 1130       presentationId = _json["presentationId"]; | 
|  | 1131     } | 
|  | 1132     if (_json.containsKey("priority")) { | 
|  | 1133       priority = _json["priority"]; | 
|  | 1134     } | 
|  | 1135     if (_json.containsKey("status")) { | 
|  | 1136       status = _json["status"]; | 
|  | 1137     } | 
|  | 1138     if (_json.containsKey("studioName")) { | 
|  | 1139       studioName = _json["studioName"]; | 
|  | 1140     } | 
|  | 1141     if (_json.containsKey("titleLevelEidr")) { | 
|  | 1142       titleLevelEidr = _json["titleLevelEidr"]; | 
|  | 1143     } | 
|  | 1144     if (_json.containsKey("trailerId")) { | 
|  | 1145       trailerId = _json["trailerId"]; | 
|  | 1146     } | 
|  | 1147     if (_json.containsKey("type")) { | 
|  | 1148       type = _json["type"]; | 
|  | 1149     } | 
|  | 1150     if (_json.containsKey("videoId")) { | 
|  | 1151       videoId = _json["videoId"]; | 
|  | 1152     } | 
|  | 1153   } | 
|  | 1154 | 
|  | 1155   core.Map toJson() { | 
|  | 1156     var _json = new core.Map(); | 
|  | 1157     if (altCutId != null) { | 
|  | 1158       _json["altCutId"] = altCutId; | 
|  | 1159     } | 
|  | 1160     if (approvedTime != null) { | 
|  | 1161       _json["approvedTime"] = approvedTime; | 
|  | 1162     } | 
|  | 1163     if (channelId != null) { | 
|  | 1164       _json["channelId"] = channelId; | 
|  | 1165     } | 
|  | 1166     if (country != null) { | 
|  | 1167       _json["country"] = country; | 
|  | 1168     } | 
|  | 1169     if (createdTime != null) { | 
|  | 1170       _json["createdTime"] = createdTime; | 
|  | 1171     } | 
|  | 1172     if (customIds != null) { | 
|  | 1173       _json["customIds"] = customIds; | 
|  | 1174     } | 
|  | 1175     if (earliestAvailStartTime != null) { | 
|  | 1176       _json["earliestAvailStartTime"] = earliestAvailStartTime; | 
|  | 1177     } | 
|  | 1178     if (editLevelEidr != null) { | 
|  | 1179       _json["editLevelEidr"] = editLevelEidr; | 
|  | 1180     } | 
|  | 1181     if (elId != null) { | 
|  | 1182       _json["elId"] = elId; | 
|  | 1183     } | 
|  | 1184     if (inventoryId != null) { | 
|  | 1185       _json["inventoryId"] = inventoryId; | 
|  | 1186     } | 
|  | 1187     if (language != null) { | 
|  | 1188       _json["language"] = language; | 
|  | 1189     } | 
|  | 1190     if (name != null) { | 
|  | 1191       _json["name"] = name; | 
|  | 1192     } | 
|  | 1193     if (normalizedPriority != null) { | 
|  | 1194       _json["normalizedPriority"] = normalizedPriority; | 
|  | 1195     } | 
|  | 1196     if (playableSequenceId != null) { | 
|  | 1197       _json["playableSequenceId"] = playableSequenceId; | 
|  | 1198     } | 
|  | 1199     if (pphNames != null) { | 
|  | 1200       _json["pphNames"] = pphNames; | 
|  | 1201     } | 
|  | 1202     if (presentationId != null) { | 
|  | 1203       _json["presentationId"] = presentationId; | 
|  | 1204     } | 
|  | 1205     if (priority != null) { | 
|  | 1206       _json["priority"] = priority; | 
|  | 1207     } | 
|  | 1208     if (status != null) { | 
|  | 1209       _json["status"] = status; | 
|  | 1210     } | 
|  | 1211     if (studioName != null) { | 
|  | 1212       _json["studioName"] = studioName; | 
|  | 1213     } | 
|  | 1214     if (titleLevelEidr != null) { | 
|  | 1215       _json["titleLevelEidr"] = titleLevelEidr; | 
|  | 1216     } | 
|  | 1217     if (trailerId != null) { | 
|  | 1218       _json["trailerId"] = trailerId; | 
|  | 1219     } | 
|  | 1220     if (type != null) { | 
|  | 1221       _json["type"] = type; | 
|  | 1222     } | 
|  | 1223     if (videoId != null) { | 
|  | 1224       _json["videoId"] = videoId; | 
|  | 1225     } | 
|  | 1226     return _json; | 
|  | 1227   } | 
|  | 1228 } | 
|  | 1229 | 
|  | 1230 /** Response to the 'ListAvails' method. */ | 
|  | 1231 class ListAvailsResponse { | 
|  | 1232   /** List of Avails that match the request criteria. */ | 
|  | 1233   core.List<Avail> avails; | 
|  | 1234   /** See _List methods rules_ for info about this field. */ | 
|  | 1235   core.String nextPageToken; | 
|  | 1236 | 
|  | 1237   ListAvailsResponse(); | 
|  | 1238 | 
|  | 1239   ListAvailsResponse.fromJson(core.Map _json) { | 
|  | 1240     if (_json.containsKey("avails")) { | 
|  | 1241       avails = _json["avails"].map((value) => new Avail.fromJson(value)).toList(
      ); | 
|  | 1242     } | 
|  | 1243     if (_json.containsKey("nextPageToken")) { | 
|  | 1244       nextPageToken = _json["nextPageToken"]; | 
|  | 1245     } | 
|  | 1246   } | 
|  | 1247 | 
|  | 1248   core.Map toJson() { | 
|  | 1249     var _json = new core.Map(); | 
|  | 1250     if (avails != null) { | 
|  | 1251       _json["avails"] = avails.map((value) => (value).toJson()).toList(); | 
|  | 1252     } | 
|  | 1253     if (nextPageToken != null) { | 
|  | 1254       _json["nextPageToken"] = nextPageToken; | 
|  | 1255     } | 
|  | 1256     return _json; | 
|  | 1257   } | 
|  | 1258 } | 
|  | 1259 | 
|  | 1260 /** Response to the 'ListExperienceLocales' method. */ | 
|  | 1261 class ListExperienceLocalesResponse { | 
|  | 1262   /** List of ExperienceLocales that match the request criteria. */ | 
|  | 1263   core.List<ExperienceLocale> experienceLocales; | 
|  | 1264   /** See _List methods rules_ for info about this field. */ | 
|  | 1265   core.String nextPageToken; | 
|  | 1266 | 
|  | 1267   ListExperienceLocalesResponse(); | 
|  | 1268 | 
|  | 1269   ListExperienceLocalesResponse.fromJson(core.Map _json) { | 
|  | 1270     if (_json.containsKey("experienceLocales")) { | 
|  | 1271       experienceLocales = _json["experienceLocales"].map((value) => new Experien
      ceLocale.fromJson(value)).toList(); | 
|  | 1272     } | 
|  | 1273     if (_json.containsKey("nextPageToken")) { | 
|  | 1274       nextPageToken = _json["nextPageToken"]; | 
|  | 1275     } | 
|  | 1276   } | 
|  | 1277 | 
|  | 1278   core.Map toJson() { | 
|  | 1279     var _json = new core.Map(); | 
|  | 1280     if (experienceLocales != null) { | 
|  | 1281       _json["experienceLocales"] = experienceLocales.map((value) => (value).toJs
      on()).toList(); | 
|  | 1282     } | 
|  | 1283     if (nextPageToken != null) { | 
|  | 1284       _json["nextPageToken"] = nextPageToken; | 
|  | 1285     } | 
|  | 1286     return _json; | 
|  | 1287   } | 
|  | 1288 } | 
|  | 1289 | 
|  | 1290 /** Response to the 'ListOrders' method. */ | 
|  | 1291 class ListOrdersResponse { | 
|  | 1292   /** See _List methods rules_ for info about this field. */ | 
|  | 1293   core.String nextPageToken; | 
|  | 1294   /** List of Orders that match the request criteria. */ | 
|  | 1295   core.List<Order> orders; | 
|  | 1296 | 
|  | 1297   ListOrdersResponse(); | 
|  | 1298 | 
|  | 1299   ListOrdersResponse.fromJson(core.Map _json) { | 
|  | 1300     if (_json.containsKey("nextPageToken")) { | 
|  | 1301       nextPageToken = _json["nextPageToken"]; | 
|  | 1302     } | 
|  | 1303     if (_json.containsKey("orders")) { | 
|  | 1304       orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(
      ); | 
|  | 1305     } | 
|  | 1306   } | 
|  | 1307 | 
|  | 1308   core.Map toJson() { | 
|  | 1309     var _json = new core.Map(); | 
|  | 1310     if (nextPageToken != null) { | 
|  | 1311       _json["nextPageToken"] = nextPageToken; | 
|  | 1312     } | 
|  | 1313     if (orders != null) { | 
|  | 1314       _json["orders"] = orders.map((value) => (value).toJson()).toList(); | 
|  | 1315     } | 
|  | 1316     return _json; | 
|  | 1317   } | 
|  | 1318 } | 
|  | 1319 | 
|  | 1320 /** Response to the 'ListStoreInfos' method. */ | 
|  | 1321 class ListStoreInfosResponse { | 
|  | 1322   /** See 'List methods rules' for info about this field. */ | 
|  | 1323   core.String nextPageToken; | 
|  | 1324   /** List of StoreInfos that match the request criteria. */ | 
|  | 1325   core.List<StoreInfo> storeInfos; | 
|  | 1326 | 
|  | 1327   ListStoreInfosResponse(); | 
|  | 1328 | 
|  | 1329   ListStoreInfosResponse.fromJson(core.Map _json) { | 
|  | 1330     if (_json.containsKey("nextPageToken")) { | 
|  | 1331       nextPageToken = _json["nextPageToken"]; | 
|  | 1332     } | 
|  | 1333     if (_json.containsKey("storeInfos")) { | 
|  | 1334       storeInfos = _json["storeInfos"].map((value) => new StoreInfo.fromJson(val
      ue)).toList(); | 
|  | 1335     } | 
|  | 1336   } | 
|  | 1337 | 
|  | 1338   core.Map toJson() { | 
|  | 1339     var _json = new core.Map(); | 
|  | 1340     if (nextPageToken != null) { | 
|  | 1341       _json["nextPageToken"] = nextPageToken; | 
|  | 1342     } | 
|  | 1343     if (storeInfos != null) { | 
|  | 1344       _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
      ; | 
|  | 1345     } | 
|  | 1346     return _json; | 
|  | 1347   } | 
|  | 1348 } | 
|  | 1349 | 
|  | 1350 /** | 
|  | 1351  * An Order tracks the fulfillment of an Edit when delivered using the legacy, | 
|  | 1352  * non-component-based delivery. Each Order is uniquely identified by an | 
|  | 1353  * `order_id`, which is generated by Google. Externally, Orders can also be | 
|  | 1354  * identified by partners using its `custom_id` (when provided). | 
|  | 1355  */ | 
|  | 1356 class Order { | 
|  | 1357   /** Timestamp when the Order was approved. */ | 
|  | 1358   core.String approvedTime; | 
|  | 1359   /** | 
|  | 1360    * YouTube Channel ID that should be used to fulfill the Order. Example: | 
|  | 1361    * "UCRG64darCZhb". | 
|  | 1362    */ | 
|  | 1363   core.String channelId; | 
|  | 1364   /** | 
|  | 1365    * YouTube Channel Name that should be used to fulfill the Order. Example: | 
|  | 1366    * "Google_channel". | 
|  | 1367    */ | 
|  | 1368   core.String channelName; | 
|  | 1369   /** | 
|  | 1370    * Countries where the Order is available, using the "ISO 3166-1 alpha-2" | 
|  | 1371    * format (example: "US"). | 
|  | 1372    */ | 
|  | 1373   core.List<core.String> countries; | 
|  | 1374   /** | 
|  | 1375    * ID that can be used to externally identify an Order. This ID is provided by | 
|  | 1376    * partners when submitting the Avails. Example: 'GOOGLER_2006' | 
|  | 1377    */ | 
|  | 1378   core.String customId; | 
|  | 1379   /** | 
|  | 1380    * Timestamp of the earliest start date of the Avails linked to this Order. | 
|  | 1381    */ | 
|  | 1382   core.String earliestAvailStartTime; | 
|  | 1383   /** | 
|  | 1384    * Default Episode name, usually in the language of the country of origin. | 
|  | 1385    * Only available for TV Edits Example: "Googlers, The - Pilot". | 
|  | 1386    */ | 
|  | 1387   core.String episodeName; | 
|  | 1388   /** Legacy Order priority, as defined by Google. Example: 'P0' */ | 
|  | 1389   core.String legacyPriority; | 
|  | 1390   /** | 
|  | 1391    * Default Edit name, usually in the language of the country of origin. | 
|  | 1392    * Example: "Googlers, The". | 
|  | 1393    */ | 
|  | 1394   core.String name; | 
|  | 1395   /** | 
|  | 1396    * A simpler representation of the priority. | 
|  | 1397    * Possible string values are: | 
|  | 1398    * - "NORMALIZED_PRIORITY_UNSPECIFIED" : A NORMALIZED_PRIORITY_UNSPECIFIED. | 
|  | 1399    * - "LOW_PRIORITY" : A LOW_PRIORITY. | 
|  | 1400    * - "HIGH_PRIORITY" : A HIGH_PRIORITY. | 
|  | 1401    */ | 
|  | 1402   core.String normalizedPriority; | 
|  | 1403   /** | 
|  | 1404    * ID internally generated by Google to uniquely identify an Order. Example: | 
|  | 1405    * 'abcde12_x' | 
|  | 1406    */ | 
|  | 1407   core.String orderId; | 
|  | 1408   /** Timestamp when the Order was created. */ | 
|  | 1409   core.String orderedTime; | 
|  | 1410   /** Name of the post-production house that manages the Edit ordered. */ | 
|  | 1411   core.String pphName; | 
|  | 1412   /** | 
|  | 1413    * Order priority, as defined by Google. The higher the value, the higher the | 
|  | 1414    * priority. Example: 90 | 
|  | 1415    */ | 
|  | 1416   core.double priority; | 
|  | 1417   /** Timestamp when the Order was fulfilled. */ | 
|  | 1418   core.String receivedTime; | 
|  | 1419   /** | 
|  | 1420    * Field explaining why an Order has been rejected. Example: "Trailer audio is | 
|  | 1421    * 2ch mono, please re-deliver in stereo". | 
|  | 1422    */ | 
|  | 1423   core.String rejectionNote; | 
|  | 1424   /** | 
|  | 1425    * Default Season name, usually in the language of the country of origin. Only | 
|  | 1426    * available for TV Edits Example: "Googlers, The - A Brave New World". | 
|  | 1427    */ | 
|  | 1428   core.String seasonName; | 
|  | 1429   /** | 
|  | 1430    * Default Show name, usually in the language of the country of origin. Only | 
|  | 1431    * available for TV Edits Example: "Googlers, The". | 
|  | 1432    */ | 
|  | 1433   core.String showName; | 
|  | 1434   /** | 
|  | 1435    * High-level status of the order. | 
|  | 1436    * Possible string values are: | 
|  | 1437    * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. | 
|  | 1438    * - "STATUS_APPROVED" : A STATUS_APPROVED. | 
|  | 1439    * - "STATUS_FAILED" : A STATUS_FAILED. | 
|  | 1440    * - "STATUS_PROCESSING" : A STATUS_PROCESSING. | 
|  | 1441    * - "STATUS_UNFULFILLED" : A STATUS_UNFULFILLED. | 
|  | 1442    * - "STATUS_NOT_AVAILABLE" : A STATUS_NOT_AVAILABLE. | 
|  | 1443    */ | 
|  | 1444   core.String status; | 
|  | 1445   /** | 
|  | 1446    * Detailed status of the order | 
|  | 1447    * Possible string values are: | 
|  | 1448    * - "ORDER_STATUS_UNSPECIFIED" : A ORDER_STATUS_UNSPECIFIED. | 
|  | 1449    * - "ORDER_STATUS_QC_APPROVED" : A ORDER_STATUS_QC_APPROVED. | 
|  | 1450    * - "ORDER_STATUS_QC_REJECTION" : A ORDER_STATUS_QC_REJECTION. | 
|  | 1451    * - "ORDER_STATUS_INTERNAL_FIX" : A ORDER_STATUS_INTERNAL_FIX. | 
|  | 1452    * - "ORDER_STATUS_OPEN_ORDER" : A ORDER_STATUS_OPEN_ORDER. | 
|  | 1453    * - "ORDER_STATUS_NOT_AVAILABLE" : A ORDER_STATUS_NOT_AVAILABLE. | 
|  | 1454    * - "ORDER_STATUS_AWAITING_REDELIVERY" : A ORDER_STATUS_AWAITING_REDELIVERY. | 
|  | 1455    * - "ORDER_STATUS_READY_FOR_QC" : A ORDER_STATUS_READY_FOR_QC. | 
|  | 1456    */ | 
|  | 1457   core.String statusDetail; | 
|  | 1458   /** Name of the studio that owns the Edit ordered. */ | 
|  | 1459   core.String studioName; | 
|  | 1460   /** | 
|  | 1461    * Type of the Edit linked to the Order. | 
|  | 1462    * Possible string values are: | 
|  | 1463    * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 
|  | 1464    * - "MOVIE" : A MOVIE. | 
|  | 1465    * - "SEASON" : A SEASON. | 
|  | 1466    * - "EPISODE" : A EPISODE. | 
|  | 1467    */ | 
|  | 1468   core.String type; | 
|  | 1469   /** | 
|  | 1470    * Google-generated ID identifying the video linked to this Order, once | 
|  | 1471    * delivered. Example: 'gtry456_xc'. | 
|  | 1472    */ | 
|  | 1473   core.String videoId; | 
|  | 1474 | 
|  | 1475   Order(); | 
|  | 1476 | 
|  | 1477   Order.fromJson(core.Map _json) { | 
|  | 1478     if (_json.containsKey("approvedTime")) { | 
|  | 1479       approvedTime = _json["approvedTime"]; | 
|  | 1480     } | 
|  | 1481     if (_json.containsKey("channelId")) { | 
|  | 1482       channelId = _json["channelId"]; | 
|  | 1483     } | 
|  | 1484     if (_json.containsKey("channelName")) { | 
|  | 1485       channelName = _json["channelName"]; | 
|  | 1486     } | 
|  | 1487     if (_json.containsKey("countries")) { | 
|  | 1488       countries = _json["countries"]; | 
|  | 1489     } | 
|  | 1490     if (_json.containsKey("customId")) { | 
|  | 1491       customId = _json["customId"]; | 
|  | 1492     } | 
|  | 1493     if (_json.containsKey("earliestAvailStartTime")) { | 
|  | 1494       earliestAvailStartTime = _json["earliestAvailStartTime"]; | 
|  | 1495     } | 
|  | 1496     if (_json.containsKey("episodeName")) { | 
|  | 1497       episodeName = _json["episodeName"]; | 
|  | 1498     } | 
|  | 1499     if (_json.containsKey("legacyPriority")) { | 
|  | 1500       legacyPriority = _json["legacyPriority"]; | 
|  | 1501     } | 
|  | 1502     if (_json.containsKey("name")) { | 
|  | 1503       name = _json["name"]; | 
|  | 1504     } | 
|  | 1505     if (_json.containsKey("normalizedPriority")) { | 
|  | 1506       normalizedPriority = _json["normalizedPriority"]; | 
|  | 1507     } | 
|  | 1508     if (_json.containsKey("orderId")) { | 
|  | 1509       orderId = _json["orderId"]; | 
|  | 1510     } | 
|  | 1511     if (_json.containsKey("orderedTime")) { | 
|  | 1512       orderedTime = _json["orderedTime"]; | 
|  | 1513     } | 
|  | 1514     if (_json.containsKey("pphName")) { | 
|  | 1515       pphName = _json["pphName"]; | 
|  | 1516     } | 
|  | 1517     if (_json.containsKey("priority")) { | 
|  | 1518       priority = _json["priority"]; | 
|  | 1519     } | 
|  | 1520     if (_json.containsKey("receivedTime")) { | 
|  | 1521       receivedTime = _json["receivedTime"]; | 
|  | 1522     } | 
|  | 1523     if (_json.containsKey("rejectionNote")) { | 
|  | 1524       rejectionNote = _json["rejectionNote"]; | 
|  | 1525     } | 
|  | 1526     if (_json.containsKey("seasonName")) { | 
|  | 1527       seasonName = _json["seasonName"]; | 
|  | 1528     } | 
|  | 1529     if (_json.containsKey("showName")) { | 
|  | 1530       showName = _json["showName"]; | 
|  | 1531     } | 
|  | 1532     if (_json.containsKey("status")) { | 
|  | 1533       status = _json["status"]; | 
|  | 1534     } | 
|  | 1535     if (_json.containsKey("statusDetail")) { | 
|  | 1536       statusDetail = _json["statusDetail"]; | 
|  | 1537     } | 
|  | 1538     if (_json.containsKey("studioName")) { | 
|  | 1539       studioName = _json["studioName"]; | 
|  | 1540     } | 
|  | 1541     if (_json.containsKey("type")) { | 
|  | 1542       type = _json["type"]; | 
|  | 1543     } | 
|  | 1544     if (_json.containsKey("videoId")) { | 
|  | 1545       videoId = _json["videoId"]; | 
|  | 1546     } | 
|  | 1547   } | 
|  | 1548 | 
|  | 1549   core.Map toJson() { | 
|  | 1550     var _json = new core.Map(); | 
|  | 1551     if (approvedTime != null) { | 
|  | 1552       _json["approvedTime"] = approvedTime; | 
|  | 1553     } | 
|  | 1554     if (channelId != null) { | 
|  | 1555       _json["channelId"] = channelId; | 
|  | 1556     } | 
|  | 1557     if (channelName != null) { | 
|  | 1558       _json["channelName"] = channelName; | 
|  | 1559     } | 
|  | 1560     if (countries != null) { | 
|  | 1561       _json["countries"] = countries; | 
|  | 1562     } | 
|  | 1563     if (customId != null) { | 
|  | 1564       _json["customId"] = customId; | 
|  | 1565     } | 
|  | 1566     if (earliestAvailStartTime != null) { | 
|  | 1567       _json["earliestAvailStartTime"] = earliestAvailStartTime; | 
|  | 1568     } | 
|  | 1569     if (episodeName != null) { | 
|  | 1570       _json["episodeName"] = episodeName; | 
|  | 1571     } | 
|  | 1572     if (legacyPriority != null) { | 
|  | 1573       _json["legacyPriority"] = legacyPriority; | 
|  | 1574     } | 
|  | 1575     if (name != null) { | 
|  | 1576       _json["name"] = name; | 
|  | 1577     } | 
|  | 1578     if (normalizedPriority != null) { | 
|  | 1579       _json["normalizedPriority"] = normalizedPriority; | 
|  | 1580     } | 
|  | 1581     if (orderId != null) { | 
|  | 1582       _json["orderId"] = orderId; | 
|  | 1583     } | 
|  | 1584     if (orderedTime != null) { | 
|  | 1585       _json["orderedTime"] = orderedTime; | 
|  | 1586     } | 
|  | 1587     if (pphName != null) { | 
|  | 1588       _json["pphName"] = pphName; | 
|  | 1589     } | 
|  | 1590     if (priority != null) { | 
|  | 1591       _json["priority"] = priority; | 
|  | 1592     } | 
|  | 1593     if (receivedTime != null) { | 
|  | 1594       _json["receivedTime"] = receivedTime; | 
|  | 1595     } | 
|  | 1596     if (rejectionNote != null) { | 
|  | 1597       _json["rejectionNote"] = rejectionNote; | 
|  | 1598     } | 
|  | 1599     if (seasonName != null) { | 
|  | 1600       _json["seasonName"] = seasonName; | 
|  | 1601     } | 
|  | 1602     if (showName != null) { | 
|  | 1603       _json["showName"] = showName; | 
|  | 1604     } | 
|  | 1605     if (status != null) { | 
|  | 1606       _json["status"] = status; | 
|  | 1607     } | 
|  | 1608     if (statusDetail != null) { | 
|  | 1609       _json["statusDetail"] = statusDetail; | 
|  | 1610     } | 
|  | 1611     if (studioName != null) { | 
|  | 1612       _json["studioName"] = studioName; | 
|  | 1613     } | 
|  | 1614     if (type != null) { | 
|  | 1615       _json["type"] = type; | 
|  | 1616     } | 
|  | 1617     if (videoId != null) { | 
|  | 1618       _json["videoId"] = videoId; | 
|  | 1619     } | 
|  | 1620     return _json; | 
|  | 1621   } | 
|  | 1622 } | 
|  | 1623 | 
|  | 1624 /** | 
|  | 1625  * Information about a playable sequence (video) associated with an Edit and | 
|  | 1626  * available at the Google Play Store. Internally, each StoreInfo is uniquely | 
|  | 1627  * identified by a `video_id` and `country`. Externally, Title-level EIDR or | 
|  | 1628  * Edit-level EIDR, if provided, can also be used to identify a specific title | 
|  | 1629  * or edit in a country. | 
|  | 1630  */ | 
|  | 1631 class StoreInfo { | 
|  | 1632   /** Audio tracks available for this Edit. */ | 
|  | 1633   core.List<core.String> audioTracks; | 
|  | 1634   /** | 
|  | 1635    * Country where Edit is available in ISO 3166-1 alpha-2 country code. | 
|  | 1636    * Example: "US". | 
|  | 1637    */ | 
|  | 1638   core.String country; | 
|  | 1639   /** Edit-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". */ | 
|  | 1640   core.String editLevelEidr; | 
|  | 1641   /** | 
|  | 1642    * The number assigned to the episode within a season. Only available on TV | 
|  | 1643    * Edits. Example: "1". | 
|  | 1644    */ | 
|  | 1645   core.String episodeNumber; | 
|  | 1646   /** Whether the Edit has a 5.1 channel audio track. */ | 
|  | 1647   core.bool hasAudio51; | 
|  | 1648   /** Whether the Edit has a EST offer. */ | 
|  | 1649   core.bool hasEstOffer; | 
|  | 1650   /** Whether the Edit has a HD offer. */ | 
|  | 1651   core.bool hasHdOffer; | 
|  | 1652   /** Whether the Edit has info cards. */ | 
|  | 1653   core.bool hasInfoCards; | 
|  | 1654   /** Whether the Edit has a SD offer. */ | 
|  | 1655   core.bool hasSdOffer; | 
|  | 1656   /** Whether the Edit has a VOD offer. */ | 
|  | 1657   core.bool hasVodOffer; | 
|  | 1658   /** Timestamp when the Edit went live on the Store. */ | 
|  | 1659   core.String liveTime; | 
|  | 1660   /** | 
|  | 1661    * Knowledge Graph ID associated to this Edit, if available. This ID links the | 
|  | 1662    * Edit to its knowledge entity, externally accessible at http://freebase.com. | 
|  | 1663    * In the absense of Title EIDR or Edit EIDR, this ID helps link together | 
|  | 1664    * multiple Edits across countries. Example: '/m/0ffx29' | 
|  | 1665    */ | 
|  | 1666   core.String mid; | 
|  | 1667   /** | 
|  | 1668    * Default Edit name, usually in the language of the country of origin. | 
|  | 1669    * Example: "Googlers, The". | 
|  | 1670    */ | 
|  | 1671   core.String name; | 
|  | 1672   /** Name of the post-production houses that manage the Edit. */ | 
|  | 1673   core.List<core.String> pphNames; | 
|  | 1674   /** | 
|  | 1675    * Google-generated ID identifying the season linked to the Edit. Only | 
|  | 1676    * available for TV Edits. Example: 'ster23ex' | 
|  | 1677    */ | 
|  | 1678   core.String seasonId; | 
|  | 1679   /** | 
|  | 1680    * Default Season name, usually in the language of the country of origin. Only | 
|  | 1681    * available for TV Edits Example: "Googlers, The - A Brave New World". | 
|  | 1682    */ | 
|  | 1683   core.String seasonName; | 
|  | 1684   /** | 
|  | 1685    * The number assigned to the season within a show. Only available on TV | 
|  | 1686    * Edits. Example: "1". | 
|  | 1687    */ | 
|  | 1688   core.String seasonNumber; | 
|  | 1689   /** | 
|  | 1690    * Google-generated ID identifying the show linked to the Edit. Only available | 
|  | 1691    * for TV Edits. Example: 'et2hsue_x' | 
|  | 1692    */ | 
|  | 1693   core.String showId; | 
|  | 1694   /** | 
|  | 1695    * Default Show name, usually in the language of the country of origin. Only | 
|  | 1696    * available for TV Edits Example: "Googlers, The". | 
|  | 1697    */ | 
|  | 1698   core.String showName; | 
|  | 1699   /** Name of the studio that owns the Edit ordered. */ | 
|  | 1700   core.String studioName; | 
|  | 1701   /** Subtitles available for this Edit. */ | 
|  | 1702   core.List<core.String> subtitles; | 
|  | 1703   /** Title-level EIDR ID. Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". */ | 
|  | 1704   core.String titleLevelEidr; | 
|  | 1705   /** | 
|  | 1706    * Google-generated ID identifying the trailer linked to the Edit. Example: | 
|  | 1707    * 'bhd_4e_cx' | 
|  | 1708    */ | 
|  | 1709   core.String trailerId; | 
|  | 1710   /** | 
|  | 1711    * Edit type, like Movie, Episode or Season. | 
|  | 1712    * Possible string values are: | 
|  | 1713    * - "TITLE_TYPE_UNSPECIFIED" : A TITLE_TYPE_UNSPECIFIED. | 
|  | 1714    * - "MOVIE" : A MOVIE. | 
|  | 1715    * - "SEASON" : A SEASON. | 
|  | 1716    * - "EPISODE" : A EPISODE. | 
|  | 1717    */ | 
|  | 1718   core.String type; | 
|  | 1719   /** | 
|  | 1720    * Google-generated ID identifying the video linked to the Edit. Example: | 
|  | 1721    * 'gtry456_xc' | 
|  | 1722    */ | 
|  | 1723   core.String videoId; | 
|  | 1724 | 
|  | 1725   StoreInfo(); | 
|  | 1726 | 
|  | 1727   StoreInfo.fromJson(core.Map _json) { | 
|  | 1728     if (_json.containsKey("audioTracks")) { | 
|  | 1729       audioTracks = _json["audioTracks"]; | 
|  | 1730     } | 
|  | 1731     if (_json.containsKey("country")) { | 
|  | 1732       country = _json["country"]; | 
|  | 1733     } | 
|  | 1734     if (_json.containsKey("editLevelEidr")) { | 
|  | 1735       editLevelEidr = _json["editLevelEidr"]; | 
|  | 1736     } | 
|  | 1737     if (_json.containsKey("episodeNumber")) { | 
|  | 1738       episodeNumber = _json["episodeNumber"]; | 
|  | 1739     } | 
|  | 1740     if (_json.containsKey("hasAudio51")) { | 
|  | 1741       hasAudio51 = _json["hasAudio51"]; | 
|  | 1742     } | 
|  | 1743     if (_json.containsKey("hasEstOffer")) { | 
|  | 1744       hasEstOffer = _json["hasEstOffer"]; | 
|  | 1745     } | 
|  | 1746     if (_json.containsKey("hasHdOffer")) { | 
|  | 1747       hasHdOffer = _json["hasHdOffer"]; | 
|  | 1748     } | 
|  | 1749     if (_json.containsKey("hasInfoCards")) { | 
|  | 1750       hasInfoCards = _json["hasInfoCards"]; | 
|  | 1751     } | 
|  | 1752     if (_json.containsKey("hasSdOffer")) { | 
|  | 1753       hasSdOffer = _json["hasSdOffer"]; | 
|  | 1754     } | 
|  | 1755     if (_json.containsKey("hasVodOffer")) { | 
|  | 1756       hasVodOffer = _json["hasVodOffer"]; | 
|  | 1757     } | 
|  | 1758     if (_json.containsKey("liveTime")) { | 
|  | 1759       liveTime = _json["liveTime"]; | 
|  | 1760     } | 
|  | 1761     if (_json.containsKey("mid")) { | 
|  | 1762       mid = _json["mid"]; | 
|  | 1763     } | 
|  | 1764     if (_json.containsKey("name")) { | 
|  | 1765       name = _json["name"]; | 
|  | 1766     } | 
|  | 1767     if (_json.containsKey("pphNames")) { | 
|  | 1768       pphNames = _json["pphNames"]; | 
|  | 1769     } | 
|  | 1770     if (_json.containsKey("seasonId")) { | 
|  | 1771       seasonId = _json["seasonId"]; | 
|  | 1772     } | 
|  | 1773     if (_json.containsKey("seasonName")) { | 
|  | 1774       seasonName = _json["seasonName"]; | 
|  | 1775     } | 
|  | 1776     if (_json.containsKey("seasonNumber")) { | 
|  | 1777       seasonNumber = _json["seasonNumber"]; | 
|  | 1778     } | 
|  | 1779     if (_json.containsKey("showId")) { | 
|  | 1780       showId = _json["showId"]; | 
|  | 1781     } | 
|  | 1782     if (_json.containsKey("showName")) { | 
|  | 1783       showName = _json["showName"]; | 
|  | 1784     } | 
|  | 1785     if (_json.containsKey("studioName")) { | 
|  | 1786       studioName = _json["studioName"]; | 
|  | 1787     } | 
|  | 1788     if (_json.containsKey("subtitles")) { | 
|  | 1789       subtitles = _json["subtitles"]; | 
|  | 1790     } | 
|  | 1791     if (_json.containsKey("titleLevelEidr")) { | 
|  | 1792       titleLevelEidr = _json["titleLevelEidr"]; | 
|  | 1793     } | 
|  | 1794     if (_json.containsKey("trailerId")) { | 
|  | 1795       trailerId = _json["trailerId"]; | 
|  | 1796     } | 
|  | 1797     if (_json.containsKey("type")) { | 
|  | 1798       type = _json["type"]; | 
|  | 1799     } | 
|  | 1800     if (_json.containsKey("videoId")) { | 
|  | 1801       videoId = _json["videoId"]; | 
|  | 1802     } | 
|  | 1803   } | 
|  | 1804 | 
|  | 1805   core.Map toJson() { | 
|  | 1806     var _json = new core.Map(); | 
|  | 1807     if (audioTracks != null) { | 
|  | 1808       _json["audioTracks"] = audioTracks; | 
|  | 1809     } | 
|  | 1810     if (country != null) { | 
|  | 1811       _json["country"] = country; | 
|  | 1812     } | 
|  | 1813     if (editLevelEidr != null) { | 
|  | 1814       _json["editLevelEidr"] = editLevelEidr; | 
|  | 1815     } | 
|  | 1816     if (episodeNumber != null) { | 
|  | 1817       _json["episodeNumber"] = episodeNumber; | 
|  | 1818     } | 
|  | 1819     if (hasAudio51 != null) { | 
|  | 1820       _json["hasAudio51"] = hasAudio51; | 
|  | 1821     } | 
|  | 1822     if (hasEstOffer != null) { | 
|  | 1823       _json["hasEstOffer"] = hasEstOffer; | 
|  | 1824     } | 
|  | 1825     if (hasHdOffer != null) { | 
|  | 1826       _json["hasHdOffer"] = hasHdOffer; | 
|  | 1827     } | 
|  | 1828     if (hasInfoCards != null) { | 
|  | 1829       _json["hasInfoCards"] = hasInfoCards; | 
|  | 1830     } | 
|  | 1831     if (hasSdOffer != null) { | 
|  | 1832       _json["hasSdOffer"] = hasSdOffer; | 
|  | 1833     } | 
|  | 1834     if (hasVodOffer != null) { | 
|  | 1835       _json["hasVodOffer"] = hasVodOffer; | 
|  | 1836     } | 
|  | 1837     if (liveTime != null) { | 
|  | 1838       _json["liveTime"] = liveTime; | 
|  | 1839     } | 
|  | 1840     if (mid != null) { | 
|  | 1841       _json["mid"] = mid; | 
|  | 1842     } | 
|  | 1843     if (name != null) { | 
|  | 1844       _json["name"] = name; | 
|  | 1845     } | 
|  | 1846     if (pphNames != null) { | 
|  | 1847       _json["pphNames"] = pphNames; | 
|  | 1848     } | 
|  | 1849     if (seasonId != null) { | 
|  | 1850       _json["seasonId"] = seasonId; | 
|  | 1851     } | 
|  | 1852     if (seasonName != null) { | 
|  | 1853       _json["seasonName"] = seasonName; | 
|  | 1854     } | 
|  | 1855     if (seasonNumber != null) { | 
|  | 1856       _json["seasonNumber"] = seasonNumber; | 
|  | 1857     } | 
|  | 1858     if (showId != null) { | 
|  | 1859       _json["showId"] = showId; | 
|  | 1860     } | 
|  | 1861     if (showName != null) { | 
|  | 1862       _json["showName"] = showName; | 
|  | 1863     } | 
|  | 1864     if (studioName != null) { | 
|  | 1865       _json["studioName"] = studioName; | 
|  | 1866     } | 
|  | 1867     if (subtitles != null) { | 
|  | 1868       _json["subtitles"] = subtitles; | 
|  | 1869     } | 
|  | 1870     if (titleLevelEidr != null) { | 
|  | 1871       _json["titleLevelEidr"] = titleLevelEidr; | 
|  | 1872     } | 
|  | 1873     if (trailerId != null) { | 
|  | 1874       _json["trailerId"] = trailerId; | 
|  | 1875     } | 
|  | 1876     if (type != null) { | 
|  | 1877       _json["type"] = type; | 
|  | 1878     } | 
|  | 1879     if (videoId != null) { | 
|  | 1880       _json["videoId"] = videoId; | 
|  | 1881     } | 
|  | 1882     return _json; | 
|  | 1883   } | 
|  | 1884 } | 
| OLD | NEW | 
|---|