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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 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
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.vision.v1; 3 library googleapis.vision.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 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 */ 2121 */
2122 core.List<WebImage> fullMatchingImages; 2122 core.List<WebImage> fullMatchingImages;
2123 /** Web pages containing the matching images from the Internet. */ 2123 /** Web pages containing the matching images from the Internet. */
2124 core.List<WebPage> pagesWithMatchingImages; 2124 core.List<WebPage> pagesWithMatchingImages;
2125 /** 2125 /**
2126 * Partial matching images from the Internet. 2126 * Partial matching images from the Internet.
2127 * Those images are similar enough to share some key-point features. For 2127 * Those images are similar enough to share some key-point features. For
2128 * example an original image will likely have partial matching for its crops. 2128 * example an original image will likely have partial matching for its crops.
2129 */ 2129 */
2130 core.List<WebImage> partialMatchingImages; 2130 core.List<WebImage> partialMatchingImages;
2131 /** The visually similar image results. */
2132 core.List<WebImage> visuallySimilarImages;
2131 /** Deduced entities from similar images on the Internet. */ 2133 /** Deduced entities from similar images on the Internet. */
2132 core.List<WebEntity> webEntities; 2134 core.List<WebEntity> webEntities;
2133 2135
2134 WebDetection(); 2136 WebDetection();
2135 2137
2136 WebDetection.fromJson(core.Map _json) { 2138 WebDetection.fromJson(core.Map _json) {
2137 if (_json.containsKey("fullMatchingImages")) { 2139 if (_json.containsKey("fullMatchingImages")) {
2138 fullMatchingImages = _json["fullMatchingImages"].map((value) => new WebIma ge.fromJson(value)).toList(); 2140 fullMatchingImages = _json["fullMatchingImages"].map((value) => new WebIma ge.fromJson(value)).toList();
2139 } 2141 }
2140 if (_json.containsKey("pagesWithMatchingImages")) { 2142 if (_json.containsKey("pagesWithMatchingImages")) {
2141 pagesWithMatchingImages = _json["pagesWithMatchingImages"].map((value) => new WebPage.fromJson(value)).toList(); 2143 pagesWithMatchingImages = _json["pagesWithMatchingImages"].map((value) => new WebPage.fromJson(value)).toList();
2142 } 2144 }
2143 if (_json.containsKey("partialMatchingImages")) { 2145 if (_json.containsKey("partialMatchingImages")) {
2144 partialMatchingImages = _json["partialMatchingImages"].map((value) => new WebImage.fromJson(value)).toList(); 2146 partialMatchingImages = _json["partialMatchingImages"].map((value) => new WebImage.fromJson(value)).toList();
2145 } 2147 }
2148 if (_json.containsKey("visuallySimilarImages")) {
2149 visuallySimilarImages = _json["visuallySimilarImages"].map((value) => new WebImage.fromJson(value)).toList();
2150 }
2146 if (_json.containsKey("webEntities")) { 2151 if (_json.containsKey("webEntities")) {
2147 webEntities = _json["webEntities"].map((value) => new WebEntity.fromJson(v alue)).toList(); 2152 webEntities = _json["webEntities"].map((value) => new WebEntity.fromJson(v alue)).toList();
2148 } 2153 }
2149 } 2154 }
2150 2155
2151 core.Map toJson() { 2156 core.Map toJson() {
2152 var _json = new core.Map(); 2157 var _json = new core.Map();
2153 if (fullMatchingImages != null) { 2158 if (fullMatchingImages != null) {
2154 _json["fullMatchingImages"] = fullMatchingImages.map((value) => (value).to Json()).toList(); 2159 _json["fullMatchingImages"] = fullMatchingImages.map((value) => (value).to Json()).toList();
2155 } 2160 }
2156 if (pagesWithMatchingImages != null) { 2161 if (pagesWithMatchingImages != null) {
2157 _json["pagesWithMatchingImages"] = pagesWithMatchingImages.map((value) => (value).toJson()).toList(); 2162 _json["pagesWithMatchingImages"] = pagesWithMatchingImages.map((value) => (value).toJson()).toList();
2158 } 2163 }
2159 if (partialMatchingImages != null) { 2164 if (partialMatchingImages != null) {
2160 _json["partialMatchingImages"] = partialMatchingImages.map((value) => (val ue).toJson()).toList(); 2165 _json["partialMatchingImages"] = partialMatchingImages.map((value) => (val ue).toJson()).toList();
2161 } 2166 }
2167 if (visuallySimilarImages != null) {
2168 _json["visuallySimilarImages"] = visuallySimilarImages.map((value) => (val ue).toJson()).toList();
2169 }
2162 if (webEntities != null) { 2170 if (webEntities != null) {
2163 _json["webEntities"] = webEntities.map((value) => (value).toJson()).toList (); 2171 _json["webEntities"] = webEntities.map((value) => (value).toJson()).toList ();
2164 } 2172 }
2165 return _json; 2173 return _json;
2166 } 2174 }
2167 } 2175 }
2168 2176
2169 /** Entity deduced from similar images on the Internet. */ 2177 /** Entity deduced from similar images on the Internet. */
2170 class WebEntity { 2178 class WebEntity {
2171 /** Canonical description of the entity, in English. */ 2179 /** Canonical description of the entity, in English. */
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2322 } 2330 }
2323 if (property != null) { 2331 if (property != null) {
2324 _json["property"] = (property).toJson(); 2332 _json["property"] = (property).toJson();
2325 } 2333 }
2326 if (symbols != null) { 2334 if (symbols != null) {
2327 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); 2335 _json["symbols"] = symbols.map((value) => (value).toJson()).toList();
2328 } 2336 }
2329 return _json; 2337 return _json;
2330 } 2338 }
2331 } 2339 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/tracing/v1.dart ('k') | generated/googleapis/lib/youtubereporting/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698