| 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.genomics.v1; | 3 library googleapis.genomics.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 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3072 return _json; | 3072 return _json; |
| 3073 } | 3073 } |
| 3074 } | 3074 } |
| 3075 | 3075 |
| 3076 class BatchCreateAnnotationsRequest { | 3076 class BatchCreateAnnotationsRequest { |
| 3077 /** | 3077 /** |
| 3078 * The annotations to be created. At most 4096 can be specified in a single | 3078 * The annotations to be created. At most 4096 can be specified in a single |
| 3079 * request. | 3079 * request. |
| 3080 */ | 3080 */ |
| 3081 core.List<Annotation> annotations; | 3081 core.List<Annotation> annotations; |
| 3082 /** |
| 3083 * A unique request ID which enables the server to detect duplicated requests. |
| 3084 * If provided, duplicated requests will result in the same response; if not |
| 3085 * provided, duplicated requests may result in duplicated data. For a given |
| 3086 * annotation set, callers should not reuse `request_id`s when writing |
| 3087 * different batches of annotations - behavior in this case is undefined. A |
| 3088 * common approach is to use a UUID. For batch jobs where worker crashes are a |
| 3089 * possibility, consider using some unique variant of a worker or run ID. |
| 3090 */ |
| 3091 core.String requestId; |
| 3082 | 3092 |
| 3083 BatchCreateAnnotationsRequest(); | 3093 BatchCreateAnnotationsRequest(); |
| 3084 | 3094 |
| 3085 BatchCreateAnnotationsRequest.fromJson(core.Map _json) { | 3095 BatchCreateAnnotationsRequest.fromJson(core.Map _json) { |
| 3086 if (_json.containsKey("annotations")) { | 3096 if (_json.containsKey("annotations")) { |
| 3087 annotations = _json["annotations"].map((value) => new Annotation.fromJson(
value)).toList(); | 3097 annotations = _json["annotations"].map((value) => new Annotation.fromJson(
value)).toList(); |
| 3088 } | 3098 } |
| 3099 if (_json.containsKey("requestId")) { |
| 3100 requestId = _json["requestId"]; |
| 3101 } |
| 3089 } | 3102 } |
| 3090 | 3103 |
| 3091 core.Map toJson() { | 3104 core.Map toJson() { |
| 3092 var _json = new core.Map(); | 3105 var _json = new core.Map(); |
| 3093 if (annotations != null) { | 3106 if (annotations != null) { |
| 3094 _json["annotations"] = annotations.map((value) => (value).toJson()).toList
(); | 3107 _json["annotations"] = annotations.map((value) => (value).toJson()).toList
(); |
| 3095 } | 3108 } |
| 3109 if (requestId != null) { |
| 3110 _json["requestId"] = requestId; |
| 3111 } |
| 3096 return _json; | 3112 return _json; |
| 3097 } | 3113 } |
| 3098 } | 3114 } |
| 3099 | 3115 |
| 3100 class BatchCreateAnnotationsResponse { | 3116 class BatchCreateAnnotationsResponse { |
| 3101 /** | 3117 /** |
| 3102 * The resulting per-annotation entries, ordered consistently with the | 3118 * The resulting per-annotation entries, ordered consistently with the |
| 3103 * original request. | 3119 * original request. |
| 3104 */ | 3120 */ |
| 3105 core.List<Entry> entries; | 3121 core.List<Entry> entries; |
| (...skipping 4331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7437 } | 7453 } |
| 7438 if (type != null) { | 7454 if (type != null) { |
| 7439 _json["type"] = type; | 7455 _json["type"] = type; |
| 7440 } | 7456 } |
| 7441 if (value != null) { | 7457 if (value != null) { |
| 7442 _json["value"] = value; | 7458 _json["value"] = value; |
| 7443 } | 7459 } |
| 7444 return _json; | 7460 return _json; |
| 7445 } | 7461 } |
| 7446 } | 7462 } |
| OLD | NEW |