Index: generated/googleapis_beta/lib/speech/v1beta1.dart |
diff --git a/generated/googleapis_beta/lib/speech/v1beta1.dart b/generated/googleapis_beta/lib/speech/v1beta1.dart |
index e01321f4c2273a7e8add520c5454a87984d80fbe..6d52e06ddcf994e25659d83c6c063ecc386305c9 100644 |
--- a/generated/googleapis_beta/lib/speech/v1beta1.dart |
+++ b/generated/googleapis_beta/lib/speech/v1beta1.dart |
@@ -174,19 +174,24 @@ class OperationsResourceApi { |
* Lists operations that match the specified filter in the request. If the |
* server doesn't support this method, it returns `UNIMPLEMENTED`. |
* |
- * NOTE: the `name` binding below allows API services to override the binding |
- * to use different resource name schemes, such as `users / * /operations`. |
+ * NOTE: the `name` binding allows API services to override the binding |
+ * to use different resource name schemes, such as `users / * /operations`. To |
+ * override the binding, API services can add a binding such as |
+ * `"/v1/{name=users / * }/operations"` to their service configuration. |
+ * For backwards compatibility, the default name includes the operations |
+ * collection id, however overriding users must ensure the name binding |
+ * is the parent resource, without the operations collection id. |
* |
* Request parameters: |
* |
- * [name] - The name of the operation collection. |
+ * [filter] - The standard list filter. |
+ * |
+ * [name] - The name of the operation's parent resource. |
* |
* [pageToken] - The standard list page token. |
* |
* [pageSize] - The standard list page size. |
* |
- * [filter] - The standard list filter. |
- * |
* Completes with a [ListOperationsResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
@@ -195,7 +200,7 @@ class OperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListOperationsResponse> list({core.String name, core.String pageToken, core.int pageSize, core.String filter}) { |
+ async.Future<ListOperationsResponse> list({core.String filter, core.String name, core.String pageToken, core.int pageSize}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -203,6 +208,9 @@ class OperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (filter != null) { |
+ _queryParams["filter"] = [filter]; |
+ } |
if (name != null) { |
_queryParams["name"] = [name]; |
} |
@@ -212,9 +220,6 @@ class OperationsResourceApi { |
if (pageSize != null) { |
_queryParams["pageSize"] = ["${pageSize}"]; |
} |
- if (filter != null) { |
- _queryParams["filter"] = [filter]; |
- } |
_url = 'v1beta1/operations'; |
@@ -348,8 +353,8 @@ class AsyncRecognizeRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (audio != null) { |
_json["audio"] = (audio).toJson(); |
} |
@@ -378,8 +383,8 @@ class Empty { |
Empty.fromJson(core.Map _json) { |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
@@ -402,8 +407,8 @@ class ListOperationsResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -478,8 +483,8 @@ class Operation { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (done != null) { |
_json["done"] = done; |
} |
@@ -540,8 +545,8 @@ class RecognitionAudio { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (content != null) { |
_json["content"] = content; |
} |
@@ -641,8 +646,8 @@ class RecognitionConfig { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (encoding != null) { |
_json["encoding"] = encoding; |
} |
@@ -688,8 +693,8 @@ class SpeechContext { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (phrases != null) { |
_json["phrases"] = phrases; |
} |
@@ -725,8 +730,8 @@ class SpeechRecognitionAlternative { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (confidence != null) { |
_json["confidence"] = confidence; |
} |
@@ -753,8 +758,8 @@ class SpeechRecognitionResult { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (alternatives != null) { |
_json["alternatives"] = alternatives.map((value) => (value).toJson()).toList(); |
} |
@@ -850,8 +855,8 @@ class Status { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (code != null) { |
_json["code"] = code; |
} |
@@ -886,8 +891,8 @@ class SyncRecognizeRequest { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (audio != null) { |
_json["audio"] = (audio).toJson(); |
} |
@@ -918,8 +923,8 @@ class SyncRecognizeResponse { |
} |
} |
- core.Map toJson() { |
- var _json = new core.Map(); |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
if (results != null) { |
_json["results"] = results.map((value) => (value).toJson()).toList(); |
} |