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.speech.v1beta1; | 3 library googleapis_beta.speech.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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 | 238 |
239 class SpeechResourceApi { | 239 class SpeechResourceApi { |
240 final commons.ApiRequester _requester; | 240 final commons.ApiRequester _requester; |
241 | 241 |
242 SpeechResourceApi(commons.ApiRequester client) : | 242 SpeechResourceApi(commons.ApiRequester client) : |
243 _requester = client; | 243 _requester = client; |
244 | 244 |
245 /** | 245 /** |
246 * Performs asynchronous speech recognition: receive results via the | 246 * Performs asynchronous speech recognition: receive results via the |
247 * google.longrunning.Operations interface. Returns either an | 247 * [google.longrunning.Operations] |
| 248 * (/speech/reference/rest/v1beta1/operations#Operation) |
| 249 * interface. Returns either an |
248 * `Operation.error` or an `Operation.response` which contains | 250 * `Operation.error` or an `Operation.response` which contains |
249 * an `AsyncRecognizeResponse` message. | 251 * an `AsyncRecognizeResponse` message. |
250 * | 252 * |
251 * [request] - The metadata request object. | 253 * [request] - The metadata request object. |
252 * | 254 * |
253 * Request parameters: | 255 * Request parameters: |
254 * | 256 * |
255 * Completes with a [Operation]. | 257 * Completes with a [Operation]. |
256 * | 258 * |
257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 259 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 } | 940 } |
939 | 941 |
940 core.Map toJson() { | 942 core.Map toJson() { |
941 var _json = new core.Map(); | 943 var _json = new core.Map(); |
942 if (results != null) { | 944 if (results != null) { |
943 _json["results"] = results.map((value) => (value).toJson()).toList(); | 945 _json["results"] = results.map((value) => (value).toJson()).toList(); |
944 } | 946 } |
945 return _json; | 947 return _json; |
946 } | 948 } |
947 } | 949 } |
OLD | NEW |