| 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_beta.videointelligence.v1beta1; | 3 library googleapis_beta.videointelligence.v1beta1; |
| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 core.List<GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> annotati
onProgress; | 91 core.List<GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> annotati
onProgress; |
| 92 | 92 |
| 93 GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); | 93 GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); |
| 94 | 94 |
| 95 GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.fromJson(core.Map _js
on) { | 95 GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.fromJson(core.Map _js
on) { |
| 96 if (_json.containsKey("annotationProgress")) { | 96 if (_json.containsKey("annotationProgress")) { |
| 97 annotationProgress = _json["annotationProgress"].map((value) => new Google
CloudVideointelligenceV1beta1VideoAnnotationProgress.fromJson(value)).toList(); | 97 annotationProgress = _json["annotationProgress"].map((value) => new Google
CloudVideointelligenceV1beta1VideoAnnotationProgress.fromJson(value)).toList(); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 core.Map toJson() { | 101 core.Map<core.String, core.Object> toJson() { |
| 102 var _json = new core.Map(); | 102 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 103 if (annotationProgress != null) { | 103 if (annotationProgress != null) { |
| 104 _json["annotationProgress"] = annotationProgress.map((value) => (value).to
Json()).toList(); | 104 _json["annotationProgress"] = annotationProgress.map((value) => (value).to
Json()).toList(); |
| 105 } | 105 } |
| 106 return _json; | 106 return _json; |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 /** Video annotation request. */ | 110 /** Video annotation request. */ |
| 111 class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest { | 111 class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest { |
| 112 /** Requested video annotation features. */ | 112 /** Requested video annotation features. */ |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 locationId = _json["locationId"]; | 163 locationId = _json["locationId"]; |
| 164 } | 164 } |
| 165 if (_json.containsKey("outputUri")) { | 165 if (_json.containsKey("outputUri")) { |
| 166 outputUri = _json["outputUri"]; | 166 outputUri = _json["outputUri"]; |
| 167 } | 167 } |
| 168 if (_json.containsKey("videoContext")) { | 168 if (_json.containsKey("videoContext")) { |
| 169 videoContext = new GoogleCloudVideointelligenceV1beta1VideoContext.fromJso
n(_json["videoContext"]); | 169 videoContext = new GoogleCloudVideointelligenceV1beta1VideoContext.fromJso
n(_json["videoContext"]); |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 core.Map toJson() { | 173 core.Map<core.String, core.Object> toJson() { |
| 174 var _json = new core.Map(); | 174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 175 if (features != null) { | 175 if (features != null) { |
| 176 _json["features"] = features; | 176 _json["features"] = features; |
| 177 } | 177 } |
| 178 if (inputContent != null) { | 178 if (inputContent != null) { |
| 179 _json["inputContent"] = inputContent; | 179 _json["inputContent"] = inputContent; |
| 180 } | 180 } |
| 181 if (inputUri != null) { | 181 if (inputUri != null) { |
| 182 _json["inputUri"] = inputUri; | 182 _json["inputUri"] = inputUri; |
| 183 } | 183 } |
| 184 if (locationId != null) { | 184 if (locationId != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 204 core.List<GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> annotatio
nResults; | 204 core.List<GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> annotatio
nResults; |
| 205 | 205 |
| 206 GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); | 206 GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); |
| 207 | 207 |
| 208 GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.fromJson(core.Map _js
on) { | 208 GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.fromJson(core.Map _js
on) { |
| 209 if (_json.containsKey("annotationResults")) { | 209 if (_json.containsKey("annotationResults")) { |
| 210 annotationResults = _json["annotationResults"].map((value) => new GoogleCl
oudVideointelligenceV1beta1VideoAnnotationResults.fromJson(value)).toList(); | 210 annotationResults = _json["annotationResults"].map((value) => new GoogleCl
oudVideointelligenceV1beta1VideoAnnotationResults.fromJson(value)).toList(); |
| 211 } | 211 } |
| 212 } | 212 } |
| 213 | 213 |
| 214 core.Map toJson() { | 214 core.Map<core.String, core.Object> toJson() { |
| 215 var _json = new core.Map(); | 215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 216 if (annotationResults != null) { | 216 if (annotationResults != null) { |
| 217 _json["annotationResults"] = annotationResults.map((value) => (value).toJs
on()).toList(); | 217 _json["annotationResults"] = annotationResults.map((value) => (value).toJs
on()).toList(); |
| 218 } | 218 } |
| 219 return _json; | 219 return _json; |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 /** Label annotation. */ | 223 /** Label annotation. */ |
| 224 class GoogleCloudVideointelligenceV1beta1LabelAnnotation { | 224 class GoogleCloudVideointelligenceV1beta1LabelAnnotation { |
| 225 /** Textual description, e.g. `Fixed-gear bicycle`. */ | 225 /** Textual description, e.g. `Fixed-gear bicycle`. */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 236 description = _json["description"]; | 236 description = _json["description"]; |
| 237 } | 237 } |
| 238 if (_json.containsKey("languageCode")) { | 238 if (_json.containsKey("languageCode")) { |
| 239 languageCode = _json["languageCode"]; | 239 languageCode = _json["languageCode"]; |
| 240 } | 240 } |
| 241 if (_json.containsKey("locations")) { | 241 if (_json.containsKey("locations")) { |
| 242 locations = _json["locations"].map((value) => new GoogleCloudVideointellig
enceV1beta1LabelLocation.fromJson(value)).toList(); | 242 locations = _json["locations"].map((value) => new GoogleCloudVideointellig
enceV1beta1LabelLocation.fromJson(value)).toList(); |
| 243 } | 243 } |
| 244 } | 244 } |
| 245 | 245 |
| 246 core.Map toJson() { | 246 core.Map<core.String, core.Object> toJson() { |
| 247 var _json = new core.Map(); | 247 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 248 if (description != null) { | 248 if (description != null) { |
| 249 _json["description"] = description; | 249 _json["description"] = description; |
| 250 } | 250 } |
| 251 if (languageCode != null) { | 251 if (languageCode != null) { |
| 252 _json["languageCode"] = languageCode; | 252 _json["languageCode"] = languageCode; |
| 253 } | 253 } |
| 254 if (locations != null) { | 254 if (locations != null) { |
| 255 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 255 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 256 } | 256 } |
| 257 return _json; | 257 return _json; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 confidence = _json["confidence"]; | 290 confidence = _json["confidence"]; |
| 291 } | 291 } |
| 292 if (_json.containsKey("level")) { | 292 if (_json.containsKey("level")) { |
| 293 level = _json["level"]; | 293 level = _json["level"]; |
| 294 } | 294 } |
| 295 if (_json.containsKey("segment")) { | 295 if (_json.containsKey("segment")) { |
| 296 segment = new GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(_js
on["segment"]); | 296 segment = new GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(_js
on["segment"]); |
| 297 } | 297 } |
| 298 } | 298 } |
| 299 | 299 |
| 300 core.Map toJson() { | 300 core.Map<core.String, core.Object> toJson() { |
| 301 var _json = new core.Map(); | 301 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 302 if (confidence != null) { | 302 if (confidence != null) { |
| 303 _json["confidence"] = confidence; | 303 _json["confidence"] = confidence; |
| 304 } | 304 } |
| 305 if (level != null) { | 305 if (level != null) { |
| 306 _json["level"] = level; | 306 _json["level"] = level; |
| 307 } | 307 } |
| 308 if (segment != null) { | 308 if (segment != null) { |
| 309 _json["segment"] = (segment).toJson(); | 309 _json["segment"] = (segment).toJson(); |
| 310 } | 310 } |
| 311 return _json; | 311 return _json; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 339 progressPercent = _json["progressPercent"]; | 339 progressPercent = _json["progressPercent"]; |
| 340 } | 340 } |
| 341 if (_json.containsKey("startTime")) { | 341 if (_json.containsKey("startTime")) { |
| 342 startTime = _json["startTime"]; | 342 startTime = _json["startTime"]; |
| 343 } | 343 } |
| 344 if (_json.containsKey("updateTime")) { | 344 if (_json.containsKey("updateTime")) { |
| 345 updateTime = _json["updateTime"]; | 345 updateTime = _json["updateTime"]; |
| 346 } | 346 } |
| 347 } | 347 } |
| 348 | 348 |
| 349 core.Map toJson() { | 349 core.Map<core.String, core.Object> toJson() { |
| 350 var _json = new core.Map(); | 350 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 351 if (inputUri != null) { | 351 if (inputUri != null) { |
| 352 _json["inputUri"] = inputUri; | 352 _json["inputUri"] = inputUri; |
| 353 } | 353 } |
| 354 if (progressPercent != null) { | 354 if (progressPercent != null) { |
| 355 _json["progressPercent"] = progressPercent; | 355 _json["progressPercent"] = progressPercent; |
| 356 } | 356 } |
| 357 if (startTime != null) { | 357 if (startTime != null) { |
| 358 _json["startTime"] = startTime; | 358 _json["startTime"] = startTime; |
| 359 } | 359 } |
| 360 if (updateTime != null) { | 360 if (updateTime != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 391 inputUri = _json["inputUri"]; | 391 inputUri = _json["inputUri"]; |
| 392 } | 392 } |
| 393 if (_json.containsKey("labelAnnotations")) { | 393 if (_json.containsKey("labelAnnotations")) { |
| 394 labelAnnotations = _json["labelAnnotations"].map((value) => new GoogleClou
dVideointelligenceV1beta1LabelAnnotation.fromJson(value)).toList(); | 394 labelAnnotations = _json["labelAnnotations"].map((value) => new GoogleClou
dVideointelligenceV1beta1LabelAnnotation.fromJson(value)).toList(); |
| 395 } | 395 } |
| 396 if (_json.containsKey("shotAnnotations")) { | 396 if (_json.containsKey("shotAnnotations")) { |
| 397 shotAnnotations = _json["shotAnnotations"].map((value) => new GoogleCloudV
ideointelligenceV1beta1VideoSegment.fromJson(value)).toList(); | 397 shotAnnotations = _json["shotAnnotations"].map((value) => new GoogleCloudV
ideointelligenceV1beta1VideoSegment.fromJson(value)).toList(); |
| 398 } | 398 } |
| 399 } | 399 } |
| 400 | 400 |
| 401 core.Map toJson() { | 401 core.Map<core.String, core.Object> toJson() { |
| 402 var _json = new core.Map(); | 402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 403 if (error != null) { | 403 if (error != null) { |
| 404 _json["error"] = (error).toJson(); | 404 _json["error"] = (error).toJson(); |
| 405 } | 405 } |
| 406 if (inputUri != null) { | 406 if (inputUri != null) { |
| 407 _json["inputUri"] = inputUri; | 407 _json["inputUri"] = inputUri; |
| 408 } | 408 } |
| 409 if (labelAnnotations != null) { | 409 if (labelAnnotations != null) { |
| 410 _json["labelAnnotations"] = labelAnnotations.map((value) => (value).toJson
()).toList(); | 410 _json["labelAnnotations"] = labelAnnotations.map((value) => (value).toJson
()).toList(); |
| 411 } | 411 } |
| 412 if (shotAnnotations != null) { | 412 if (shotAnnotations != null) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 labelDetectionModel = _json["labelDetectionModel"]; | 456 labelDetectionModel = _json["labelDetectionModel"]; |
| 457 } | 457 } |
| 458 if (_json.containsKey("segments")) { | 458 if (_json.containsKey("segments")) { |
| 459 segments = _json["segments"].map((value) => new GoogleCloudVideointelligen
ceV1beta1VideoSegment.fromJson(value)).toList(); | 459 segments = _json["segments"].map((value) => new GoogleCloudVideointelligen
ceV1beta1VideoSegment.fromJson(value)).toList(); |
| 460 } | 460 } |
| 461 if (_json.containsKey("shotChangeDetectionModel")) { | 461 if (_json.containsKey("shotChangeDetectionModel")) { |
| 462 shotChangeDetectionModel = _json["shotChangeDetectionModel"]; | 462 shotChangeDetectionModel = _json["shotChangeDetectionModel"]; |
| 463 } | 463 } |
| 464 } | 464 } |
| 465 | 465 |
| 466 core.Map toJson() { | 466 core.Map<core.String, core.Object> toJson() { |
| 467 var _json = new core.Map(); | 467 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 468 if (labelDetectionMode != null) { | 468 if (labelDetectionMode != null) { |
| 469 _json["labelDetectionMode"] = labelDetectionMode; | 469 _json["labelDetectionMode"] = labelDetectionMode; |
| 470 } | 470 } |
| 471 if (labelDetectionModel != null) { | 471 if (labelDetectionModel != null) { |
| 472 _json["labelDetectionModel"] = labelDetectionModel; | 472 _json["labelDetectionModel"] = labelDetectionModel; |
| 473 } | 473 } |
| 474 if (segments != null) { | 474 if (segments != null) { |
| 475 _json["segments"] = segments.map((value) => (value).toJson()).toList(); | 475 _json["segments"] = segments.map((value) => (value).toJson()).toList(); |
| 476 } | 476 } |
| 477 if (shotChangeDetectionModel != null) { | 477 if (shotChangeDetectionModel != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 492 | 492 |
| 493 GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(core.Map _json) { | 493 GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(core.Map _json) { |
| 494 if (_json.containsKey("endTimeOffset")) { | 494 if (_json.containsKey("endTimeOffset")) { |
| 495 endTimeOffset = _json["endTimeOffset"]; | 495 endTimeOffset = _json["endTimeOffset"]; |
| 496 } | 496 } |
| 497 if (_json.containsKey("startTimeOffset")) { | 497 if (_json.containsKey("startTimeOffset")) { |
| 498 startTimeOffset = _json["startTimeOffset"]; | 498 startTimeOffset = _json["startTimeOffset"]; |
| 499 } | 499 } |
| 500 } | 500 } |
| 501 | 501 |
| 502 core.Map toJson() { | 502 core.Map<core.String, core.Object> toJson() { |
| 503 var _json = new core.Map(); | 503 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 504 if (endTimeOffset != null) { | 504 if (endTimeOffset != null) { |
| 505 _json["endTimeOffset"] = endTimeOffset; | 505 _json["endTimeOffset"] = endTimeOffset; |
| 506 } | 506 } |
| 507 if (startTimeOffset != null) { | 507 if (startTimeOffset != null) { |
| 508 _json["startTimeOffset"] = startTimeOffset; | 508 _json["startTimeOffset"] = startTimeOffset; |
| 509 } | 509 } |
| 510 return _json; | 510 return _json; |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 metadata = _json["metadata"]; | 568 metadata = _json["metadata"]; |
| 569 } | 569 } |
| 570 if (_json.containsKey("name")) { | 570 if (_json.containsKey("name")) { |
| 571 name = _json["name"]; | 571 name = _json["name"]; |
| 572 } | 572 } |
| 573 if (_json.containsKey("response")) { | 573 if (_json.containsKey("response")) { |
| 574 response = _json["response"]; | 574 response = _json["response"]; |
| 575 } | 575 } |
| 576 } | 576 } |
| 577 | 577 |
| 578 core.Map toJson() { | 578 core.Map<core.String, core.Object> toJson() { |
| 579 var _json = new core.Map(); | 579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 580 if (done != null) { | 580 if (done != null) { |
| 581 _json["done"] = done; | 581 _json["done"] = done; |
| 582 } | 582 } |
| 583 if (error != null) { | 583 if (error != null) { |
| 584 _json["error"] = (error).toJson(); | 584 _json["error"] = (error).toJson(); |
| 585 } | 585 } |
| 586 if (metadata != null) { | 586 if (metadata != null) { |
| 587 _json["metadata"] = metadata; | 587 _json["metadata"] = metadata; |
| 588 } | 588 } |
| 589 if (name != null) { | 589 if (name != null) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 code = _json["code"]; | 677 code = _json["code"]; |
| 678 } | 678 } |
| 679 if (_json.containsKey("details")) { | 679 if (_json.containsKey("details")) { |
| 680 details = _json["details"]; | 680 details = _json["details"]; |
| 681 } | 681 } |
| 682 if (_json.containsKey("message")) { | 682 if (_json.containsKey("message")) { |
| 683 message = _json["message"]; | 683 message = _json["message"]; |
| 684 } | 684 } |
| 685 } | 685 } |
| 686 | 686 |
| 687 core.Map toJson() { | 687 core.Map<core.String, core.Object> toJson() { |
| 688 var _json = new core.Map(); | 688 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 689 if (code != null) { | 689 if (code != null) { |
| 690 _json["code"] = code; | 690 _json["code"] = code; |
| 691 } | 691 } |
| 692 if (details != null) { | 692 if (details != null) { |
| 693 _json["details"] = details; | 693 _json["details"] = details; |
| 694 } | 694 } |
| 695 if (message != null) { | 695 if (message != null) { |
| 696 _json["message"] = message; | 696 _json["message"] = message; |
| 697 } | 697 } |
| 698 return _json; | 698 return _json; |
| 699 } | 699 } |
| 700 } | 700 } |
| OLD | NEW |