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

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

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/vision/v1.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.youtubereporting.v1; 3 library googleapis.youtubereporting.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 _requester = client; 51 _requester = client;
52 52
53 /** 53 /**
54 * Creates a job and returns it. 54 * Creates a job and returns it.
55 * 55 *
56 * [request] - The metadata request object. 56 * [request] - The metadata request object.
57 * 57 *
58 * Request parameters: 58 * Request parameters:
59 * 59 *
60 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 60 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
61 * the user is acting on. If not set, the user is acting for himself (his own 61 * the user is acting on. If
62 * channel). 62 * not set, the user is acting for himself (his own channel).
63 * 63 *
64 * Completes with a [Job]. 64 * Completes with a [Job].
65 * 65 *
66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
67 * error. 67 * error.
68 * 68 *
69 * If the used [http.Client] completes with an error when making a REST call, 69 * If the used [http.Client] completes with an error when making a REST call,
70 * this method will complete with the same error. 70 * this method will complete with the same error.
71 */ 71 */
72 async.Future<Job> create(Job request, {core.String onBehalfOfContentOwner}) { 72 async.Future<Job> create(Job request, {core.String onBehalfOfContentOwner}) {
(...skipping 24 matching lines...) Expand all
97 } 97 }
98 98
99 /** 99 /**
100 * Deletes a job. 100 * Deletes a job.
101 * 101 *
102 * Request parameters: 102 * Request parameters:
103 * 103 *
104 * [jobId] - The ID of the job to delete. 104 * [jobId] - The ID of the job to delete.
105 * 105 *
106 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 106 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
107 * the user is acting on. If not set, the user is acting for himself (his own 107 * the user is acting on. If
108 * channel). 108 * not set, the user is acting for himself (his own channel).
109 * 109 *
110 * Completes with a [Empty]. 110 * Completes with a [Empty].
111 * 111 *
112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
113 * error. 113 * error.
114 * 114 *
115 * If the used [http.Client] completes with an error when making a REST call, 115 * If the used [http.Client] completes with an error when making a REST call,
116 * this method will complete with the same error. 116 * this method will complete with the same error.
117 */ 117 */
118 async.Future<Empty> delete(core.String jobId, {core.String onBehalfOfContentOw ner}) { 118 async.Future<Empty> delete(core.String jobId, {core.String onBehalfOfContentOw ner}) {
(...skipping 24 matching lines...) Expand all
143 } 143 }
144 144
145 /** 145 /**
146 * Gets a job. 146 * Gets a job.
147 * 147 *
148 * Request parameters: 148 * Request parameters:
149 * 149 *
150 * [jobId] - The ID of the job to retrieve. 150 * [jobId] - The ID of the job to retrieve.
151 * 151 *
152 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 152 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
153 * the user is acting on. If not set, the user is acting for himself (his own 153 * the user is acting on. If
154 * channel). 154 * not set, the user is acting for himself (his own channel).
155 * 155 *
156 * Completes with a [Job]. 156 * Completes with a [Job].
157 * 157 *
158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
159 * error. 159 * error.
160 * 160 *
161 * If the used [http.Client] completes with an error when making a REST call, 161 * If the used [http.Client] completes with an error when making a REST call,
162 * this method will complete with the same error. 162 * this method will complete with the same error.
163 */ 163 */
164 async.Future<Job> get(core.String jobId, {core.String onBehalfOfContentOwner}) { 164 async.Future<Job> get(core.String jobId, {core.String onBehalfOfContentOwner}) {
(...skipping 21 matching lines...) Expand all
186 uploadMedia: _uploadMedia, 186 uploadMedia: _uploadMedia,
187 downloadOptions: _downloadOptions); 187 downloadOptions: _downloadOptions);
188 return _response.then((data) => new Job.fromJson(data)); 188 return _response.then((data) => new Job.fromJson(data));
189 } 189 }
190 190
191 /** 191 /**
192 * Lists jobs. 192 * Lists jobs.
193 * 193 *
194 * Request parameters: 194 * Request parameters:
195 * 195 *
196 * [pageSize] - Requested page size. Server may return fewer jobs than
197 * requested.
198 * If unspecified, server will pick an appropriate default.
199 *
200 * [includeSystemManaged] - If set to true, also system-managed jobs will be
201 * returned; otherwise only
202 * user-created jobs will be returned. System-managed jobs can neither be
203 * modified nor deleted.
204 *
196 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 205 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
197 * the user is acting on. If not set, the user is acting for himself (his own 206 * the user is acting on. If
198 * channel). 207 * not set, the user is acting for himself (his own channel).
199 *
200 * [pageSize] - Requested page size. Server may return fewer jobs than
201 * requested. If unspecified, server will pick an appropriate default.
202 * 208 *
203 * [pageToken] - A token identifying a page of results the server should 209 * [pageToken] - A token identifying a page of results the server should
204 * return. Typically, this is the value of 210 * return. Typically,
205 * ListReportTypesResponse.next_page_token returned in response to the 211 * this is the value of
206 * previous call to the `ListJobs` method. 212 * ListReportTypesResponse.next_page_token
207 * 213 * returned in response to the previous call to the `ListJobs` method.
208 * [includeSystemManaged] - If set to true, also system-managed jobs will be
209 * returned; otherwise only user-created jobs will be returned. System-managed
210 * jobs can neither be modified nor deleted.
211 * 214 *
212 * Completes with a [ListJobsResponse]. 215 * Completes with a [ListJobsResponse].
213 * 216 *
214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
215 * error. 218 * error.
216 * 219 *
217 * If the used [http.Client] completes with an error when making a REST call, 220 * If the used [http.Client] completes with an error when making a REST call,
218 * this method will complete with the same error. 221 * this method will complete with the same error.
219 */ 222 */
220 async.Future<ListJobsResponse> list({core.String onBehalfOfContentOwner, core. int pageSize, core.String pageToken, core.bool includeSystemManaged}) { 223 async.Future<ListJobsResponse> list({core.int pageSize, core.bool includeSyste mManaged, core.String onBehalfOfContentOwner, core.String pageToken}) {
221 var _url = null; 224 var _url = null;
222 var _queryParams = new core.Map(); 225 var _queryParams = new core.Map();
223 var _uploadMedia = null; 226 var _uploadMedia = null;
224 var _uploadOptions = null; 227 var _uploadOptions = null;
225 var _downloadOptions = commons.DownloadOptions.Metadata; 228 var _downloadOptions = commons.DownloadOptions.Metadata;
226 var _body = null; 229 var _body = null;
227 230
231 if (pageSize != null) {
232 _queryParams["pageSize"] = ["${pageSize}"];
233 }
234 if (includeSystemManaged != null) {
235 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
236 }
228 if (onBehalfOfContentOwner != null) { 237 if (onBehalfOfContentOwner != null) {
229 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 238 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
230 } 239 }
231 if (pageSize != null) {
232 _queryParams["pageSize"] = ["${pageSize}"];
233 }
234 if (pageToken != null) { 240 if (pageToken != null) {
235 _queryParams["pageToken"] = [pageToken]; 241 _queryParams["pageToken"] = [pageToken];
236 } 242 }
237 if (includeSystemManaged != null) {
238 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
239 }
240 243
241 _url = 'v1/jobs'; 244 _url = 'v1/jobs';
242 245
243 var _response = _requester.request(_url, 246 var _response = _requester.request(_url,
244 "GET", 247 "GET",
245 body: _body, 248 body: _body,
246 queryParams: _queryParams, 249 queryParams: _queryParams,
247 uploadOptions: _uploadOptions, 250 uploadOptions: _uploadOptions,
248 uploadMedia: _uploadMedia, 251 uploadMedia: _uploadMedia,
249 downloadOptions: _downloadOptions); 252 downloadOptions: _downloadOptions);
(...skipping 12 matching lines...) Expand all
262 /** 265 /**
263 * Gets the metadata of a specific report. 266 * Gets the metadata of a specific report.
264 * 267 *
265 * Request parameters: 268 * Request parameters:
266 * 269 *
267 * [jobId] - The ID of the job. 270 * [jobId] - The ID of the job.
268 * 271 *
269 * [reportId] - The ID of the report to retrieve. 272 * [reportId] - The ID of the report to retrieve.
270 * 273 *
271 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 274 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
272 * the user is acting on. If not set, the user is acting for himself (his own 275 * the user is acting on. If
273 * channel). 276 * not set, the user is acting for himself (his own channel).
274 * 277 *
275 * Completes with a [Report]. 278 * Completes with a [Report].
276 * 279 *
277 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
278 * error. 281 * error.
279 * 282 *
280 * If the used [http.Client] completes with an error when making a REST call, 283 * If the used [http.Client] completes with an error when making a REST call,
281 * this method will complete with the same error. 284 * this method will complete with the same error.
282 */ 285 */
283 async.Future<Report> get(core.String jobId, core.String reportId, {core.String onBehalfOfContentOwner}) { 286 async.Future<Report> get(core.String jobId, core.String reportId, {core.String onBehalfOfContentOwner}) {
(...skipping 20 matching lines...) Expand all
304 "GET", 307 "GET",
305 body: _body, 308 body: _body,
306 queryParams: _queryParams, 309 queryParams: _queryParams,
307 uploadOptions: _uploadOptions, 310 uploadOptions: _uploadOptions,
308 uploadMedia: _uploadMedia, 311 uploadMedia: _uploadMedia,
309 downloadOptions: _downloadOptions); 312 downloadOptions: _downloadOptions);
310 return _response.then((data) => new Report.fromJson(data)); 313 return _response.then((data) => new Report.fromJson(data));
311 } 314 }
312 315
313 /** 316 /**
314 * Lists reports created by a specific job. Returns NOT_FOUND if the job does 317 * Lists reports created by a specific job.
315 * not exist. 318 * Returns NOT_FOUND if the job does not exist.
316 * 319 *
317 * Request parameters: 320 * Request parameters:
318 * 321 *
319 * [jobId] - The ID of the job. 322 * [jobId] - The ID of the job.
320 * 323 *
321 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 324 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
322 * the user is acting on. If not set, the user is acting for himself (his own 325 * the user is acting on. If
323 * channel). 326 * not set, the user is acting for himself (his own channel).
327 *
328 * [startTimeAtOrAfter] - If set, only reports whose start time is greater
329 * than or equal the
330 * specified date/time are returned.
331 *
332 * [startTimeBefore] - If set, only reports whose start time is smaller than
333 * the specified
334 * date/time are returned.
324 * 335 *
325 * [pageSize] - Requested page size. Server may return fewer report types than 336 * [pageSize] - Requested page size. Server may return fewer report types than
326 * requested. If unspecified, server will pick an appropriate default. 337 * requested.
327 * 338 * If unspecified, server will pick an appropriate default.
328 * [pageToken] - A token identifying a page of results the server should
329 * return. Typically, this is the value of ListReportsResponse.next_page_token
330 * returned in response to the previous call to the `ListReports` method.
331 * 339 *
332 * [createdAfter] - If set, only reports created after the specified date/time 340 * [createdAfter] - If set, only reports created after the specified date/time
333 * are returned. 341 * are returned.
334 * 342 *
335 * [startTimeAtOrAfter] - If set, only reports whose start time is greater 343 * [pageToken] - A token identifying a page of results the server should
336 * than or equal the specified date/time are returned. 344 * return. Typically,
337 * 345 * this is the value of
338 * [startTimeBefore] - If set, only reports whose start time is smaller than 346 * ListReportsResponse.next_page_token
339 * the specified date/time are returned. 347 * returned in response to the previous call to the `ListReports` method.
340 * 348 *
341 * Completes with a [ListReportsResponse]. 349 * Completes with a [ListReportsResponse].
342 * 350 *
343 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
344 * error. 352 * error.
345 * 353 *
346 * If the used [http.Client] completes with an error when making a REST call, 354 * If the used [http.Client] completes with an error when making a REST call,
347 * this method will complete with the same error. 355 * this method will complete with the same error.
348 */ 356 */
349 async.Future<ListReportsResponse> list(core.String jobId, {core.String onBehal fOfContentOwner, core.int pageSize, core.String pageToken, core.String createdAf ter, core.String startTimeAtOrAfter, core.String startTimeBefore}) { 357 async.Future<ListReportsResponse> list(core.String jobId, {core.String onBehal fOfContentOwner, core.String startTimeAtOrAfter, core.String startTimeBefore, co re.int pageSize, core.String createdAfter, core.String pageToken}) {
350 var _url = null; 358 var _url = null;
351 var _queryParams = new core.Map(); 359 var _queryParams = new core.Map();
352 var _uploadMedia = null; 360 var _uploadMedia = null;
353 var _uploadOptions = null; 361 var _uploadOptions = null;
354 var _downloadOptions = commons.DownloadOptions.Metadata; 362 var _downloadOptions = commons.DownloadOptions.Metadata;
355 var _body = null; 363 var _body = null;
356 364
357 if (jobId == null) { 365 if (jobId == null) {
358 throw new core.ArgumentError("Parameter jobId is required."); 366 throw new core.ArgumentError("Parameter jobId is required.");
359 } 367 }
360 if (onBehalfOfContentOwner != null) { 368 if (onBehalfOfContentOwner != null) {
361 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 369 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
362 } 370 }
363 if (pageSize != null) {
364 _queryParams["pageSize"] = ["${pageSize}"];
365 }
366 if (pageToken != null) {
367 _queryParams["pageToken"] = [pageToken];
368 }
369 if (createdAfter != null) {
370 _queryParams["createdAfter"] = [createdAfter];
371 }
372 if (startTimeAtOrAfter != null) { 371 if (startTimeAtOrAfter != null) {
373 _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter]; 372 _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter];
374 } 373 }
375 if (startTimeBefore != null) { 374 if (startTimeBefore != null) {
376 _queryParams["startTimeBefore"] = [startTimeBefore]; 375 _queryParams["startTimeBefore"] = [startTimeBefore];
377 } 376 }
377 if (pageSize != null) {
378 _queryParams["pageSize"] = ["${pageSize}"];
379 }
380 if (createdAfter != null) {
381 _queryParams["createdAfter"] = [createdAfter];
382 }
383 if (pageToken != null) {
384 _queryParams["pageToken"] = [pageToken];
385 }
378 386
379 _url = 'v1/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/reports'; 387 _url = 'v1/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/reports';
380 388
381 var _response = _requester.request(_url, 389 var _response = _requester.request(_url,
382 "GET", 390 "GET",
383 body: _body, 391 body: _body,
384 queryParams: _queryParams, 392 queryParams: _queryParams,
385 uploadOptions: _uploadOptions, 393 uploadOptions: _uploadOptions,
386 uploadMedia: _uploadMedia, 394 uploadMedia: _uploadMedia,
387 downloadOptions: _downloadOptions); 395 downloadOptions: _downloadOptions);
388 return _response.then((data) => new ListReportsResponse.fromJson(data)); 396 return _response.then((data) => new ListReportsResponse.fromJson(data));
389 } 397 }
390 398
391 } 399 }
392 400
393 401
394 class MediaResourceApi { 402 class MediaResourceApi {
395 final commons.ApiRequester _requester; 403 final commons.ApiRequester _requester;
396 404
397 MediaResourceApi(commons.ApiRequester client) : 405 MediaResourceApi(commons.ApiRequester client) :
398 _requester = client; 406 _requester = client;
399 407
400 /** 408 /**
401 * Method for media download. Download is supported on the URI 409 * Method for media download. Download is supported
402 * `/v1/media/{+name}?alt=media`. 410 * on the URI `/v1/media/{+name}?alt=media`.
403 * 411 *
404 * Request parameters: 412 * Request parameters:
405 * 413 *
406 * [resourceName] - Name of the media that is being downloaded. See 414 * [resourceName] - Name of the media that is being downloaded. See
407 * ReadRequest.resource_name. 415 * ReadRequest.resource_name.
408 * Value must have pattern "^.*$". 416 * Value must have pattern "^.+$".
409 * 417 *
410 * [downloadOptions] - Options for downloading. A download can be either a 418 * [downloadOptions] - Options for downloading. A download can be either a
411 * Metadata (default) or Media download. Partial Media downloads are possible 419 * Metadata (default) or Media download. Partial Media downloads are possible
412 * as well. 420 * as well.
413 * 421 *
414 * Completes with a 422 * Completes with a
415 * 423 *
416 * - [Media] for Metadata downloads (see [downloadOptions]). 424 * - [Media] for Metadata downloads (see [downloadOptions]).
417 * 425 *
418 * - [commons.Media] for Media downloads (see [downloadOptions]). 426 * - [commons.Media] for Media downloads (see [downloadOptions]).
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 final commons.ApiRequester _requester; 469 final commons.ApiRequester _requester;
462 470
463 ReportTypesResourceApi(commons.ApiRequester client) : 471 ReportTypesResourceApi(commons.ApiRequester client) :
464 _requester = client; 472 _requester = client;
465 473
466 /** 474 /**
467 * Lists report types. 475 * Lists report types.
468 * 476 *
469 * Request parameters: 477 * Request parameters:
470 * 478 *
479 * [pageSize] - Requested page size. Server may return fewer report types than
480 * requested.
481 * If unspecified, server will pick an appropriate default.
482 *
483 * [includeSystemManaged] - If set to true, also system-managed report types
484 * will be returned;
485 * otherwise only the report types that can be used to create new reporting
486 * jobs will be returned.
487 *
471 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 488 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
472 * the user is acting on. If not set, the user is acting for himself (his own 489 * the user is acting on. If
473 * channel). 490 * not set, the user is acting for himself (his own channel).
474 *
475 * [pageSize] - Requested page size. Server may return fewer report types than
476 * requested. If unspecified, server will pick an appropriate default.
477 * 491 *
478 * [pageToken] - A token identifying a page of results the server should 492 * [pageToken] - A token identifying a page of results the server should
479 * return. Typically, this is the value of 493 * return. Typically,
480 * ListReportTypesResponse.next_page_token returned in response to the 494 * this is the value of
481 * previous call to the `ListReportTypes` method. 495 * ListReportTypesResponse.next_page_token
482 * 496 * returned in response to the previous call to the `ListReportTypes` method.
483 * [includeSystemManaged] - If set to true, also system-managed report types
484 * will be returned; otherwise only the report types that can be used to
485 * create new reporting jobs will be returned.
486 * 497 *
487 * Completes with a [ListReportTypesResponse]. 498 * Completes with a [ListReportTypesResponse].
488 * 499 *
489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
490 * error. 501 * error.
491 * 502 *
492 * If the used [http.Client] completes with an error when making a REST call, 503 * If the used [http.Client] completes with an error when making a REST call,
493 * this method will complete with the same error. 504 * this method will complete with the same error.
494 */ 505 */
495 async.Future<ListReportTypesResponse> list({core.String onBehalfOfContentOwner , core.int pageSize, core.String pageToken, core.bool includeSystemManaged}) { 506 async.Future<ListReportTypesResponse> list({core.int pageSize, core.bool inclu deSystemManaged, core.String onBehalfOfContentOwner, core.String pageToken}) {
496 var _url = null; 507 var _url = null;
497 var _queryParams = new core.Map(); 508 var _queryParams = new core.Map();
498 var _uploadMedia = null; 509 var _uploadMedia = null;
499 var _uploadOptions = null; 510 var _uploadOptions = null;
500 var _downloadOptions = commons.DownloadOptions.Metadata; 511 var _downloadOptions = commons.DownloadOptions.Metadata;
501 var _body = null; 512 var _body = null;
502 513
514 if (pageSize != null) {
515 _queryParams["pageSize"] = ["${pageSize}"];
516 }
517 if (includeSystemManaged != null) {
518 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
519 }
503 if (onBehalfOfContentOwner != null) { 520 if (onBehalfOfContentOwner != null) {
504 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 521 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
505 } 522 }
506 if (pageSize != null) {
507 _queryParams["pageSize"] = ["${pageSize}"];
508 }
509 if (pageToken != null) { 523 if (pageToken != null) {
510 _queryParams["pageToken"] = [pageToken]; 524 _queryParams["pageToken"] = [pageToken];
511 } 525 }
512 if (includeSystemManaged != null) {
513 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
514 }
515 526
516 _url = 'v1/reportTypes'; 527 _url = 'v1/reportTypes';
517 528
518 var _response = _requester.request(_url, 529 var _response = _requester.request(_url,
519 "GET", 530 "GET",
520 body: _body, 531 body: _body,
521 queryParams: _queryParams, 532 queryParams: _queryParams,
522 uploadOptions: _uploadOptions, 533 uploadOptions: _uploadOptions,
523 uploadMedia: _uploadMedia, 534 uploadMedia: _uploadMedia,
524 downloadOptions: _downloadOptions); 535 downloadOptions: _downloadOptions);
525 return _response.then((data) => new ListReportTypesResponse.fromJson(data)); 536 return _response.then((data) => new ListReportTypesResponse.fromJson(data));
526 } 537 }
527 538
528 } 539 }
529 540
530 541
531 542
532 /** 543 /**
533 * A generic empty message that you can re-use to avoid defining duplicated 544 * A generic empty message that you can re-use to avoid defining duplicated
534 * empty messages in your APIs. A typical example is to use it as the request or 545 * empty messages in your APIs. A typical example is to use it as the request
535 * the response type of an API method. For instance: service Foo { rpc 546 * or the response type of an API method. For instance:
536 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON 547 *
537 * representation for `Empty` is empty JSON object `{}`. 548 * service Foo {
549 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
550 * }
551 *
552 * The JSON representation for `Empty` is empty JSON object `{}`.
538 */ 553 */
539 class Empty { 554 class Empty {
540 555
541 Empty(); 556 Empty();
542 557
543 Empty.fromJson(core.Map _json) { 558 Empty.fromJson(core.Map _json) {
544 } 559 }
545 560
546 core.Map toJson() { 561 core.Map toJson() {
547 var _json = new core.Map(); 562 var _json = new core.Map();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 633 }
619 return _json; 634 return _json;
620 } 635 }
621 } 636 }
622 637
623 /** Response message for ReportingService.ListJobs. */ 638 /** Response message for ReportingService.ListJobs. */
624 class ListJobsResponse { 639 class ListJobsResponse {
625 /** The list of jobs. */ 640 /** The list of jobs. */
626 core.List<Job> jobs; 641 core.List<Job> jobs;
627 /** 642 /**
628 * A token to retrieve next page of results. Pass this value in the 643 * A token to retrieve next page of results.
629 * ListJobsRequest.page_token field in the subsequent call to `ListJobs` 644 * Pass this value in the
630 * method to retrieve the next page of results. 645 * ListJobsRequest.page_token
646 * field in the subsequent call to `ListJobs` method to retrieve the next
647 * page of results.
631 */ 648 */
632 core.String nextPageToken; 649 core.String nextPageToken;
633 650
634 ListJobsResponse(); 651 ListJobsResponse();
635 652
636 ListJobsResponse.fromJson(core.Map _json) { 653 ListJobsResponse.fromJson(core.Map _json) {
637 if (_json.containsKey("jobs")) { 654 if (_json.containsKey("jobs")) {
638 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); 655 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList();
639 } 656 }
640 if (_json.containsKey("nextPageToken")) { 657 if (_json.containsKey("nextPageToken")) {
641 nextPageToken = _json["nextPageToken"]; 658 nextPageToken = _json["nextPageToken"];
642 } 659 }
643 } 660 }
644 661
645 core.Map toJson() { 662 core.Map toJson() {
646 var _json = new core.Map(); 663 var _json = new core.Map();
647 if (jobs != null) { 664 if (jobs != null) {
648 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); 665 _json["jobs"] = jobs.map((value) => (value).toJson()).toList();
649 } 666 }
650 if (nextPageToken != null) { 667 if (nextPageToken != null) {
651 _json["nextPageToken"] = nextPageToken; 668 _json["nextPageToken"] = nextPageToken;
652 } 669 }
653 return _json; 670 return _json;
654 } 671 }
655 } 672 }
656 673
657 /** Response message for ReportingService.ListReportTypes. */ 674 /** Response message for ReportingService.ListReportTypes. */
658 class ListReportTypesResponse { 675 class ListReportTypesResponse {
659 /** 676 /**
660 * A token to retrieve next page of results. Pass this value in the 677 * A token to retrieve next page of results.
661 * ListReportTypesRequest.page_token field in the subsequent call to 678 * Pass this value in the
662 * `ListReportTypes` method to retrieve the next page of results. 679 * ListReportTypesRequest.page_token
680 * field in the subsequent call to `ListReportTypes` method to retrieve the
681 * next
682 * page of results.
663 */ 683 */
664 core.String nextPageToken; 684 core.String nextPageToken;
665 /** The list of report types. */ 685 /** The list of report types. */
666 core.List<ReportType> reportTypes; 686 core.List<ReportType> reportTypes;
667 687
668 ListReportTypesResponse(); 688 ListReportTypesResponse();
669 689
670 ListReportTypesResponse.fromJson(core.Map _json) { 690 ListReportTypesResponse.fromJson(core.Map _json) {
671 if (_json.containsKey("nextPageToken")) { 691 if (_json.containsKey("nextPageToken")) {
672 nextPageToken = _json["nextPageToken"]; 692 nextPageToken = _json["nextPageToken"];
(...skipping 11 matching lines...) Expand all
684 if (reportTypes != null) { 704 if (reportTypes != null) {
685 _json["reportTypes"] = reportTypes.map((value) => (value).toJson()).toList (); 705 _json["reportTypes"] = reportTypes.map((value) => (value).toJson()).toList ();
686 } 706 }
687 return _json; 707 return _json;
688 } 708 }
689 } 709 }
690 710
691 /** Response message for ReportingService.ListReports. */ 711 /** Response message for ReportingService.ListReports. */
692 class ListReportsResponse { 712 class ListReportsResponse {
693 /** 713 /**
694 * A token to retrieve next page of results. Pass this value in the 714 * A token to retrieve next page of results.
695 * ListReportsRequest.page_token field in the subsequent call to `ListReports` 715 * Pass this value in the
696 * method to retrieve the next page of results. 716 * ListReportsRequest.page_token
717 * field in the subsequent call to `ListReports` method to retrieve the next
718 * page of results.
697 */ 719 */
698 core.String nextPageToken; 720 core.String nextPageToken;
699 /** The list of report types. */ 721 /** The list of report types. */
700 core.List<Report> reports; 722 core.List<Report> reports;
701 723
702 ListReportsResponse(); 724 ListReportsResponse();
703 725
704 ListReportsResponse.fromJson(core.Map _json) { 726 ListReportsResponse.fromJson(core.Map _json) {
705 if (_json.containsKey("nextPageToken")) { 727 if (_json.containsKey("nextPageToken")) {
706 nextPageToken = _json["nextPageToken"]; 728 nextPageToken = _json["nextPageToken"];
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 } 889 }
868 if (name != null) { 890 if (name != null) {
869 _json["name"] = name; 891 _json["name"] = name;
870 } 892 }
871 if (systemManaged != null) { 893 if (systemManaged != null) {
872 _json["systemManaged"] = systemManaged; 894 _json["systemManaged"] = systemManaged;
873 } 895 }
874 return _json; 896 return _json;
875 } 897 }
876 } 898 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/vision/v1.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698