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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « generated/googleapis/lib/spanner/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 uploadOptions: _uploadOptions, 172 uploadOptions: _uploadOptions,
173 uploadMedia: _uploadMedia, 173 uploadMedia: _uploadMedia,
174 downloadOptions: _downloadOptions); 174 downloadOptions: _downloadOptions);
175 return _response.then((data) => new Operation.fromJson(data)); 175 return _response.then((data) => new Operation.fromJson(data));
176 } 176 }
177 177
178 /** 178 /**
179 * Lists operations that match the specified filter in the request. If the 179 * Lists operations that match the specified filter in the request. If the
180 * server doesn't support this method, it returns `UNIMPLEMENTED`. 180 * server doesn't support this method, it returns `UNIMPLEMENTED`.
181 * 181 *
182 * NOTE: the `name` binding below 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`. 183 * to use different resource name schemes, such as `users / * /operations`. To
184 * override the binding, API services can add a binding such as
185 * `"/v1/{name=users / * }/operations"` to their service configuration.
186 * For backwards compatibility, the default name includes the operations
187 * collection id, however overriding users must ensure the name binding
188 * is the parent resource, without the operations collection id.
184 * 189 *
185 * Request parameters: 190 * Request parameters:
186 * 191 *
192 * [name] - The name of the operation's parent resource.
193 *
194 * [pageToken] - The standard list page token.
195 *
187 * [pageSize] - The standard list page size. 196 * [pageSize] - The standard list page size.
188 * 197 *
189 * [filter] - The standard list filter. 198 * [filter] - The standard list filter.
190 * 199 *
191 * [name] - The name of the operation collection.
192 *
193 * [pageToken] - The standard list page token.
194 *
195 * Completes with a [ListOperationsResponse]. 200 * Completes with a [ListOperationsResponse].
196 * 201 *
197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
198 * error. 203 * error.
199 * 204 *
200 * 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,
201 * this method will complete with the same error. 206 * this method will complete with the same error.
202 */ 207 */
203 async.Future<ListOperationsResponse> list({core.int pageSize, core.String filt er, core.String name, core.String pageToken}) { 208 async.Future<ListOperationsResponse> list({core.String name, core.String pageT oken, core.int pageSize, core.String filter}) {
204 var _url = null; 209 var _url = null;
205 var _queryParams = new core.Map(); 210 var _queryParams = new core.Map();
206 var _uploadMedia = null; 211 var _uploadMedia = null;
207 var _uploadOptions = null; 212 var _uploadOptions = null;
208 var _downloadOptions = commons.DownloadOptions.Metadata; 213 var _downloadOptions = commons.DownloadOptions.Metadata;
209 var _body = null; 214 var _body = null;
210 215
216 if (name != null) {
217 _queryParams["name"] = [name];
218 }
219 if (pageToken != null) {
220 _queryParams["pageToken"] = [pageToken];
221 }
211 if (pageSize != null) { 222 if (pageSize != null) {
212 _queryParams["pageSize"] = ["${pageSize}"]; 223 _queryParams["pageSize"] = ["${pageSize}"];
213 } 224 }
214 if (filter != null) { 225 if (filter != null) {
215 _queryParams["filter"] = [filter]; 226 _queryParams["filter"] = [filter];
216 } 227 }
217 if (name != null) {
218 _queryParams["name"] = [name];
219 }
220 if (pageToken != null) {
221 _queryParams["pageToken"] = [pageToken];
222 }
223 228
224 _url = 'v1/operations'; 229 _url = 'v1/operations';
225 230
226 var _response = _requester.request(_url, 231 var _response = _requester.request(_url,
227 "GET", 232 "GET",
228 body: _body, 233 body: _body,
229 queryParams: _queryParams, 234 queryParams: _queryParams,
230 uploadOptions: _uploadOptions, 235 uploadOptions: _uploadOptions,
231 uploadMedia: _uploadMedia, 236 uploadMedia: _uploadMedia,
232 downloadOptions: _downloadOptions); 237 downloadOptions: _downloadOptions);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 334
330 335
331 /** The request message for Operations.CancelOperation. */ 336 /** The request message for Operations.CancelOperation. */
332 class CancelOperationRequest { 337 class CancelOperationRequest {
333 338
334 CancelOperationRequest(); 339 CancelOperationRequest();
335 340
336 CancelOperationRequest.fromJson(core.Map _json) { 341 CancelOperationRequest.fromJson(core.Map _json) {
337 } 342 }
338 343
339 core.Map toJson() { 344 core.Map<core.String, core.Object> toJson() {
340 var _json = new core.Map(); 345 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
341 return _json; 346 return _json;
342 } 347 }
343 } 348 }
344 349
345 /** 350 /**
346 * A generic empty message that you can re-use to avoid defining duplicated 351 * A generic empty message that you can re-use to avoid defining duplicated
347 * empty messages in your APIs. A typical example is to use it as the request 352 * empty messages in your APIs. A typical example is to use it as the request
348 * or the response type of an API method. For instance: 353 * or the response type of an API method. For instance:
349 * 354 *
350 * service Foo { 355 * service Foo {
351 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 356 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
352 * } 357 * }
353 * 358 *
354 * The JSON representation for `Empty` is empty JSON object `{}`. 359 * The JSON representation for `Empty` is empty JSON object `{}`.
355 */ 360 */
356 class Empty { 361 class Empty {
357 362
358 Empty(); 363 Empty();
359 364
360 Empty.fromJson(core.Map _json) { 365 Empty.fromJson(core.Map _json) {
361 } 366 }
362 367
363 core.Map toJson() { 368 core.Map<core.String, core.Object> toJson() {
364 var _json = new core.Map(); 369 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
365 return _json; 370 return _json;
366 } 371 }
367 } 372 }
368 373
369 /** The response message for Operations.ListOperations. */ 374 /** The response message for Operations.ListOperations. */
370 class ListOperationsResponse { 375 class ListOperationsResponse {
371 /** The standard List next-page token. */ 376 /** The standard List next-page token. */
372 core.String nextPageToken; 377 core.String nextPageToken;
373 /** A list of operations that matches the specified filter in the request. */ 378 /** A list of operations that matches the specified filter in the request. */
374 core.List<Operation> operations; 379 core.List<Operation> operations;
375 380
376 ListOperationsResponse(); 381 ListOperationsResponse();
377 382
378 ListOperationsResponse.fromJson(core.Map _json) { 383 ListOperationsResponse.fromJson(core.Map _json) {
379 if (_json.containsKey("nextPageToken")) { 384 if (_json.containsKey("nextPageToken")) {
380 nextPageToken = _json["nextPageToken"]; 385 nextPageToken = _json["nextPageToken"];
381 } 386 }
382 if (_json.containsKey("operations")) { 387 if (_json.containsKey("operations")) {
383 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList(); 388 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList();
384 } 389 }
385 } 390 }
386 391
387 core.Map toJson() { 392 core.Map<core.String, core.Object> toJson() {
388 var _json = new core.Map(); 393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
389 if (nextPageToken != null) { 394 if (nextPageToken != null) {
390 _json["nextPageToken"] = nextPageToken; 395 _json["nextPageToken"] = nextPageToken;
391 } 396 }
392 if (operations != null) { 397 if (operations != null) {
393 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 398 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
394 } 399 }
395 return _json; 400 return _json;
396 } 401 }
397 } 402 }
398 403
(...skipping 14 matching lines...) Expand all
413 418
414 LongRunningRecognizeRequest.fromJson(core.Map _json) { 419 LongRunningRecognizeRequest.fromJson(core.Map _json) {
415 if (_json.containsKey("audio")) { 420 if (_json.containsKey("audio")) {
416 audio = new RecognitionAudio.fromJson(_json["audio"]); 421 audio = new RecognitionAudio.fromJson(_json["audio"]);
417 } 422 }
418 if (_json.containsKey("config")) { 423 if (_json.containsKey("config")) {
419 config = new RecognitionConfig.fromJson(_json["config"]); 424 config = new RecognitionConfig.fromJson(_json["config"]);
420 } 425 }
421 } 426 }
422 427
423 core.Map toJson() { 428 core.Map<core.String, core.Object> toJson() {
424 var _json = new core.Map(); 429 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
425 if (audio != null) { 430 if (audio != null) {
426 _json["audio"] = (audio).toJson(); 431 _json["audio"] = (audio).toJson();
427 } 432 }
428 if (config != null) { 433 if (config != null) {
429 _json["config"] = (config).toJson(); 434 _json["config"] = (config).toJson();
430 } 435 }
431 return _json; 436 return _json;
432 } 437 }
433 } 438 }
434 439
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 metadata = _json["metadata"]; 494 metadata = _json["metadata"];
490 } 495 }
491 if (_json.containsKey("name")) { 496 if (_json.containsKey("name")) {
492 name = _json["name"]; 497 name = _json["name"];
493 } 498 }
494 if (_json.containsKey("response")) { 499 if (_json.containsKey("response")) {
495 response = _json["response"]; 500 response = _json["response"];
496 } 501 }
497 } 502 }
498 503
499 core.Map toJson() { 504 core.Map<core.String, core.Object> toJson() {
500 var _json = new core.Map(); 505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
501 if (done != null) { 506 if (done != null) {
502 _json["done"] = done; 507 _json["done"] = done;
503 } 508 }
504 if (error != null) { 509 if (error != null) {
505 _json["error"] = (error).toJson(); 510 _json["error"] = (error).toJson();
506 } 511 }
507 if (metadata != null) { 512 if (metadata != null) {
508 _json["metadata"] = metadata; 513 _json["metadata"] = metadata;
509 } 514 }
510 if (name != null) { 515 if (name != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 556
552 RecognitionAudio.fromJson(core.Map _json) { 557 RecognitionAudio.fromJson(core.Map _json) {
553 if (_json.containsKey("content")) { 558 if (_json.containsKey("content")) {
554 content = _json["content"]; 559 content = _json["content"];
555 } 560 }
556 if (_json.containsKey("uri")) { 561 if (_json.containsKey("uri")) {
557 uri = _json["uri"]; 562 uri = _json["uri"];
558 } 563 }
559 } 564 }
560 565
561 core.Map toJson() { 566 core.Map<core.String, core.Object> toJson() {
562 var _json = new core.Map(); 567 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
563 if (content != null) { 568 if (content != null) {
564 _json["content"] = content; 569 _json["content"] = content;
565 } 570 }
566 if (uri != null) { 571 if (uri != null) {
567 _json["uri"] = uri; 572 _json["uri"] = uri;
568 } 573 }
569 return _json; 574 return _json;
570 } 575 }
571 } 576 }
572 577
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 profanityFilter = _json["profanityFilter"]; 672 profanityFilter = _json["profanityFilter"];
668 } 673 }
669 if (_json.containsKey("sampleRateHertz")) { 674 if (_json.containsKey("sampleRateHertz")) {
670 sampleRateHertz = _json["sampleRateHertz"]; 675 sampleRateHertz = _json["sampleRateHertz"];
671 } 676 }
672 if (_json.containsKey("speechContexts")) { 677 if (_json.containsKey("speechContexts")) {
673 speechContexts = _json["speechContexts"].map((value) => new SpeechContext. fromJson(value)).toList(); 678 speechContexts = _json["speechContexts"].map((value) => new SpeechContext. fromJson(value)).toList();
674 } 679 }
675 } 680 }
676 681
677 core.Map toJson() { 682 core.Map<core.String, core.Object> toJson() {
678 var _json = new core.Map(); 683 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
679 if (encoding != null) { 684 if (encoding != null) {
680 _json["encoding"] = encoding; 685 _json["encoding"] = encoding;
681 } 686 }
682 if (languageCode != null) { 687 if (languageCode != null) {
683 _json["languageCode"] = languageCode; 688 _json["languageCode"] = languageCode;
684 } 689 }
685 if (maxAlternatives != null) { 690 if (maxAlternatives != null) {
686 _json["maxAlternatives"] = maxAlternatives; 691 _json["maxAlternatives"] = maxAlternatives;
687 } 692 }
688 if (profanityFilter != null) { 693 if (profanityFilter != null) {
(...skipping 23 matching lines...) Expand all
712 717
713 RecognizeRequest.fromJson(core.Map _json) { 718 RecognizeRequest.fromJson(core.Map _json) {
714 if (_json.containsKey("audio")) { 719 if (_json.containsKey("audio")) {
715 audio = new RecognitionAudio.fromJson(_json["audio"]); 720 audio = new RecognitionAudio.fromJson(_json["audio"]);
716 } 721 }
717 if (_json.containsKey("config")) { 722 if (_json.containsKey("config")) {
718 config = new RecognitionConfig.fromJson(_json["config"]); 723 config = new RecognitionConfig.fromJson(_json["config"]);
719 } 724 }
720 } 725 }
721 726
722 core.Map toJson() { 727 core.Map<core.String, core.Object> toJson() {
723 var _json = new core.Map(); 728 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
724 if (audio != null) { 729 if (audio != null) {
725 _json["audio"] = (audio).toJson(); 730 _json["audio"] = (audio).toJson();
726 } 731 }
727 if (config != null) { 732 if (config != null) {
728 _json["config"] = (config).toJson(); 733 _json["config"] = (config).toJson();
729 } 734 }
730 return _json; 735 return _json;
731 } 736 }
732 } 737 }
733 738
(...skipping 10 matching lines...) Expand all
744 core.List<SpeechRecognitionResult> results; 749 core.List<SpeechRecognitionResult> results;
745 750
746 RecognizeResponse(); 751 RecognizeResponse();
747 752
748 RecognizeResponse.fromJson(core.Map _json) { 753 RecognizeResponse.fromJson(core.Map _json) {
749 if (_json.containsKey("results")) { 754 if (_json.containsKey("results")) {
750 results = _json["results"].map((value) => new SpeechRecognitionResult.from Json(value)).toList(); 755 results = _json["results"].map((value) => new SpeechRecognitionResult.from Json(value)).toList();
751 } 756 }
752 } 757 }
753 758
754 core.Map toJson() { 759 core.Map<core.String, core.Object> toJson() {
755 var _json = new core.Map(); 760 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
756 if (results != null) { 761 if (results != null) {
757 _json["results"] = results.map((value) => (value).toJson()).toList(); 762 _json["results"] = results.map((value) => (value).toJson()).toList();
758 } 763 }
759 return _json; 764 return _json;
760 } 765 }
761 } 766 }
762 767
763 /** 768 /**
764 * Provides "hints" to the speech recognizer to favor specific words and phrases 769 * Provides "hints" to the speech recognizer to favor specific words and phrases
765 * in the results. 770 * in the results.
(...skipping 10 matching lines...) Expand all
776 core.List<core.String> phrases; 781 core.List<core.String> phrases;
777 782
778 SpeechContext(); 783 SpeechContext();
779 784
780 SpeechContext.fromJson(core.Map _json) { 785 SpeechContext.fromJson(core.Map _json) {
781 if (_json.containsKey("phrases")) { 786 if (_json.containsKey("phrases")) {
782 phrases = _json["phrases"]; 787 phrases = _json["phrases"];
783 } 788 }
784 } 789 }
785 790
786 core.Map toJson() { 791 core.Map<core.String, core.Object> toJson() {
787 var _json = new core.Map(); 792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
788 if (phrases != null) { 793 if (phrases != null) {
789 _json["phrases"] = phrases; 794 _json["phrases"] = phrases;
790 } 795 }
791 return _json; 796 return _json;
792 } 797 }
793 } 798 }
794 799
795 /** Alternative hypotheses (a.k.a. n-best list). */ 800 /** Alternative hypotheses (a.k.a. n-best list). */
796 class SpeechRecognitionAlternative { 801 class SpeechRecognitionAlternative {
797 /** 802 /**
(...skipping 15 matching lines...) Expand all
813 818
814 SpeechRecognitionAlternative.fromJson(core.Map _json) { 819 SpeechRecognitionAlternative.fromJson(core.Map _json) {
815 if (_json.containsKey("confidence")) { 820 if (_json.containsKey("confidence")) {
816 confidence = _json["confidence"]; 821 confidence = _json["confidence"];
817 } 822 }
818 if (_json.containsKey("transcript")) { 823 if (_json.containsKey("transcript")) {
819 transcript = _json["transcript"]; 824 transcript = _json["transcript"];
820 } 825 }
821 } 826 }
822 827
823 core.Map toJson() { 828 core.Map<core.String, core.Object> toJson() {
824 var _json = new core.Map(); 829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
825 if (confidence != null) { 830 if (confidence != null) {
826 _json["confidence"] = confidence; 831 _json["confidence"] = confidence;
827 } 832 }
828 if (transcript != null) { 833 if (transcript != null) {
829 _json["transcript"] = transcript; 834 _json["transcript"] = transcript;
830 } 835 }
831 return _json; 836 return _json;
832 } 837 }
833 } 838 }
834 839
835 /** A speech recognition result corresponding to a portion of the audio. */ 840 /** A speech recognition result corresponding to a portion of the audio. */
836 class SpeechRecognitionResult { 841 class SpeechRecognitionResult {
837 /** 842 /**
838 * *Output-only* May contain one or more recognition hypotheses (up to the 843 * *Output-only* May contain one or more recognition hypotheses (up to the
839 * maximum specified in `max_alternatives`). 844 * maximum specified in `max_alternatives`).
840 * These alternatives are ordered in terms of accuracy, with the first/top 845 * These alternatives are ordered in terms of accuracy, with the first/top
841 * alternative being the most probable, as ranked by the recognizer. 846 * alternative being the most probable, as ranked by the recognizer.
842 */ 847 */
843 core.List<SpeechRecognitionAlternative> alternatives; 848 core.List<SpeechRecognitionAlternative> alternatives;
844 849
845 SpeechRecognitionResult(); 850 SpeechRecognitionResult();
846 851
847 SpeechRecognitionResult.fromJson(core.Map _json) { 852 SpeechRecognitionResult.fromJson(core.Map _json) {
848 if (_json.containsKey("alternatives")) { 853 if (_json.containsKey("alternatives")) {
849 alternatives = _json["alternatives"].map((value) => new SpeechRecognitionA lternative.fromJson(value)).toList(); 854 alternatives = _json["alternatives"].map((value) => new SpeechRecognitionA lternative.fromJson(value)).toList();
850 } 855 }
851 } 856 }
852 857
853 core.Map toJson() { 858 core.Map<core.String, core.Object> toJson() {
854 var _json = new core.Map(); 859 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
855 if (alternatives != null) { 860 if (alternatives != null) {
856 _json["alternatives"] = alternatives.map((value) => (value).toJson()).toLi st(); 861 _json["alternatives"] = alternatives.map((value) => (value).toJson()).toLi st();
857 } 862 }
858 return _json; 863 return _json;
859 } 864 }
860 } 865 }
861 866
862 /** 867 /**
863 * The `Status` type defines a logical error model that is suitable for 868 * The `Status` type defines a logical error model that is suitable for
864 * different 869 * different
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 code = _json["code"]; 945 code = _json["code"];
941 } 946 }
942 if (_json.containsKey("details")) { 947 if (_json.containsKey("details")) {
943 details = _json["details"]; 948 details = _json["details"];
944 } 949 }
945 if (_json.containsKey("message")) { 950 if (_json.containsKey("message")) {
946 message = _json["message"]; 951 message = _json["message"];
947 } 952 }
948 } 953 }
949 954
950 core.Map toJson() { 955 core.Map<core.String, core.Object> toJson() {
951 var _json = new core.Map(); 956 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
952 if (code != null) { 957 if (code != null) {
953 _json["code"] = code; 958 _json["code"] = code;
954 } 959 }
955 if (details != null) { 960 if (details != null) {
956 _json["details"] = details; 961 _json["details"] = details;
957 } 962 }
958 if (message != null) { 963 if (message != null) {
959 _json["message"] = message; 964 _json["message"] = message;
960 } 965 }
961 return _json; 966 return _json;
962 } 967 }
963 } 968 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/spanner/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698