| 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.speech.v1; | 3 library googleapis.speech.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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 * NOTE: the `name` binding allows API services to override the binding | 182 * NOTE: the `name` binding allows API services to override the binding |
| 183 * to use different resource name schemes, such as `users / * /operations`. To | 183 * to use different resource name schemes, such as `users / * /operations`. To |
| 184 * override the binding, API services can add a binding such as | 184 * override the binding, API services can add a binding such as |
| 185 * `"/v1/{name=users / * }/operations"` to their service configuration. | 185 * `"/v1/{name=users / * }/operations"` to their service configuration. |
| 186 * For backwards compatibility, the default name includes the operations | 186 * For backwards compatibility, the default name includes the operations |
| 187 * collection id, however overriding users must ensure the name binding | 187 * collection id, however overriding users must ensure the name binding |
| 188 * is the parent resource, without the operations collection id. | 188 * is the parent resource, without the operations collection id. |
| 189 * | 189 * |
| 190 * Request parameters: | 190 * Request parameters: |
| 191 * | 191 * |
| 192 * [name] - The name of the operation's parent resource. | 192 * [filter] - The standard list filter. |
| 193 * | 193 * |
| 194 * [pageToken] - The standard list page token. | 194 * [pageToken] - The standard list page token. |
| 195 * | 195 * |
| 196 * [name] - The name of the operation's parent resource. |
| 197 * |
| 196 * [pageSize] - The standard list page size. | 198 * [pageSize] - The standard list page size. |
| 197 * | 199 * |
| 198 * [filter] - The standard list filter. | |
| 199 * | |
| 200 * Completes with a [ListOperationsResponse]. | 200 * Completes with a [ListOperationsResponse]. |
| 201 * | 201 * |
| 202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 203 * error. | 203 * error. |
| 204 * | 204 * |
| 205 * If the used [http.Client] completes with an error when making a REST call, | 205 * If the used [http.Client] completes with an error when making a REST call, |
| 206 * this method will complete with the same error. | 206 * this method will complete with the same error. |
| 207 */ | 207 */ |
| 208 async.Future<ListOperationsResponse> list({core.String name, core.String pageT
oken, core.int pageSize, core.String filter}) { | 208 async.Future<ListOperationsResponse> list({core.String filter, core.String pag
eToken, core.String name, core.int pageSize}) { |
| 209 var _url = null; | 209 var _url = null; |
| 210 var _queryParams = new core.Map(); | 210 var _queryParams = new core.Map(); |
| 211 var _uploadMedia = null; | 211 var _uploadMedia = null; |
| 212 var _uploadOptions = null; | 212 var _uploadOptions = null; |
| 213 var _downloadOptions = commons.DownloadOptions.Metadata; | 213 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 214 var _body = null; | 214 var _body = null; |
| 215 | 215 |
| 216 if (name != null) { | 216 if (filter != null) { |
| 217 _queryParams["name"] = [name]; | 217 _queryParams["filter"] = [filter]; |
| 218 } | 218 } |
| 219 if (pageToken != null) { | 219 if (pageToken != null) { |
| 220 _queryParams["pageToken"] = [pageToken]; | 220 _queryParams["pageToken"] = [pageToken]; |
| 221 } | 221 } |
| 222 if (name != null) { |
| 223 _queryParams["name"] = [name]; |
| 224 } |
| 222 if (pageSize != null) { | 225 if (pageSize != null) { |
| 223 _queryParams["pageSize"] = ["${pageSize}"]; | 226 _queryParams["pageSize"] = ["${pageSize}"]; |
| 224 } | 227 } |
| 225 if (filter != null) { | |
| 226 _queryParams["filter"] = [filter]; | |
| 227 } | |
| 228 | 228 |
| 229 _url = 'v1/operations'; | 229 _url = 'v1/operations'; |
| 230 | 230 |
| 231 var _response = _requester.request(_url, | 231 var _response = _requester.request(_url, |
| 232 "GET", | 232 "GET", |
| 233 body: _body, | 233 body: _body, |
| 234 queryParams: _queryParams, | 234 queryParams: _queryParams, |
| 235 uploadOptions: _uploadOptions, | 235 uploadOptions: _uploadOptions, |
| 236 uploadMedia: _uploadMedia, | 236 uploadMedia: _uploadMedia, |
| 237 downloadOptions: _downloadOptions); | 237 downloadOptions: _downloadOptions); |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 } | 797 } |
| 798 } | 798 } |
| 799 | 799 |
| 800 /** Alternative hypotheses (a.k.a. n-best list). */ | 800 /** Alternative hypotheses (a.k.a. n-best list). */ |
| 801 class SpeechRecognitionAlternative { | 801 class SpeechRecognitionAlternative { |
| 802 /** | 802 /** |
| 803 * *Output-only* The confidence estimate between 0.0 and 1.0. A higher number | 803 * *Output-only* The confidence estimate between 0.0 and 1.0. A higher number |
| 804 * indicates an estimated greater likelihood that the recognized words are | 804 * indicates an estimated greater likelihood that the recognized words are |
| 805 * correct. This field is typically provided only for the top hypothesis, and | 805 * correct. This field is typically provided only for the top hypothesis, and |
| 806 * only for `is_final=true` results. Clients should not rely on the | 806 * only for `is_final=true` results. Clients should not rely on the |
| 807 * `confidence` field as it is not guaranteed to be accurate, or even set, in | 807 * `confidence` field as it is not guaranteed to be accurate or consistent. |
| 808 * any of the results. | |
| 809 * The default of 0.0 is a sentinel value indicating `confidence` was not set. | 808 * The default of 0.0 is a sentinel value indicating `confidence` was not set. |
| 810 */ | 809 */ |
| 811 core.double confidence; | 810 core.double confidence; |
| 812 /** | 811 /** |
| 813 * *Output-only* Transcript text representing the words that the user spoke. | 812 * *Output-only* Transcript text representing the words that the user spoke. |
| 814 */ | 813 */ |
| 815 core.String transcript; | 814 core.String transcript; |
| 816 | 815 |
| 817 SpeechRecognitionAlternative(); | 816 SpeechRecognitionAlternative(); |
| 818 | 817 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 } | 958 } |
| 960 if (details != null) { | 959 if (details != null) { |
| 961 _json["details"] = details; | 960 _json["details"] = details; |
| 962 } | 961 } |
| 963 if (message != null) { | 962 if (message != null) { |
| 964 _json["message"] = message; | 963 _json["message"] = message; |
| 965 } | 964 } |
| 966 return _json; | 965 return _json; |
| 967 } | 966 } |
| 968 } | 967 } |
| OLD | NEW |