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

Side by Side Diff: generated/googleapis/lib/safebrowsing/v4.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/runtimeconfig/v1.dart ('k') | generated/googleapis/lib/script/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.safebrowsing.v4; 3 library googleapis.safebrowsing.v4;
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 final commons.ApiRequester _requester; 98 final commons.ApiRequester _requester;
99 99
100 EncodedUpdatesResourceApi(commons.ApiRequester client) : 100 EncodedUpdatesResourceApi(commons.ApiRequester client) :
101 _requester = client; 101 _requester = client;
102 102
103 /** 103 /**
104 * Request parameters: 104 * Request parameters:
105 * 105 *
106 * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto. 106 * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto.
107 * 107 *
108 * [clientVersion] - The version of the client implementation.
109 *
108 * [clientId] - A client ID that uniquely identifies the client implementation 110 * [clientId] - A client ID that uniquely identifies the client implementation
109 * of the Safe 111 * of the Safe
110 * Browsing API. 112 * Browsing API.
111 * 113 *
112 * [clientVersion] - The version of the client implementation.
113 *
114 * Completes with a [FetchThreatListUpdatesResponse]. 114 * Completes with a [FetchThreatListUpdatesResponse].
115 * 115 *
116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
117 * error. 117 * error.
118 * 118 *
119 * If the used [http.Client] completes with an error when making a REST call, 119 * If the used [http.Client] completes with an error when making a REST call,
120 * this method will complete with the same error. 120 * this method will complete with the same error.
121 */ 121 */
122 async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, { core.String clientId, core.String clientVersion}) { 122 async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, { core.String clientVersion, core.String clientId}) {
123 var _url = null; 123 var _url = null;
124 var _queryParams = new core.Map(); 124 var _queryParams = new core.Map();
125 var _uploadMedia = null; 125 var _uploadMedia = null;
126 var _uploadOptions = null; 126 var _uploadOptions = null;
127 var _downloadOptions = commons.DownloadOptions.Metadata; 127 var _downloadOptions = commons.DownloadOptions.Metadata;
128 var _body = null; 128 var _body = null;
129 129
130 if (encodedRequest == null) { 130 if (encodedRequest == null) {
131 throw new core.ArgumentError("Parameter encodedRequest is required."); 131 throw new core.ArgumentError("Parameter encodedRequest is required.");
132 } 132 }
133 if (clientVersion != null) {
134 _queryParams["clientVersion"] = [clientVersion];
135 }
133 if (clientId != null) { 136 if (clientId != null) {
134 _queryParams["clientId"] = [clientId]; 137 _queryParams["clientId"] = [clientId];
135 } 138 }
136 if (clientVersion != null) {
137 _queryParams["clientVersion"] = [clientVersion];
138 }
139 139
140 _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest '); 140 _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest ');
141 141
142 var _response = _requester.request(_url, 142 var _response = _requester.request(_url,
143 "GET", 143 "GET",
144 body: _body, 144 body: _body,
145 queryParams: _queryParams, 145 queryParams: _queryParams,
146 uploadOptions: _uploadOptions, 146 uploadOptions: _uploadOptions,
147 uploadMedia: _uploadMedia, 147 uploadMedia: _uploadMedia,
148 downloadOptions: _downloadOptions); 148 downloadOptions: _downloadOptions);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 357 }
358 358
359 Checksum(); 359 Checksum();
360 360
361 Checksum.fromJson(core.Map _json) { 361 Checksum.fromJson(core.Map _json) {
362 if (_json.containsKey("sha256")) { 362 if (_json.containsKey("sha256")) {
363 sha256 = _json["sha256"]; 363 sha256 = _json["sha256"];
364 } 364 }
365 } 365 }
366 366
367 core.Map toJson() { 367 core.Map<core.String, core.Object> toJson() {
368 var _json = new core.Map(); 368 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
369 if (sha256 != null) { 369 if (sha256 != null) {
370 _json["sha256"] = sha256; 370 _json["sha256"] = sha256;
371 } 371 }
372 return _json; 372 return _json;
373 } 373 }
374 } 374 }
375 375
376 /** The client metadata associated with Safe Browsing API requests. */ 376 /** The client metadata associated with Safe Browsing API requests. */
377 class ClientInfo { 377 class ClientInfo {
378 /** 378 /**
379 * A client ID that (hopefully) uniquely identifies the client implementation 379 * A client ID that (hopefully) uniquely identifies the client implementation
380 * of the Safe Browsing API. 380 * of the Safe Browsing API.
381 */ 381 */
382 core.String clientId; 382 core.String clientId;
383 /** The version of the client implementation. */ 383 /** The version of the client implementation. */
384 core.String clientVersion; 384 core.String clientVersion;
385 385
386 ClientInfo(); 386 ClientInfo();
387 387
388 ClientInfo.fromJson(core.Map _json) { 388 ClientInfo.fromJson(core.Map _json) {
389 if (_json.containsKey("clientId")) { 389 if (_json.containsKey("clientId")) {
390 clientId = _json["clientId"]; 390 clientId = _json["clientId"];
391 } 391 }
392 if (_json.containsKey("clientVersion")) { 392 if (_json.containsKey("clientVersion")) {
393 clientVersion = _json["clientVersion"]; 393 clientVersion = _json["clientVersion"];
394 } 394 }
395 } 395 }
396 396
397 core.Map toJson() { 397 core.Map<core.String, core.Object> toJson() {
398 var _json = new core.Map(); 398 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
399 if (clientId != null) { 399 if (clientId != null) {
400 _json["clientId"] = clientId; 400 _json["clientId"] = clientId;
401 } 401 }
402 if (clientVersion != null) { 402 if (clientVersion != null) {
403 _json["clientVersion"] = clientVersion; 403 _json["clientVersion"] = clientVersion;
404 } 404 }
405 return _json; 405 return _json;
406 } 406 }
407 } 407 }
408 408
(...skipping 30 matching lines...) Expand all
439 maxUpdateEntries = _json["maxUpdateEntries"]; 439 maxUpdateEntries = _json["maxUpdateEntries"];
440 } 440 }
441 if (_json.containsKey("region")) { 441 if (_json.containsKey("region")) {
442 region = _json["region"]; 442 region = _json["region"];
443 } 443 }
444 if (_json.containsKey("supportedCompressions")) { 444 if (_json.containsKey("supportedCompressions")) {
445 supportedCompressions = _json["supportedCompressions"]; 445 supportedCompressions = _json["supportedCompressions"];
446 } 446 }
447 } 447 }
448 448
449 core.Map toJson() { 449 core.Map<core.String, core.Object> toJson() {
450 var _json = new core.Map(); 450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
451 if (maxDatabaseEntries != null) { 451 if (maxDatabaseEntries != null) {
452 _json["maxDatabaseEntries"] = maxDatabaseEntries; 452 _json["maxDatabaseEntries"] = maxDatabaseEntries;
453 } 453 }
454 if (maxUpdateEntries != null) { 454 if (maxUpdateEntries != null) {
455 _json["maxUpdateEntries"] = maxUpdateEntries; 455 _json["maxUpdateEntries"] = maxUpdateEntries;
456 } 456 }
457 if (region != null) { 457 if (region != null) {
458 _json["region"] = region; 458 _json["region"] = region;
459 } 459 }
460 if (supportedCompressions != null) { 460 if (supportedCompressions != null) {
(...skipping 19 matching lines...) Expand all
480 480
481 FetchThreatListUpdatesRequest.fromJson(core.Map _json) { 481 FetchThreatListUpdatesRequest.fromJson(core.Map _json) {
482 if (_json.containsKey("client")) { 482 if (_json.containsKey("client")) {
483 client = new ClientInfo.fromJson(_json["client"]); 483 client = new ClientInfo.fromJson(_json["client"]);
484 } 484 }
485 if (_json.containsKey("listUpdateRequests")) { 485 if (_json.containsKey("listUpdateRequests")) {
486 listUpdateRequests = _json["listUpdateRequests"].map((value) => new ListUp dateRequest.fromJson(value)).toList(); 486 listUpdateRequests = _json["listUpdateRequests"].map((value) => new ListUp dateRequest.fromJson(value)).toList();
487 } 487 }
488 } 488 }
489 489
490 core.Map toJson() { 490 core.Map<core.String, core.Object> toJson() {
491 var _json = new core.Map(); 491 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
492 if (client != null) { 492 if (client != null) {
493 _json["client"] = (client).toJson(); 493 _json["client"] = (client).toJson();
494 } 494 }
495 if (listUpdateRequests != null) { 495 if (listUpdateRequests != null) {
496 _json["listUpdateRequests"] = listUpdateRequests.map((value) => (value).to Json()).toList(); 496 _json["listUpdateRequests"] = listUpdateRequests.map((value) => (value).to Json()).toList();
497 } 497 }
498 return _json; 498 return _json;
499 } 499 }
500 } 500 }
501 501
(...skipping 10 matching lines...) Expand all
512 512
513 FetchThreatListUpdatesResponse.fromJson(core.Map _json) { 513 FetchThreatListUpdatesResponse.fromJson(core.Map _json) {
514 if (_json.containsKey("listUpdateResponses")) { 514 if (_json.containsKey("listUpdateResponses")) {
515 listUpdateResponses = _json["listUpdateResponses"].map((value) => new List UpdateResponse.fromJson(value)).toList(); 515 listUpdateResponses = _json["listUpdateResponses"].map((value) => new List UpdateResponse.fromJson(value)).toList();
516 } 516 }
517 if (_json.containsKey("minimumWaitDuration")) { 517 if (_json.containsKey("minimumWaitDuration")) {
518 minimumWaitDuration = _json["minimumWaitDuration"]; 518 minimumWaitDuration = _json["minimumWaitDuration"];
519 } 519 }
520 } 520 }
521 521
522 core.Map toJson() { 522 core.Map<core.String, core.Object> toJson() {
523 var _json = new core.Map(); 523 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
524 if (listUpdateResponses != null) { 524 if (listUpdateResponses != null) {
525 _json["listUpdateResponses"] = listUpdateResponses.map((value) => (value). toJson()).toList(); 525 _json["listUpdateResponses"] = listUpdateResponses.map((value) => (value). toJson()).toList();
526 } 526 }
527 if (minimumWaitDuration != null) { 527 if (minimumWaitDuration != null) {
528 _json["minimumWaitDuration"] = minimumWaitDuration; 528 _json["minimumWaitDuration"] = minimumWaitDuration;
529 } 529 }
530 return _json; 530 return _json;
531 } 531 }
532 } 532 }
533 533
(...skipping 21 matching lines...) Expand all
555 client = new ClientInfo.fromJson(_json["client"]); 555 client = new ClientInfo.fromJson(_json["client"]);
556 } 556 }
557 if (_json.containsKey("clientStates")) { 557 if (_json.containsKey("clientStates")) {
558 clientStates = _json["clientStates"]; 558 clientStates = _json["clientStates"];
559 } 559 }
560 if (_json.containsKey("threatInfo")) { 560 if (_json.containsKey("threatInfo")) {
561 threatInfo = new ThreatInfo.fromJson(_json["threatInfo"]); 561 threatInfo = new ThreatInfo.fromJson(_json["threatInfo"]);
562 } 562 }
563 } 563 }
564 564
565 core.Map toJson() { 565 core.Map<core.String, core.Object> toJson() {
566 var _json = new core.Map(); 566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
567 if (apiClient != null) { 567 if (apiClient != null) {
568 _json["apiClient"] = (apiClient).toJson(); 568 _json["apiClient"] = (apiClient).toJson();
569 } 569 }
570 if (client != null) { 570 if (client != null) {
571 _json["client"] = (client).toJson(); 571 _json["client"] = (client).toJson();
572 } 572 }
573 if (clientStates != null) { 573 if (clientStates != null) {
574 _json["clientStates"] = clientStates; 574 _json["clientStates"] = clientStates;
575 } 575 }
576 if (threatInfo != null) { 576 if (threatInfo != null) {
(...skipping 25 matching lines...) Expand all
602 matches = _json["matches"].map((value) => new ThreatMatch.fromJson(value)) .toList(); 602 matches = _json["matches"].map((value) => new ThreatMatch.fromJson(value)) .toList();
603 } 603 }
604 if (_json.containsKey("minimumWaitDuration")) { 604 if (_json.containsKey("minimumWaitDuration")) {
605 minimumWaitDuration = _json["minimumWaitDuration"]; 605 minimumWaitDuration = _json["minimumWaitDuration"];
606 } 606 }
607 if (_json.containsKey("negativeCacheDuration")) { 607 if (_json.containsKey("negativeCacheDuration")) {
608 negativeCacheDuration = _json["negativeCacheDuration"]; 608 negativeCacheDuration = _json["negativeCacheDuration"];
609 } 609 }
610 } 610 }
611 611
612 core.Map toJson() { 612 core.Map<core.String, core.Object> toJson() {
613 var _json = new core.Map(); 613 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
614 if (matches != null) { 614 if (matches != null) {
615 _json["matches"] = matches.map((value) => (value).toJson()).toList(); 615 _json["matches"] = matches.map((value) => (value).toJson()).toList();
616 } 616 }
617 if (minimumWaitDuration != null) { 617 if (minimumWaitDuration != null) {
618 _json["minimumWaitDuration"] = minimumWaitDuration; 618 _json["minimumWaitDuration"] = minimumWaitDuration;
619 } 619 }
620 if (negativeCacheDuration != null) { 620 if (negativeCacheDuration != null) {
621 _json["negativeCacheDuration"] = negativeCacheDuration; 621 _json["negativeCacheDuration"] = negativeCacheDuration;
622 } 622 }
623 return _json; 623 return _json;
(...skipping 11 matching lines...) Expand all
635 635
636 FindThreatMatchesRequest.fromJson(core.Map _json) { 636 FindThreatMatchesRequest.fromJson(core.Map _json) {
637 if (_json.containsKey("client")) { 637 if (_json.containsKey("client")) {
638 client = new ClientInfo.fromJson(_json["client"]); 638 client = new ClientInfo.fromJson(_json["client"]);
639 } 639 }
640 if (_json.containsKey("threatInfo")) { 640 if (_json.containsKey("threatInfo")) {
641 threatInfo = new ThreatInfo.fromJson(_json["threatInfo"]); 641 threatInfo = new ThreatInfo.fromJson(_json["threatInfo"]);
642 } 642 }
643 } 643 }
644 644
645 core.Map toJson() { 645 core.Map<core.String, core.Object> toJson() {
646 var _json = new core.Map(); 646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
647 if (client != null) { 647 if (client != null) {
648 _json["client"] = (client).toJson(); 648 _json["client"] = (client).toJson();
649 } 649 }
650 if (threatInfo != null) { 650 if (threatInfo != null) {
651 _json["threatInfo"] = (threatInfo).toJson(); 651 _json["threatInfo"] = (threatInfo).toJson();
652 } 652 }
653 return _json; 653 return _json;
654 } 654 }
655 } 655 }
656 656
657 class FindThreatMatchesResponse { 657 class FindThreatMatchesResponse {
658 /** The threat list matches. */ 658 /** The threat list matches. */
659 core.List<ThreatMatch> matches; 659 core.List<ThreatMatch> matches;
660 660
661 FindThreatMatchesResponse(); 661 FindThreatMatchesResponse();
662 662
663 FindThreatMatchesResponse.fromJson(core.Map _json) { 663 FindThreatMatchesResponse.fromJson(core.Map _json) {
664 if (_json.containsKey("matches")) { 664 if (_json.containsKey("matches")) {
665 matches = _json["matches"].map((value) => new ThreatMatch.fromJson(value)) .toList(); 665 matches = _json["matches"].map((value) => new ThreatMatch.fromJson(value)) .toList();
666 } 666 }
667 } 667 }
668 668
669 core.Map toJson() { 669 core.Map<core.String, core.Object> toJson() {
670 var _json = new core.Map(); 670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
671 if (matches != null) { 671 if (matches != null) {
672 _json["matches"] = matches.map((value) => (value).toJson()).toList(); 672 _json["matches"] = matches.map((value) => (value).toJson()).toList();
673 } 673 }
674 return _json; 674 return _json;
675 } 675 }
676 } 676 }
677 677
678 class ListThreatListsResponse { 678 class ListThreatListsResponse {
679 /** The lists available for download by the client. */ 679 /** The lists available for download by the client. */
680 core.List<ThreatListDescriptor> threatLists; 680 core.List<ThreatListDescriptor> threatLists;
681 681
682 ListThreatListsResponse(); 682 ListThreatListsResponse();
683 683
684 ListThreatListsResponse.fromJson(core.Map _json) { 684 ListThreatListsResponse.fromJson(core.Map _json) {
685 if (_json.containsKey("threatLists")) { 685 if (_json.containsKey("threatLists")) {
686 threatLists = _json["threatLists"].map((value) => new ThreatListDescriptor .fromJson(value)).toList(); 686 threatLists = _json["threatLists"].map((value) => new ThreatListDescriptor .fromJson(value)).toList();
687 } 687 }
688 } 688 }
689 689
690 core.Map toJson() { 690 core.Map<core.String, core.Object> toJson() {
691 var _json = new core.Map(); 691 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
692 if (threatLists != null) { 692 if (threatLists != null) {
693 _json["threatLists"] = threatLists.map((value) => (value).toJson()).toList (); 693 _json["threatLists"] = threatLists.map((value) => (value).toJson()).toList ();
694 } 694 }
695 return _json; 695 return _json;
696 } 696 }
697 } 697 }
698 698
699 /** A single list update request. */ 699 /** A single list update request. */
700 class ListUpdateRequest { 700 class ListUpdateRequest {
701 /** The constraints associated with this request. */ 701 /** The constraints associated with this request. */
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 core.String threatEntryType; 740 core.String threatEntryType;
741 /** 741 /**
742 * The type of threat posed by entries present in the list. 742 * The type of threat posed by entries present in the list.
743 * Possible string values are: 743 * Possible string values are:
744 * - "THREAT_TYPE_UNSPECIFIED" : Unknown. 744 * - "THREAT_TYPE_UNSPECIFIED" : Unknown.
745 * - "MALWARE" : Malware threat type. 745 * - "MALWARE" : Malware threat type.
746 * - "SOCIAL_ENGINEERING" : Social engineering threat type. 746 * - "SOCIAL_ENGINEERING" : Social engineering threat type.
747 * - "UNWANTED_SOFTWARE" : Unwanted software threat type. 747 * - "UNWANTED_SOFTWARE" : Unwanted software threat type.
748 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application 748 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application
749 * threat type. 749 * threat type.
750 * - "MALICIOUS_BINARY" : Malicious binary threat type.
750 */ 751 */
751 core.String threatType; 752 core.String threatType;
752 753
753 ListUpdateRequest(); 754 ListUpdateRequest();
754 755
755 ListUpdateRequest.fromJson(core.Map _json) { 756 ListUpdateRequest.fromJson(core.Map _json) {
756 if (_json.containsKey("constraints")) { 757 if (_json.containsKey("constraints")) {
757 constraints = new Constraints.fromJson(_json["constraints"]); 758 constraints = new Constraints.fromJson(_json["constraints"]);
758 } 759 }
759 if (_json.containsKey("platformType")) { 760 if (_json.containsKey("platformType")) {
760 platformType = _json["platformType"]; 761 platformType = _json["platformType"];
761 } 762 }
762 if (_json.containsKey("state")) { 763 if (_json.containsKey("state")) {
763 state = _json["state"]; 764 state = _json["state"];
764 } 765 }
765 if (_json.containsKey("threatEntryType")) { 766 if (_json.containsKey("threatEntryType")) {
766 threatEntryType = _json["threatEntryType"]; 767 threatEntryType = _json["threatEntryType"];
767 } 768 }
768 if (_json.containsKey("threatType")) { 769 if (_json.containsKey("threatType")) {
769 threatType = _json["threatType"]; 770 threatType = _json["threatType"];
770 } 771 }
771 } 772 }
772 773
773 core.Map toJson() { 774 core.Map<core.String, core.Object> toJson() {
774 var _json = new core.Map(); 775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
775 if (constraints != null) { 776 if (constraints != null) {
776 _json["constraints"] = (constraints).toJson(); 777 _json["constraints"] = (constraints).toJson();
777 } 778 }
778 if (platformType != null) { 779 if (platformType != null) {
779 _json["platformType"] = platformType; 780 _json["platformType"] = platformType;
780 } 781 }
781 if (state != null) { 782 if (state != null) {
782 _json["state"] = state; 783 _json["state"] = state;
783 } 784 }
784 if (threatEntryType != null) { 785 if (threatEntryType != null) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 core.String threatEntryType; 862 core.String threatEntryType;
862 /** 863 /**
863 * The threat type for which data is returned. 864 * The threat type for which data is returned.
864 * Possible string values are: 865 * Possible string values are:
865 * - "THREAT_TYPE_UNSPECIFIED" : Unknown. 866 * - "THREAT_TYPE_UNSPECIFIED" : Unknown.
866 * - "MALWARE" : Malware threat type. 867 * - "MALWARE" : Malware threat type.
867 * - "SOCIAL_ENGINEERING" : Social engineering threat type. 868 * - "SOCIAL_ENGINEERING" : Social engineering threat type.
868 * - "UNWANTED_SOFTWARE" : Unwanted software threat type. 869 * - "UNWANTED_SOFTWARE" : Unwanted software threat type.
869 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application 870 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application
870 * threat type. 871 * threat type.
872 * - "MALICIOUS_BINARY" : Malicious binary threat type.
871 */ 873 */
872 core.String threatType; 874 core.String threatType;
873 875
874 ListUpdateResponse(); 876 ListUpdateResponse();
875 877
876 ListUpdateResponse.fromJson(core.Map _json) { 878 ListUpdateResponse.fromJson(core.Map _json) {
877 if (_json.containsKey("additions")) { 879 if (_json.containsKey("additions")) {
878 additions = _json["additions"].map((value) => new ThreatEntrySet.fromJson( value)).toList(); 880 additions = _json["additions"].map((value) => new ThreatEntrySet.fromJson( value)).toList();
879 } 881 }
880 if (_json.containsKey("checksum")) { 882 if (_json.containsKey("checksum")) {
(...skipping 12 matching lines...) Expand all
893 responseType = _json["responseType"]; 895 responseType = _json["responseType"];
894 } 896 }
895 if (_json.containsKey("threatEntryType")) { 897 if (_json.containsKey("threatEntryType")) {
896 threatEntryType = _json["threatEntryType"]; 898 threatEntryType = _json["threatEntryType"];
897 } 899 }
898 if (_json.containsKey("threatType")) { 900 if (_json.containsKey("threatType")) {
899 threatType = _json["threatType"]; 901 threatType = _json["threatType"];
900 } 902 }
901 } 903 }
902 904
903 core.Map toJson() { 905 core.Map<core.String, core.Object> toJson() {
904 var _json = new core.Map(); 906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
905 if (additions != null) { 907 if (additions != null) {
906 _json["additions"] = additions.map((value) => (value).toJson()).toList(); 908 _json["additions"] = additions.map((value) => (value).toJson()).toList();
907 } 909 }
908 if (checksum != null) { 910 if (checksum != null) {
909 _json["checksum"] = (checksum).toJson(); 911 _json["checksum"] = (checksum).toJson();
910 } 912 }
911 if (newClientState != null) { 913 if (newClientState != null) {
912 _json["newClientState"] = newClientState; 914 _json["newClientState"] = newClientState;
913 } 915 }
914 if (platformType != null) { 916 if (platformType != null) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 959
958 MetadataEntry.fromJson(core.Map _json) { 960 MetadataEntry.fromJson(core.Map _json) {
959 if (_json.containsKey("key")) { 961 if (_json.containsKey("key")) {
960 key = _json["key"]; 962 key = _json["key"];
961 } 963 }
962 if (_json.containsKey("value")) { 964 if (_json.containsKey("value")) {
963 value = _json["value"]; 965 value = _json["value"];
964 } 966 }
965 } 967 }
966 968
967 core.Map toJson() { 969 core.Map<core.String, core.Object> toJson() {
968 var _json = new core.Map(); 970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
969 if (key != null) { 971 if (key != null) {
970 _json["key"] = key; 972 _json["key"] = key;
971 } 973 }
972 if (value != null) { 974 if (value != null) {
973 _json["value"] = value; 975 _json["value"] = value;
974 } 976 }
975 return _json; 977 return _json;
976 } 978 }
977 } 979 }
978 980
(...skipping 30 matching lines...) Expand all
1009 1011
1010 RawHashes.fromJson(core.Map _json) { 1012 RawHashes.fromJson(core.Map _json) {
1011 if (_json.containsKey("prefixSize")) { 1013 if (_json.containsKey("prefixSize")) {
1012 prefixSize = _json["prefixSize"]; 1014 prefixSize = _json["prefixSize"];
1013 } 1015 }
1014 if (_json.containsKey("rawHashes")) { 1016 if (_json.containsKey("rawHashes")) {
1015 rawHashes = _json["rawHashes"]; 1017 rawHashes = _json["rawHashes"];
1016 } 1018 }
1017 } 1019 }
1018 1020
1019 core.Map toJson() { 1021 core.Map<core.String, core.Object> toJson() {
1020 var _json = new core.Map(); 1022 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1021 if (prefixSize != null) { 1023 if (prefixSize != null) {
1022 _json["prefixSize"] = prefixSize; 1024 _json["prefixSize"] = prefixSize;
1023 } 1025 }
1024 if (rawHashes != null) { 1026 if (rawHashes != null) {
1025 _json["rawHashes"] = rawHashes; 1027 _json["rawHashes"] = rawHashes;
1026 } 1028 }
1027 return _json; 1029 return _json;
1028 } 1030 }
1029 } 1031 }
1030 1032
1031 /** A set of raw indices to remove from a local list. */ 1033 /** A set of raw indices to remove from a local list. */
1032 class RawIndices { 1034 class RawIndices {
1033 /** The indices to remove from a lexicographically-sorted local list. */ 1035 /** The indices to remove from a lexicographically-sorted local list. */
1034 core.List<core.int> indices; 1036 core.List<core.int> indices;
1035 1037
1036 RawIndices(); 1038 RawIndices();
1037 1039
1038 RawIndices.fromJson(core.Map _json) { 1040 RawIndices.fromJson(core.Map _json) {
1039 if (_json.containsKey("indices")) { 1041 if (_json.containsKey("indices")) {
1040 indices = _json["indices"]; 1042 indices = _json["indices"];
1041 } 1043 }
1042 } 1044 }
1043 1045
1044 core.Map toJson() { 1046 core.Map<core.String, core.Object> toJson() {
1045 var _json = new core.Map(); 1047 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1046 if (indices != null) { 1048 if (indices != null) {
1047 _json["indices"] = indices; 1049 _json["indices"] = indices;
1048 } 1050 }
1049 return _json; 1051 return _json;
1050 } 1052 }
1051 } 1053 }
1052 1054
1053 /** 1055 /**
1054 * The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or 1056 * The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or
1055 * compressed removal indices. 1057 * compressed removal indices.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 firstValue = _json["firstValue"]; 1093 firstValue = _json["firstValue"];
1092 } 1094 }
1093 if (_json.containsKey("numEntries")) { 1095 if (_json.containsKey("numEntries")) {
1094 numEntries = _json["numEntries"]; 1096 numEntries = _json["numEntries"];
1095 } 1097 }
1096 if (_json.containsKey("riceParameter")) { 1098 if (_json.containsKey("riceParameter")) {
1097 riceParameter = _json["riceParameter"]; 1099 riceParameter = _json["riceParameter"];
1098 } 1100 }
1099 } 1101 }
1100 1102
1101 core.Map toJson() { 1103 core.Map<core.String, core.Object> toJson() {
1102 var _json = new core.Map(); 1104 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1103 if (encodedData != null) { 1105 if (encodedData != null) {
1104 _json["encodedData"] = encodedData; 1106 _json["encodedData"] = encodedData;
1105 } 1107 }
1106 if (firstValue != null) { 1108 if (firstValue != null) {
1107 _json["firstValue"] = firstValue; 1109 _json["firstValue"] = firstValue;
1108 } 1110 }
1109 if (numEntries != null) { 1111 if (numEntries != null) {
1110 _json["numEntries"] = numEntries; 1112 _json["numEntries"] = numEntries;
1111 } 1113 }
1112 if (riceParameter != null) { 1114 if (riceParameter != null) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 digest = _json["digest"]; 1158 digest = _json["digest"];
1157 } 1159 }
1158 if (_json.containsKey("hash")) { 1160 if (_json.containsKey("hash")) {
1159 hash = _json["hash"]; 1161 hash = _json["hash"];
1160 } 1162 }
1161 if (_json.containsKey("url")) { 1163 if (_json.containsKey("url")) {
1162 url = _json["url"]; 1164 url = _json["url"];
1163 } 1165 }
1164 } 1166 }
1165 1167
1166 core.Map toJson() { 1168 core.Map<core.String, core.Object> toJson() {
1167 var _json = new core.Map(); 1169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1168 if (digest != null) { 1170 if (digest != null) {
1169 _json["digest"] = digest; 1171 _json["digest"] = digest;
1170 } 1172 }
1171 if (hash != null) { 1173 if (hash != null) {
1172 _json["hash"] = hash; 1174 _json["hash"] = hash;
1173 } 1175 }
1174 if (url != null) { 1176 if (url != null) {
1175 _json["url"] = url; 1177 _json["url"] = url;
1176 } 1178 }
1177 return _json; 1179 return _json;
1178 } 1180 }
1179 } 1181 }
1180 1182
1181 /** 1183 /**
1182 * The metadata associated with a specific threat entry. The client is expected 1184 * The metadata associated with a specific threat entry. The client is expected
1183 * to know the metadata key/value pairs associated with each threat type. 1185 * to know the metadata key/value pairs associated with each threat type.
1184 */ 1186 */
1185 class ThreatEntryMetadata { 1187 class ThreatEntryMetadata {
1186 /** The metadata entries. */ 1188 /** The metadata entries. */
1187 core.List<MetadataEntry> entries; 1189 core.List<MetadataEntry> entries;
1188 1190
1189 ThreatEntryMetadata(); 1191 ThreatEntryMetadata();
1190 1192
1191 ThreatEntryMetadata.fromJson(core.Map _json) { 1193 ThreatEntryMetadata.fromJson(core.Map _json) {
1192 if (_json.containsKey("entries")) { 1194 if (_json.containsKey("entries")) {
1193 entries = _json["entries"].map((value) => new MetadataEntry.fromJson(value )).toList(); 1195 entries = _json["entries"].map((value) => new MetadataEntry.fromJson(value )).toList();
1194 } 1196 }
1195 } 1197 }
1196 1198
1197 core.Map toJson() { 1199 core.Map<core.String, core.Object> toJson() {
1198 var _json = new core.Map(); 1200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1199 if (entries != null) { 1201 if (entries != null) {
1200 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 1202 _json["entries"] = entries.map((value) => (value).toJson()).toList();
1201 } 1203 }
1202 return _json; 1204 return _json;
1203 } 1205 }
1204 } 1206 }
1205 1207
1206 /** 1208 /**
1207 * A set of threats that should be added or removed from a client's local 1209 * A set of threats that should be added or removed from a client's local
1208 * database. 1210 * database.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 rawIndices = new RawIndices.fromJson(_json["rawIndices"]); 1249 rawIndices = new RawIndices.fromJson(_json["rawIndices"]);
1248 } 1250 }
1249 if (_json.containsKey("riceHashes")) { 1251 if (_json.containsKey("riceHashes")) {
1250 riceHashes = new RiceDeltaEncoding.fromJson(_json["riceHashes"]); 1252 riceHashes = new RiceDeltaEncoding.fromJson(_json["riceHashes"]);
1251 } 1253 }
1252 if (_json.containsKey("riceIndices")) { 1254 if (_json.containsKey("riceIndices")) {
1253 riceIndices = new RiceDeltaEncoding.fromJson(_json["riceIndices"]); 1255 riceIndices = new RiceDeltaEncoding.fromJson(_json["riceIndices"]);
1254 } 1256 }
1255 } 1257 }
1256 1258
1257 core.Map toJson() { 1259 core.Map<core.String, core.Object> toJson() {
1258 var _json = new core.Map(); 1260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1259 if (compressionType != null) { 1261 if (compressionType != null) {
1260 _json["compressionType"] = compressionType; 1262 _json["compressionType"] = compressionType;
1261 } 1263 }
1262 if (rawHashes != null) { 1264 if (rawHashes != null) {
1263 _json["rawHashes"] = (rawHashes).toJson(); 1265 _json["rawHashes"] = (rawHashes).toJson();
1264 } 1266 }
1265 if (rawIndices != null) { 1267 if (rawIndices != null) {
1266 _json["rawIndices"] = (rawIndices).toJson(); 1268 _json["rawIndices"] = (rawIndices).toJson();
1267 } 1269 }
1268 if (riceHashes != null) { 1270 if (riceHashes != null) {
(...skipping 30 matching lines...) Expand all
1299 threatEntries = _json["threatEntries"].map((value) => new ThreatEntry.from Json(value)).toList(); 1301 threatEntries = _json["threatEntries"].map((value) => new ThreatEntry.from Json(value)).toList();
1300 } 1302 }
1301 if (_json.containsKey("threatEntryTypes")) { 1303 if (_json.containsKey("threatEntryTypes")) {
1302 threatEntryTypes = _json["threatEntryTypes"]; 1304 threatEntryTypes = _json["threatEntryTypes"];
1303 } 1305 }
1304 if (_json.containsKey("threatTypes")) { 1306 if (_json.containsKey("threatTypes")) {
1305 threatTypes = _json["threatTypes"]; 1307 threatTypes = _json["threatTypes"];
1306 } 1308 }
1307 } 1309 }
1308 1310
1309 core.Map toJson() { 1311 core.Map<core.String, core.Object> toJson() {
1310 var _json = new core.Map(); 1312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1311 if (platformTypes != null) { 1313 if (platformTypes != null) {
1312 _json["platformTypes"] = platformTypes; 1314 _json["platformTypes"] = platformTypes;
1313 } 1315 }
1314 if (threatEntries != null) { 1316 if (threatEntries != null) {
1315 _json["threatEntries"] = threatEntries.map((value) => (value).toJson()).to List(); 1317 _json["threatEntries"] = threatEntries.map((value) => (value).toJson()).to List();
1316 } 1318 }
1317 if (threatEntryTypes != null) { 1319 if (threatEntryTypes != null) {
1318 _json["threatEntryTypes"] = threatEntryTypes; 1320 _json["threatEntryTypes"] = threatEntryTypes;
1319 } 1321 }
1320 if (threatTypes != null) { 1322 if (threatTypes != null) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 core.String threatEntryType; 1360 core.String threatEntryType;
1359 /** 1361 /**
1360 * The threat type posed by the list's entries. 1362 * The threat type posed by the list's entries.
1361 * Possible string values are: 1363 * Possible string values are:
1362 * - "THREAT_TYPE_UNSPECIFIED" : Unknown. 1364 * - "THREAT_TYPE_UNSPECIFIED" : Unknown.
1363 * - "MALWARE" : Malware threat type. 1365 * - "MALWARE" : Malware threat type.
1364 * - "SOCIAL_ENGINEERING" : Social engineering threat type. 1366 * - "SOCIAL_ENGINEERING" : Social engineering threat type.
1365 * - "UNWANTED_SOFTWARE" : Unwanted software threat type. 1367 * - "UNWANTED_SOFTWARE" : Unwanted software threat type.
1366 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application 1368 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application
1367 * threat type. 1369 * threat type.
1370 * - "MALICIOUS_BINARY" : Malicious binary threat type.
1368 */ 1371 */
1369 core.String threatType; 1372 core.String threatType;
1370 1373
1371 ThreatListDescriptor(); 1374 ThreatListDescriptor();
1372 1375
1373 ThreatListDescriptor.fromJson(core.Map _json) { 1376 ThreatListDescriptor.fromJson(core.Map _json) {
1374 if (_json.containsKey("platformType")) { 1377 if (_json.containsKey("platformType")) {
1375 platformType = _json["platformType"]; 1378 platformType = _json["platformType"];
1376 } 1379 }
1377 if (_json.containsKey("threatEntryType")) { 1380 if (_json.containsKey("threatEntryType")) {
1378 threatEntryType = _json["threatEntryType"]; 1381 threatEntryType = _json["threatEntryType"];
1379 } 1382 }
1380 if (_json.containsKey("threatType")) { 1383 if (_json.containsKey("threatType")) {
1381 threatType = _json["threatType"]; 1384 threatType = _json["threatType"];
1382 } 1385 }
1383 } 1386 }
1384 1387
1385 core.Map toJson() { 1388 core.Map<core.String, core.Object> toJson() {
1386 var _json = new core.Map(); 1389 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1387 if (platformType != null) { 1390 if (platformType != null) {
1388 _json["platformType"] = platformType; 1391 _json["platformType"] = platformType;
1389 } 1392 }
1390 if (threatEntryType != null) { 1393 if (threatEntryType != null) {
1391 _json["threatEntryType"] = threatEntryType; 1394 _json["threatEntryType"] = threatEntryType;
1392 } 1395 }
1393 if (threatType != null) { 1396 if (threatType != null) {
1394 _json["threatType"] = threatType; 1397 _json["threatType"] = threatType;
1395 } 1398 }
1396 return _json; 1399 return _json;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 core.String threatEntryType; 1439 core.String threatEntryType;
1437 /** 1440 /**
1438 * The threat type matching this threat. 1441 * The threat type matching this threat.
1439 * Possible string values are: 1442 * Possible string values are:
1440 * - "THREAT_TYPE_UNSPECIFIED" : Unknown. 1443 * - "THREAT_TYPE_UNSPECIFIED" : Unknown.
1441 * - "MALWARE" : Malware threat type. 1444 * - "MALWARE" : Malware threat type.
1442 * - "SOCIAL_ENGINEERING" : Social engineering threat type. 1445 * - "SOCIAL_ENGINEERING" : Social engineering threat type.
1443 * - "UNWANTED_SOFTWARE" : Unwanted software threat type. 1446 * - "UNWANTED_SOFTWARE" : Unwanted software threat type.
1444 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application 1447 * - "POTENTIALLY_HARMFUL_APPLICATION" : Potentially harmful application
1445 * threat type. 1448 * threat type.
1449 * - "MALICIOUS_BINARY" : Malicious binary threat type.
1446 */ 1450 */
1447 core.String threatType; 1451 core.String threatType;
1448 1452
1449 ThreatMatch(); 1453 ThreatMatch();
1450 1454
1451 ThreatMatch.fromJson(core.Map _json) { 1455 ThreatMatch.fromJson(core.Map _json) {
1452 if (_json.containsKey("cacheDuration")) { 1456 if (_json.containsKey("cacheDuration")) {
1453 cacheDuration = _json["cacheDuration"]; 1457 cacheDuration = _json["cacheDuration"];
1454 } 1458 }
1455 if (_json.containsKey("platformType")) { 1459 if (_json.containsKey("platformType")) {
1456 platformType = _json["platformType"]; 1460 platformType = _json["platformType"];
1457 } 1461 }
1458 if (_json.containsKey("threat")) { 1462 if (_json.containsKey("threat")) {
1459 threat = new ThreatEntry.fromJson(_json["threat"]); 1463 threat = new ThreatEntry.fromJson(_json["threat"]);
1460 } 1464 }
1461 if (_json.containsKey("threatEntryMetadata")) { 1465 if (_json.containsKey("threatEntryMetadata")) {
1462 threatEntryMetadata = new ThreatEntryMetadata.fromJson(_json["threatEntryM etadata"]); 1466 threatEntryMetadata = new ThreatEntryMetadata.fromJson(_json["threatEntryM etadata"]);
1463 } 1467 }
1464 if (_json.containsKey("threatEntryType")) { 1468 if (_json.containsKey("threatEntryType")) {
1465 threatEntryType = _json["threatEntryType"]; 1469 threatEntryType = _json["threatEntryType"];
1466 } 1470 }
1467 if (_json.containsKey("threatType")) { 1471 if (_json.containsKey("threatType")) {
1468 threatType = _json["threatType"]; 1472 threatType = _json["threatType"];
1469 } 1473 }
1470 } 1474 }
1471 1475
1472 core.Map toJson() { 1476 core.Map<core.String, core.Object> toJson() {
1473 var _json = new core.Map(); 1477 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1474 if (cacheDuration != null) { 1478 if (cacheDuration != null) {
1475 _json["cacheDuration"] = cacheDuration; 1479 _json["cacheDuration"] = cacheDuration;
1476 } 1480 }
1477 if (platformType != null) { 1481 if (platformType != null) {
1478 _json["platformType"] = platformType; 1482 _json["platformType"] = platformType;
1479 } 1483 }
1480 if (threat != null) { 1484 if (threat != null) {
1481 _json["threat"] = (threat).toJson(); 1485 _json["threat"] = (threat).toJson();
1482 } 1486 }
1483 if (threatEntryMetadata != null) { 1487 if (threatEntryMetadata != null) {
1484 _json["threatEntryMetadata"] = (threatEntryMetadata).toJson(); 1488 _json["threatEntryMetadata"] = (threatEntryMetadata).toJson();
1485 } 1489 }
1486 if (threatEntryType != null) { 1490 if (threatEntryType != null) {
1487 _json["threatEntryType"] = threatEntryType; 1491 _json["threatEntryType"] = threatEntryType;
1488 } 1492 }
1489 if (threatType != null) { 1493 if (threatType != null) {
1490 _json["threatType"] = threatType; 1494 _json["threatType"] = threatType;
1491 } 1495 }
1492 return _json; 1496 return _json;
1493 } 1497 }
1494 } 1498 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/runtimeconfig/v1.dart ('k') | generated/googleapis/lib/script/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698