| 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.language.v1; | 3 library googleapis.language.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 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 | 35 |
| 36 class DocumentsResourceApi { | 36 class DocumentsResourceApi { |
| 37 final commons.ApiRequester _requester; | 37 final commons.ApiRequester _requester; |
| 38 | 38 |
| 39 DocumentsResourceApi(commons.ApiRequester client) : | 39 DocumentsResourceApi(commons.ApiRequester client) : |
| 40 _requester = client; | 40 _requester = client; |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Finds named entities (currently finds proper names) in the text, | 43 * Finds named entities (currently proper names and common nouns) in the text |
| 44 * entity types, salience, mentions for each entity, and other properties. | 44 * along with entity types, salience, mentions for each entity, and |
| 45 * other properties. |
| 45 * | 46 * |
| 46 * [request] - The metadata request object. | 47 * [request] - The metadata request object. |
| 47 * | 48 * |
| 48 * Request parameters: | 49 * Request parameters: |
| 49 * | 50 * |
| 50 * Completes with a [AnalyzeEntitiesResponse]. | 51 * Completes with a [AnalyzeEntitiesResponse]. |
| 51 * | 52 * |
| 52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 53 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 53 * error. | 54 * error. |
| 54 * | 55 * |
| (...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 } | 1451 } |
| 1451 if (partOfSpeech != null) { | 1452 if (partOfSpeech != null) { |
| 1452 _json["partOfSpeech"] = (partOfSpeech).toJson(); | 1453 _json["partOfSpeech"] = (partOfSpeech).toJson(); |
| 1453 } | 1454 } |
| 1454 if (text != null) { | 1455 if (text != null) { |
| 1455 _json["text"] = (text).toJson(); | 1456 _json["text"] = (text).toJson(); |
| 1456 } | 1457 } |
| 1457 return _json; | 1458 return _json; |
| 1458 } | 1459 } |
| 1459 } | 1460 } |
| OLD | NEW |