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.clouddebugger.v2; | 3 library googleapis.clouddebugger.v2; |
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 * This means that an agent does not need to check if a breakpoint has changed | 123 * This means that an agent does not need to check if a breakpoint has changed |
124 * when it encounters the same breakpoint on a successive call. | 124 * when it encounters the same breakpoint on a successive call. |
125 * Moreover, an agent should remember the breakpoints that are completed | 125 * Moreover, an agent should remember the breakpoints that are completed |
126 * until the controller removes them from the active list to avoid | 126 * until the controller removes them from the active list to avoid |
127 * setting those breakpoints again. | 127 * setting those breakpoints again. |
128 * | 128 * |
129 * Request parameters: | 129 * Request parameters: |
130 * | 130 * |
131 * [debuggeeId] - Identifies the debuggee. | 131 * [debuggeeId] - Identifies the debuggee. |
132 * | 132 * |
| 133 * [waitToken] - A wait token that, if specified, blocks the method call until |
| 134 * the list |
| 135 * of active breakpoints has changed, or a server selected timeout has |
| 136 * expired. The value should be set from the last returned response. |
| 137 * |
133 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status | 138 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status |
134 * and sets the | 139 * and sets the |
135 * `wait_expired` response field to `true` when the server-selected timeout | 140 * `wait_expired` response field to `true` when the server-selected timeout |
136 * has expired (recommended). | 141 * has expired (recommended). |
137 * | 142 * |
138 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the | 143 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the |
139 * server-selected timeout has expired (deprecated). | 144 * server-selected timeout has expired (deprecated). |
140 * | 145 * |
141 * [waitToken] - A wait token that, if specified, blocks the method call until | |
142 * the list | |
143 * of active breakpoints has changed, or a server selected timeout has | |
144 * expired. The value should be set from the last returned response. | |
145 * | |
146 * Completes with a [ListActiveBreakpointsResponse]. | 146 * Completes with a [ListActiveBreakpointsResponse]. |
147 * | 147 * |
148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
149 * error. | 149 * error. |
150 * | 150 * |
151 * If the used [http.Client] completes with an error when making a REST call, | 151 * If the used [http.Client] completes with an error when making a REST call, |
152 * this method will complete with the same error. | 152 * this method will complete with the same error. |
153 */ | 153 */ |
154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.bool successOnTimeout, core.String waitToken}) { | 154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.String waitToken, core.bool successOnTimeout}) { |
155 var _url = null; | 155 var _url = null; |
156 var _queryParams = new core.Map(); | 156 var _queryParams = new core.Map(); |
157 var _uploadMedia = null; | 157 var _uploadMedia = null; |
158 var _uploadOptions = null; | 158 var _uploadOptions = null; |
159 var _downloadOptions = commons.DownloadOptions.Metadata; | 159 var _downloadOptions = commons.DownloadOptions.Metadata; |
160 var _body = null; | 160 var _body = null; |
161 | 161 |
162 if (debuggeeId == null) { | 162 if (debuggeeId == null) { |
163 throw new core.ArgumentError("Parameter debuggeeId is required."); | 163 throw new core.ArgumentError("Parameter debuggeeId is required."); |
164 } | 164 } |
| 165 if (waitToken != null) { |
| 166 _queryParams["waitToken"] = [waitToken]; |
| 167 } |
165 if (successOnTimeout != null) { | 168 if (successOnTimeout != null) { |
166 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; | 169 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; |
167 } | 170 } |
168 if (waitToken != null) { | |
169 _queryParams["waitToken"] = [waitToken]; | |
170 } | |
171 | 171 |
172 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; | 172 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; |
173 | 173 |
174 var _response = _requester.request(_url, | 174 var _response = _requester.request(_url, |
175 "GET", | 175 "GET", |
176 body: _body, | 176 body: _body, |
177 queryParams: _queryParams, | 177 queryParams: _queryParams, |
178 uploadOptions: _uploadOptions, | 178 uploadOptions: _uploadOptions, |
179 uploadMedia: _uploadMedia, | 179 uploadMedia: _uploadMedia, |
180 downloadOptions: _downloadOptions); | 180 downloadOptions: _downloadOptions); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); | 257 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); |
258 | 258 |
259 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : | 259 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : |
260 _requester = client; | 260 _requester = client; |
261 | 261 |
262 /** | 262 /** |
263 * Lists all the debuggees that the user can set breakpoints to. | 263 * Lists all the debuggees that the user can set breakpoints to. |
264 * | 264 * |
265 * Request parameters: | 265 * Request parameters: |
266 * | 266 * |
267 * [project] - Project number of a Google Cloud project whose debuggees to | |
268 * list. | |
269 * | |
270 * [clientVersion] - The client version making the call. | 267 * [clientVersion] - The client version making the call. |
271 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 268 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
272 * | 269 * |
273 * [includeInactive] - When set to `true`, the result includes all debuggees. | 270 * [includeInactive] - When set to `true`, the result includes all debuggees. |
274 * Otherwise, the | 271 * Otherwise, the |
275 * result includes only debuggees that are active. | 272 * result includes only debuggees that are active. |
276 * | 273 * |
| 274 * [project] - Project number of a Google Cloud project whose debuggees to |
| 275 * list. |
| 276 * |
277 * Completes with a [ListDebuggeesResponse]. | 277 * Completes with a [ListDebuggeesResponse]. |
278 * | 278 * |
279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
280 * error. | 280 * error. |
281 * | 281 * |
282 * If the used [http.Client] completes with an error when making a REST call, | 282 * If the used [http.Client] completes with an error when making a REST call, |
283 * this method will complete with the same error. | 283 * this method will complete with the same error. |
284 */ | 284 */ |
285 async.Future<ListDebuggeesResponse> list({core.String project, core.String cli
entVersion, core.bool includeInactive}) { | 285 async.Future<ListDebuggeesResponse> list({core.String clientVersion, core.bool
includeInactive, core.String project}) { |
286 var _url = null; | 286 var _url = null; |
287 var _queryParams = new core.Map(); | 287 var _queryParams = new core.Map(); |
288 var _uploadMedia = null; | 288 var _uploadMedia = null; |
289 var _uploadOptions = null; | 289 var _uploadOptions = null; |
290 var _downloadOptions = commons.DownloadOptions.Metadata; | 290 var _downloadOptions = commons.DownloadOptions.Metadata; |
291 var _body = null; | 291 var _body = null; |
292 | 292 |
293 if (project != null) { | |
294 _queryParams["project"] = [project]; | |
295 } | |
296 if (clientVersion != null) { | 293 if (clientVersion != null) { |
297 _queryParams["clientVersion"] = [clientVersion]; | 294 _queryParams["clientVersion"] = [clientVersion]; |
298 } | 295 } |
299 if (includeInactive != null) { | 296 if (includeInactive != null) { |
300 _queryParams["includeInactive"] = ["${includeInactive}"]; | 297 _queryParams["includeInactive"] = ["${includeInactive}"]; |
301 } | 298 } |
| 299 if (project != null) { |
| 300 _queryParams["project"] = [project]; |
| 301 } |
302 | 302 |
303 _url = 'v2/debugger/debuggees'; | 303 _url = 'v2/debugger/debuggees'; |
304 | 304 |
305 var _response = _requester.request(_url, | 305 var _response = _requester.request(_url, |
306 "GET", | 306 "GET", |
307 body: _body, | 307 body: _body, |
308 queryParams: _queryParams, | 308 queryParams: _queryParams, |
309 uploadOptions: _uploadOptions, | 309 uploadOptions: _uploadOptions, |
310 uploadMedia: _uploadMedia, | 310 uploadMedia: _uploadMedia, |
311 downloadOptions: _downloadOptions); | 311 downloadOptions: _downloadOptions); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); | 421 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); |
422 } | 422 } |
423 | 423 |
424 /** | 424 /** |
425 * Lists all breakpoints for the debuggee. | 425 * Lists all breakpoints for the debuggee. |
426 * | 426 * |
427 * Request parameters: | 427 * Request parameters: |
428 * | 428 * |
429 * [debuggeeId] - ID of the debuggee whose breakpoints to list. | 429 * [debuggeeId] - ID of the debuggee whose breakpoints to list. |
430 * | 430 * |
431 * [clientVersion] - The client version making the call. | 431 * [waitToken] - A wait token that, if specified, blocks the call until the |
432 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). | 432 * breakpoints |
| 433 * list has changed, or a server selected timeout has expired. The value |
| 434 * should be set from the last response. The error code |
| 435 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which |
| 436 * should be called again with the same `wait_token`. |
433 * | 437 * |
434 * [action_value] - Only breakpoints with the specified action will pass the | 438 * [action_value] - Only breakpoints with the specified action will pass the |
435 * filter. | 439 * filter. |
436 * Possible string values are: | 440 * Possible string values are: |
437 * - "CAPTURE" : A CAPTURE. | 441 * - "CAPTURE" : A CAPTURE. |
438 * - "LOG" : A LOG. | 442 * - "LOG" : A LOG. |
439 * | 443 * |
| 444 * [clientVersion] - The client version making the call. |
| 445 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 446 * |
| 447 * [includeInactive] - When set to `true`, the response includes active and |
| 448 * inactive |
| 449 * breakpoints. Otherwise, it includes only active breakpoints. |
| 450 * |
440 * [includeAllUsers] - When set to `true`, the response includes the list of | 451 * [includeAllUsers] - When set to `true`, the response includes the list of |
441 * breakpoints set by | 452 * breakpoints set by |
442 * any user. Otherwise, it includes only breakpoints set by the caller. | 453 * any user. Otherwise, it includes only breakpoints set by the caller. |
443 * | 454 * |
444 * [includeInactive] - When set to `true`, the response includes active and | |
445 * inactive | |
446 * breakpoints. Otherwise, it includes only active breakpoints. | |
447 * | |
448 * [stripResults] - This field is deprecated. The following fields are always | 455 * [stripResults] - This field is deprecated. The following fields are always |
449 * stripped out of | 456 * stripped out of |
450 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. | 457 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. |
451 * | 458 * |
452 * [waitToken] - A wait token that, if specified, blocks the call until the | |
453 * breakpoints | |
454 * list has changed, or a server selected timeout has expired. The value | |
455 * should be set from the last response. The error code | |
456 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which | |
457 * should be called again with the same `wait_token`. | |
458 * | |
459 * Completes with a [ListBreakpointsResponse]. | 459 * Completes with a [ListBreakpointsResponse]. |
460 * | 460 * |
461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
462 * error. | 462 * error. |
463 * | 463 * |
464 * If the used [http.Client] completes with an error when making a REST call, | 464 * If the used [http.Client] completes with an error when making a REST call, |
465 * this method will complete with the same error. | 465 * this method will complete with the same error. |
466 */ | 466 */ |
467 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.Strin
g clientVersion, core.String action_value, core.bool includeAllUsers, core.bool
includeInactive, core.bool stripResults, core.String waitToken}) { | 467 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.Strin
g waitToken, core.String action_value, core.String clientVersion, core.bool incl
udeInactive, core.bool includeAllUsers, core.bool stripResults}) { |
468 var _url = null; | 468 var _url = null; |
469 var _queryParams = new core.Map(); | 469 var _queryParams = new core.Map(); |
470 var _uploadMedia = null; | 470 var _uploadMedia = null; |
471 var _uploadOptions = null; | 471 var _uploadOptions = null; |
472 var _downloadOptions = commons.DownloadOptions.Metadata; | 472 var _downloadOptions = commons.DownloadOptions.Metadata; |
473 var _body = null; | 473 var _body = null; |
474 | 474 |
475 if (debuggeeId == null) { | 475 if (debuggeeId == null) { |
476 throw new core.ArgumentError("Parameter debuggeeId is required."); | 476 throw new core.ArgumentError("Parameter debuggeeId is required."); |
477 } | 477 } |
| 478 if (waitToken != null) { |
| 479 _queryParams["waitToken"] = [waitToken]; |
| 480 } |
| 481 if (action_value != null) { |
| 482 _queryParams["action.value"] = [action_value]; |
| 483 } |
478 if (clientVersion != null) { | 484 if (clientVersion != null) { |
479 _queryParams["clientVersion"] = [clientVersion]; | 485 _queryParams["clientVersion"] = [clientVersion]; |
480 } | 486 } |
481 if (action_value != null) { | 487 if (includeInactive != null) { |
482 _queryParams["action.value"] = [action_value]; | 488 _queryParams["includeInactive"] = ["${includeInactive}"]; |
483 } | 489 } |
484 if (includeAllUsers != null) { | 490 if (includeAllUsers != null) { |
485 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; | 491 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; |
486 } | 492 } |
487 if (includeInactive != null) { | |
488 _queryParams["includeInactive"] = ["${includeInactive}"]; | |
489 } | |
490 if (stripResults != null) { | 493 if (stripResults != null) { |
491 _queryParams["stripResults"] = ["${stripResults}"]; | 494 _queryParams["stripResults"] = ["${stripResults}"]; |
492 } | 495 } |
493 if (waitToken != null) { | |
494 _queryParams["waitToken"] = [waitToken]; | |
495 } | |
496 | 496 |
497 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; | 497 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; |
498 | 498 |
499 var _response = _requester.request(_url, | 499 var _response = _requester.request(_url, |
500 "GET", | 500 "GET", |
501 body: _body, | 501 body: _body, |
502 queryParams: _queryParams, | 502 queryParams: _queryParams, |
503 uploadOptions: _uploadOptions, | 503 uploadOptions: _uploadOptions, |
504 uploadMedia: _uploadMedia, | 504 uploadMedia: _uploadMedia, |
505 downloadOptions: _downloadOptions); | 505 downloadOptions: _downloadOptions); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 AliasContext.fromJson(core.Map _json) { | 582 AliasContext.fromJson(core.Map _json) { |
583 if (_json.containsKey("kind")) { | 583 if (_json.containsKey("kind")) { |
584 kind = _json["kind"]; | 584 kind = _json["kind"]; |
585 } | 585 } |
586 if (_json.containsKey("name")) { | 586 if (_json.containsKey("name")) { |
587 name = _json["name"]; | 587 name = _json["name"]; |
588 } | 588 } |
589 } | 589 } |
590 | 590 |
591 core.Map toJson() { | 591 core.Map<core.String, core.Object> toJson() { |
592 var _json = new core.Map(); | 592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
593 if (kind != null) { | 593 if (kind != null) { |
594 _json["kind"] = kind; | 594 _json["kind"] = kind; |
595 } | 595 } |
596 if (name != null) { | 596 if (name != null) { |
597 _json["name"] = name; | 597 _json["name"] = name; |
598 } | 598 } |
599 return _json; | 599 return _json; |
600 } | 600 } |
601 } | 601 } |
602 | 602 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 status = new StatusMessage.fromJson(_json["status"]); | 760 status = new StatusMessage.fromJson(_json["status"]); |
761 } | 761 } |
762 if (_json.containsKey("userEmail")) { | 762 if (_json.containsKey("userEmail")) { |
763 userEmail = _json["userEmail"]; | 763 userEmail = _json["userEmail"]; |
764 } | 764 } |
765 if (_json.containsKey("variableTable")) { | 765 if (_json.containsKey("variableTable")) { |
766 variableTable = _json["variableTable"].map((value) => new Variable.fromJso
n(value)).toList(); | 766 variableTable = _json["variableTable"].map((value) => new Variable.fromJso
n(value)).toList(); |
767 } | 767 } |
768 } | 768 } |
769 | 769 |
770 core.Map toJson() { | 770 core.Map<core.String, core.Object> toJson() { |
771 var _json = new core.Map(); | 771 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
772 if (action != null) { | 772 if (action != null) { |
773 _json["action"] = action; | 773 _json["action"] = action; |
774 } | 774 } |
775 if (condition != null) { | 775 if (condition != null) { |
776 _json["condition"] = condition; | 776 _json["condition"] = condition; |
777 } | 777 } |
778 if (createTime != null) { | 778 if (createTime != null) { |
779 _json["createTime"] = createTime; | 779 _json["createTime"] = createTime; |
780 } | 780 } |
781 if (evaluatedExpressions != null) { | 781 if (evaluatedExpressions != null) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 aliasName = _json["aliasName"]; | 845 aliasName = _json["aliasName"]; |
846 } | 846 } |
847 if (_json.containsKey("repoId")) { | 847 if (_json.containsKey("repoId")) { |
848 repoId = new RepoId.fromJson(_json["repoId"]); | 848 repoId = new RepoId.fromJson(_json["repoId"]); |
849 } | 849 } |
850 if (_json.containsKey("revisionId")) { | 850 if (_json.containsKey("revisionId")) { |
851 revisionId = _json["revisionId"]; | 851 revisionId = _json["revisionId"]; |
852 } | 852 } |
853 } | 853 } |
854 | 854 |
855 core.Map toJson() { | 855 core.Map<core.String, core.Object> toJson() { |
856 var _json = new core.Map(); | 856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
857 if (aliasContext != null) { | 857 if (aliasContext != null) { |
858 _json["aliasContext"] = (aliasContext).toJson(); | 858 _json["aliasContext"] = (aliasContext).toJson(); |
859 } | 859 } |
860 if (aliasName != null) { | 860 if (aliasName != null) { |
861 _json["aliasName"] = aliasName; | 861 _json["aliasName"] = aliasName; |
862 } | 862 } |
863 if (repoId != null) { | 863 if (repoId != null) { |
864 _json["repoId"] = (repoId).toJson(); | 864 _json["repoId"] = (repoId).toJson(); |
865 } | 865 } |
866 if (revisionId != null) { | 866 if (revisionId != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
888 | 888 |
889 CloudWorkspaceId.fromJson(core.Map _json) { | 889 CloudWorkspaceId.fromJson(core.Map _json) { |
890 if (_json.containsKey("name")) { | 890 if (_json.containsKey("name")) { |
891 name = _json["name"]; | 891 name = _json["name"]; |
892 } | 892 } |
893 if (_json.containsKey("repoId")) { | 893 if (_json.containsKey("repoId")) { |
894 repoId = new RepoId.fromJson(_json["repoId"]); | 894 repoId = new RepoId.fromJson(_json["repoId"]); |
895 } | 895 } |
896 } | 896 } |
897 | 897 |
898 core.Map toJson() { | 898 core.Map<core.String, core.Object> toJson() { |
899 var _json = new core.Map(); | 899 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
900 if (name != null) { | 900 if (name != null) { |
901 _json["name"] = name; | 901 _json["name"] = name; |
902 } | 902 } |
903 if (repoId != null) { | 903 if (repoId != null) { |
904 _json["repoId"] = (repoId).toJson(); | 904 _json["repoId"] = (repoId).toJson(); |
905 } | 905 } |
906 return _json; | 906 return _json; |
907 } | 907 } |
908 } | 908 } |
909 | 909 |
(...skipping 13 matching lines...) Expand all Loading... |
923 | 923 |
924 CloudWorkspaceSourceContext.fromJson(core.Map _json) { | 924 CloudWorkspaceSourceContext.fromJson(core.Map _json) { |
925 if (_json.containsKey("snapshotId")) { | 925 if (_json.containsKey("snapshotId")) { |
926 snapshotId = _json["snapshotId"]; | 926 snapshotId = _json["snapshotId"]; |
927 } | 927 } |
928 if (_json.containsKey("workspaceId")) { | 928 if (_json.containsKey("workspaceId")) { |
929 workspaceId = new CloudWorkspaceId.fromJson(_json["workspaceId"]); | 929 workspaceId = new CloudWorkspaceId.fromJson(_json["workspaceId"]); |
930 } | 930 } |
931 } | 931 } |
932 | 932 |
933 core.Map toJson() { | 933 core.Map<core.String, core.Object> toJson() { |
934 var _json = new core.Map(); | 934 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
935 if (snapshotId != null) { | 935 if (snapshotId != null) { |
936 _json["snapshotId"] = snapshotId; | 936 _json["snapshotId"] = snapshotId; |
937 } | 937 } |
938 if (workspaceId != null) { | 938 if (workspaceId != null) { |
939 _json["workspaceId"] = (workspaceId).toJson(); | 939 _json["workspaceId"] = (workspaceId).toJson(); |
940 } | 940 } |
941 return _json; | 941 return _json; |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 sourceContexts = _json["sourceContexts"].map((value) => new SourceContext.
fromJson(value)).toList(); | 1048 sourceContexts = _json["sourceContexts"].map((value) => new SourceContext.
fromJson(value)).toList(); |
1049 } | 1049 } |
1050 if (_json.containsKey("status")) { | 1050 if (_json.containsKey("status")) { |
1051 status = new StatusMessage.fromJson(_json["status"]); | 1051 status = new StatusMessage.fromJson(_json["status"]); |
1052 } | 1052 } |
1053 if (_json.containsKey("uniquifier")) { | 1053 if (_json.containsKey("uniquifier")) { |
1054 uniquifier = _json["uniquifier"]; | 1054 uniquifier = _json["uniquifier"]; |
1055 } | 1055 } |
1056 } | 1056 } |
1057 | 1057 |
1058 core.Map toJson() { | 1058 core.Map<core.String, core.Object> toJson() { |
1059 var _json = new core.Map(); | 1059 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1060 if (agentVersion != null) { | 1060 if (agentVersion != null) { |
1061 _json["agentVersion"] = agentVersion; | 1061 _json["agentVersion"] = agentVersion; |
1062 } | 1062 } |
1063 if (description != null) { | 1063 if (description != null) { |
1064 _json["description"] = description; | 1064 _json["description"] = description; |
1065 } | 1065 } |
1066 if (extSourceContexts != null) { | 1066 if (extSourceContexts != null) { |
1067 _json["extSourceContexts"] = extSourceContexts.map((value) => (value).toJs
on()).toList(); | 1067 _json["extSourceContexts"] = extSourceContexts.map((value) => (value).toJs
on()).toList(); |
1068 } | 1068 } |
1069 if (id != null) { | 1069 if (id != null) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 * | 1105 * |
1106 * The JSON representation for `Empty` is empty JSON object `{}`. | 1106 * The JSON representation for `Empty` is empty JSON object `{}`. |
1107 */ | 1107 */ |
1108 class Empty { | 1108 class Empty { |
1109 | 1109 |
1110 Empty(); | 1110 Empty(); |
1111 | 1111 |
1112 Empty.fromJson(core.Map _json) { | 1112 Empty.fromJson(core.Map _json) { |
1113 } | 1113 } |
1114 | 1114 |
1115 core.Map toJson() { | 1115 core.Map<core.String, core.Object> toJson() { |
1116 var _json = new core.Map(); | 1116 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1117 return _json; | 1117 return _json; |
1118 } | 1118 } |
1119 } | 1119 } |
1120 | 1120 |
1121 /** | 1121 /** |
1122 * An ExtendedSourceContext is a SourceContext combined with additional | 1122 * An ExtendedSourceContext is a SourceContext combined with additional |
1123 * details describing the context. | 1123 * details describing the context. |
1124 */ | 1124 */ |
1125 class ExtendedSourceContext { | 1125 class ExtendedSourceContext { |
1126 /** Any source context. */ | 1126 /** Any source context. */ |
1127 SourceContext context; | 1127 SourceContext context; |
1128 /** Labels with user defined metadata. */ | 1128 /** Labels with user defined metadata. */ |
1129 core.Map<core.String, core.String> labels; | 1129 core.Map<core.String, core.String> labels; |
1130 | 1130 |
1131 ExtendedSourceContext(); | 1131 ExtendedSourceContext(); |
1132 | 1132 |
1133 ExtendedSourceContext.fromJson(core.Map _json) { | 1133 ExtendedSourceContext.fromJson(core.Map _json) { |
1134 if (_json.containsKey("context")) { | 1134 if (_json.containsKey("context")) { |
1135 context = new SourceContext.fromJson(_json["context"]); | 1135 context = new SourceContext.fromJson(_json["context"]); |
1136 } | 1136 } |
1137 if (_json.containsKey("labels")) { | 1137 if (_json.containsKey("labels")) { |
1138 labels = _json["labels"]; | 1138 labels = _json["labels"]; |
1139 } | 1139 } |
1140 } | 1140 } |
1141 | 1141 |
1142 core.Map toJson() { | 1142 core.Map<core.String, core.Object> toJson() { |
1143 var _json = new core.Map(); | 1143 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1144 if (context != null) { | 1144 if (context != null) { |
1145 _json["context"] = (context).toJson(); | 1145 _json["context"] = (context).toJson(); |
1146 } | 1146 } |
1147 if (labels != null) { | 1147 if (labels != null) { |
1148 _json["labels"] = labels; | 1148 _json["labels"] = labels; |
1149 } | 1149 } |
1150 return _json; | 1150 return _json; |
1151 } | 1151 } |
1152 } | 1152 } |
1153 | 1153 |
(...skipping 18 matching lines...) Expand all Loading... |
1172 | 1172 |
1173 FormatMessage.fromJson(core.Map _json) { | 1173 FormatMessage.fromJson(core.Map _json) { |
1174 if (_json.containsKey("format")) { | 1174 if (_json.containsKey("format")) { |
1175 format = _json["format"]; | 1175 format = _json["format"]; |
1176 } | 1176 } |
1177 if (_json.containsKey("parameters")) { | 1177 if (_json.containsKey("parameters")) { |
1178 parameters = _json["parameters"]; | 1178 parameters = _json["parameters"]; |
1179 } | 1179 } |
1180 } | 1180 } |
1181 | 1181 |
1182 core.Map toJson() { | 1182 core.Map<core.String, core.Object> toJson() { |
1183 var _json = new core.Map(); | 1183 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1184 if (format != null) { | 1184 if (format != null) { |
1185 _json["format"] = format; | 1185 _json["format"] = format; |
1186 } | 1186 } |
1187 if (parameters != null) { | 1187 if (parameters != null) { |
1188 _json["parameters"] = parameters; | 1188 _json["parameters"] = parameters; |
1189 } | 1189 } |
1190 return _json; | 1190 return _json; |
1191 } | 1191 } |
1192 } | 1192 } |
1193 | 1193 |
(...skipping 27 matching lines...) Expand all Loading... |
1221 gerritProject = _json["gerritProject"]; | 1221 gerritProject = _json["gerritProject"]; |
1222 } | 1222 } |
1223 if (_json.containsKey("hostUri")) { | 1223 if (_json.containsKey("hostUri")) { |
1224 hostUri = _json["hostUri"]; | 1224 hostUri = _json["hostUri"]; |
1225 } | 1225 } |
1226 if (_json.containsKey("revisionId")) { | 1226 if (_json.containsKey("revisionId")) { |
1227 revisionId = _json["revisionId"]; | 1227 revisionId = _json["revisionId"]; |
1228 } | 1228 } |
1229 } | 1229 } |
1230 | 1230 |
1231 core.Map toJson() { | 1231 core.Map<core.String, core.Object> toJson() { |
1232 var _json = new core.Map(); | 1232 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1233 if (aliasContext != null) { | 1233 if (aliasContext != null) { |
1234 _json["aliasContext"] = (aliasContext).toJson(); | 1234 _json["aliasContext"] = (aliasContext).toJson(); |
1235 } | 1235 } |
1236 if (aliasName != null) { | 1236 if (aliasName != null) { |
1237 _json["aliasName"] = aliasName; | 1237 _json["aliasName"] = aliasName; |
1238 } | 1238 } |
1239 if (gerritProject != null) { | 1239 if (gerritProject != null) { |
1240 _json["gerritProject"] = gerritProject; | 1240 _json["gerritProject"] = gerritProject; |
1241 } | 1241 } |
1242 if (hostUri != null) { | 1242 if (hostUri != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
1258 Breakpoint breakpoint; | 1258 Breakpoint breakpoint; |
1259 | 1259 |
1260 GetBreakpointResponse(); | 1260 GetBreakpointResponse(); |
1261 | 1261 |
1262 GetBreakpointResponse.fromJson(core.Map _json) { | 1262 GetBreakpointResponse.fromJson(core.Map _json) { |
1263 if (_json.containsKey("breakpoint")) { | 1263 if (_json.containsKey("breakpoint")) { |
1264 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1264 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
1265 } | 1265 } |
1266 } | 1266 } |
1267 | 1267 |
1268 core.Map toJson() { | 1268 core.Map<core.String, core.Object> toJson() { |
1269 var _json = new core.Map(); | 1269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1270 if (breakpoint != null) { | 1270 if (breakpoint != null) { |
1271 _json["breakpoint"] = (breakpoint).toJson(); | 1271 _json["breakpoint"] = (breakpoint).toJson(); |
1272 } | 1272 } |
1273 return _json; | 1273 return _json; |
1274 } | 1274 } |
1275 } | 1275 } |
1276 | 1276 |
1277 /** | 1277 /** |
1278 * A GitSourceContext denotes a particular revision in a third party Git | 1278 * A GitSourceContext denotes a particular revision in a third party Git |
1279 * repository (e.g. GitHub). | 1279 * repository (e.g. GitHub). |
(...skipping 11 matching lines...) Expand all Loading... |
1291 | 1291 |
1292 GitSourceContext.fromJson(core.Map _json) { | 1292 GitSourceContext.fromJson(core.Map _json) { |
1293 if (_json.containsKey("revisionId")) { | 1293 if (_json.containsKey("revisionId")) { |
1294 revisionId = _json["revisionId"]; | 1294 revisionId = _json["revisionId"]; |
1295 } | 1295 } |
1296 if (_json.containsKey("url")) { | 1296 if (_json.containsKey("url")) { |
1297 url = _json["url"]; | 1297 url = _json["url"]; |
1298 } | 1298 } |
1299 } | 1299 } |
1300 | 1300 |
1301 core.Map toJson() { | 1301 core.Map<core.String, core.Object> toJson() { |
1302 var _json = new core.Map(); | 1302 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1303 if (revisionId != null) { | 1303 if (revisionId != null) { |
1304 _json["revisionId"] = revisionId; | 1304 _json["revisionId"] = revisionId; |
1305 } | 1305 } |
1306 if (url != null) { | 1306 if (url != null) { |
1307 _json["url"] = url; | 1307 _json["url"] = url; |
1308 } | 1308 } |
1309 return _json; | 1309 return _json; |
1310 } | 1310 } |
1311 } | 1311 } |
1312 | 1312 |
(...skipping 22 matching lines...) Expand all Loading... |
1335 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); | 1335 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); |
1336 } | 1336 } |
1337 if (_json.containsKey("nextWaitToken")) { | 1337 if (_json.containsKey("nextWaitToken")) { |
1338 nextWaitToken = _json["nextWaitToken"]; | 1338 nextWaitToken = _json["nextWaitToken"]; |
1339 } | 1339 } |
1340 if (_json.containsKey("waitExpired")) { | 1340 if (_json.containsKey("waitExpired")) { |
1341 waitExpired = _json["waitExpired"]; | 1341 waitExpired = _json["waitExpired"]; |
1342 } | 1342 } |
1343 } | 1343 } |
1344 | 1344 |
1345 core.Map toJson() { | 1345 core.Map<core.String, core.Object> toJson() { |
1346 var _json = new core.Map(); | 1346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1347 if (breakpoints != null) { | 1347 if (breakpoints != null) { |
1348 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList
(); | 1348 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList
(); |
1349 } | 1349 } |
1350 if (nextWaitToken != null) { | 1350 if (nextWaitToken != null) { |
1351 _json["nextWaitToken"] = nextWaitToken; | 1351 _json["nextWaitToken"] = nextWaitToken; |
1352 } | 1352 } |
1353 if (waitExpired != null) { | 1353 if (waitExpired != null) { |
1354 _json["waitExpired"] = waitExpired; | 1354 _json["waitExpired"] = waitExpired; |
1355 } | 1355 } |
1356 return _json; | 1356 return _json; |
(...skipping 19 matching lines...) Expand all Loading... |
1376 | 1376 |
1377 ListBreakpointsResponse.fromJson(core.Map _json) { | 1377 ListBreakpointsResponse.fromJson(core.Map _json) { |
1378 if (_json.containsKey("breakpoints")) { | 1378 if (_json.containsKey("breakpoints")) { |
1379 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); | 1379 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); |
1380 } | 1380 } |
1381 if (_json.containsKey("nextWaitToken")) { | 1381 if (_json.containsKey("nextWaitToken")) { |
1382 nextWaitToken = _json["nextWaitToken"]; | 1382 nextWaitToken = _json["nextWaitToken"]; |
1383 } | 1383 } |
1384 } | 1384 } |
1385 | 1385 |
1386 core.Map toJson() { | 1386 core.Map<core.String, core.Object> toJson() { |
1387 var _json = new core.Map(); | 1387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1388 if (breakpoints != null) { | 1388 if (breakpoints != null) { |
1389 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList
(); | 1389 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList
(); |
1390 } | 1390 } |
1391 if (nextWaitToken != null) { | 1391 if (nextWaitToken != null) { |
1392 _json["nextWaitToken"] = nextWaitToken; | 1392 _json["nextWaitToken"] = nextWaitToken; |
1393 } | 1393 } |
1394 return _json; | 1394 return _json; |
1395 } | 1395 } |
1396 } | 1396 } |
1397 | 1397 |
1398 /** Response for listing debuggees. */ | 1398 /** Response for listing debuggees. */ |
1399 class ListDebuggeesResponse { | 1399 class ListDebuggeesResponse { |
1400 /** | 1400 /** |
1401 * List of debuggees accessible to the calling user. | 1401 * List of debuggees accessible to the calling user. |
1402 * Note that the `description` field is the only human readable field | 1402 * Note that the `description` field is the only human readable field |
1403 * that should be displayed to the user. | 1403 * that should be displayed to the user. |
1404 * The fields `debuggee.id` and `description` fields are guaranteed to be | 1404 * The fields `debuggee.id` and `description` fields are guaranteed to be |
1405 * set on each debuggee. | 1405 * set on each debuggee. |
1406 */ | 1406 */ |
1407 core.List<Debuggee> debuggees; | 1407 core.List<Debuggee> debuggees; |
1408 | 1408 |
1409 ListDebuggeesResponse(); | 1409 ListDebuggeesResponse(); |
1410 | 1410 |
1411 ListDebuggeesResponse.fromJson(core.Map _json) { | 1411 ListDebuggeesResponse.fromJson(core.Map _json) { |
1412 if (_json.containsKey("debuggees")) { | 1412 if (_json.containsKey("debuggees")) { |
1413 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); | 1413 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); |
1414 } | 1414 } |
1415 } | 1415 } |
1416 | 1416 |
1417 core.Map toJson() { | 1417 core.Map<core.String, core.Object> toJson() { |
1418 var _json = new core.Map(); | 1418 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1419 if (debuggees != null) { | 1419 if (debuggees != null) { |
1420 _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList(); | 1420 _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList(); |
1421 } | 1421 } |
1422 return _json; | 1422 return _json; |
1423 } | 1423 } |
1424 } | 1424 } |
1425 | 1425 |
1426 /** | 1426 /** |
1427 * Selects a repo using a Google Cloud Platform project ID | 1427 * Selects a repo using a Google Cloud Platform project ID |
1428 * (e.g. winged-cargo-31) and a repo name within that project. | 1428 * (e.g. winged-cargo-31) and a repo name within that project. |
1429 */ | 1429 */ |
1430 class ProjectRepoId { | 1430 class ProjectRepoId { |
1431 /** The ID of the project. */ | 1431 /** The ID of the project. */ |
1432 core.String projectId; | 1432 core.String projectId; |
1433 /** The name of the repo. Leave empty for the default repo. */ | 1433 /** The name of the repo. Leave empty for the default repo. */ |
1434 core.String repoName; | 1434 core.String repoName; |
1435 | 1435 |
1436 ProjectRepoId(); | 1436 ProjectRepoId(); |
1437 | 1437 |
1438 ProjectRepoId.fromJson(core.Map _json) { | 1438 ProjectRepoId.fromJson(core.Map _json) { |
1439 if (_json.containsKey("projectId")) { | 1439 if (_json.containsKey("projectId")) { |
1440 projectId = _json["projectId"]; | 1440 projectId = _json["projectId"]; |
1441 } | 1441 } |
1442 if (_json.containsKey("repoName")) { | 1442 if (_json.containsKey("repoName")) { |
1443 repoName = _json["repoName"]; | 1443 repoName = _json["repoName"]; |
1444 } | 1444 } |
1445 } | 1445 } |
1446 | 1446 |
1447 core.Map toJson() { | 1447 core.Map<core.String, core.Object> toJson() { |
1448 var _json = new core.Map(); | 1448 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1449 if (projectId != null) { | 1449 if (projectId != null) { |
1450 _json["projectId"] = projectId; | 1450 _json["projectId"] = projectId; |
1451 } | 1451 } |
1452 if (repoName != null) { | 1452 if (repoName != null) { |
1453 _json["repoName"] = repoName; | 1453 _json["repoName"] = repoName; |
1454 } | 1454 } |
1455 return _json; | 1455 return _json; |
1456 } | 1456 } |
1457 } | 1457 } |
1458 | 1458 |
1459 /** Request to register a debuggee. */ | 1459 /** Request to register a debuggee. */ |
1460 class RegisterDebuggeeRequest { | 1460 class RegisterDebuggeeRequest { |
1461 /** | 1461 /** |
1462 * Debuggee information to register. | 1462 * Debuggee information to register. |
1463 * The fields `project`, `uniquifier`, `description` and `agent_version` | 1463 * The fields `project`, `uniquifier`, `description` and `agent_version` |
1464 * of the debuggee must be set. | 1464 * of the debuggee must be set. |
1465 */ | 1465 */ |
1466 Debuggee debuggee; | 1466 Debuggee debuggee; |
1467 | 1467 |
1468 RegisterDebuggeeRequest(); | 1468 RegisterDebuggeeRequest(); |
1469 | 1469 |
1470 RegisterDebuggeeRequest.fromJson(core.Map _json) { | 1470 RegisterDebuggeeRequest.fromJson(core.Map _json) { |
1471 if (_json.containsKey("debuggee")) { | 1471 if (_json.containsKey("debuggee")) { |
1472 debuggee = new Debuggee.fromJson(_json["debuggee"]); | 1472 debuggee = new Debuggee.fromJson(_json["debuggee"]); |
1473 } | 1473 } |
1474 } | 1474 } |
1475 | 1475 |
1476 core.Map toJson() { | 1476 core.Map<core.String, core.Object> toJson() { |
1477 var _json = new core.Map(); | 1477 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1478 if (debuggee != null) { | 1478 if (debuggee != null) { |
1479 _json["debuggee"] = (debuggee).toJson(); | 1479 _json["debuggee"] = (debuggee).toJson(); |
1480 } | 1480 } |
1481 return _json; | 1481 return _json; |
1482 } | 1482 } |
1483 } | 1483 } |
1484 | 1484 |
1485 /** Response for registering a debuggee. */ | 1485 /** Response for registering a debuggee. */ |
1486 class RegisterDebuggeeResponse { | 1486 class RegisterDebuggeeResponse { |
1487 /** | 1487 /** |
1488 * Debuggee resource. | 1488 * Debuggee resource. |
1489 * The field `id` is guranteed to be set (in addition to the echoed fields). | 1489 * The field `id` is guranteed to be set (in addition to the echoed fields). |
1490 */ | 1490 */ |
1491 Debuggee debuggee; | 1491 Debuggee debuggee; |
1492 | 1492 |
1493 RegisterDebuggeeResponse(); | 1493 RegisterDebuggeeResponse(); |
1494 | 1494 |
1495 RegisterDebuggeeResponse.fromJson(core.Map _json) { | 1495 RegisterDebuggeeResponse.fromJson(core.Map _json) { |
1496 if (_json.containsKey("debuggee")) { | 1496 if (_json.containsKey("debuggee")) { |
1497 debuggee = new Debuggee.fromJson(_json["debuggee"]); | 1497 debuggee = new Debuggee.fromJson(_json["debuggee"]); |
1498 } | 1498 } |
1499 } | 1499 } |
1500 | 1500 |
1501 core.Map toJson() { | 1501 core.Map<core.String, core.Object> toJson() { |
1502 var _json = new core.Map(); | 1502 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1503 if (debuggee != null) { | 1503 if (debuggee != null) { |
1504 _json["debuggee"] = (debuggee).toJson(); | 1504 _json["debuggee"] = (debuggee).toJson(); |
1505 } | 1505 } |
1506 return _json; | 1506 return _json; |
1507 } | 1507 } |
1508 } | 1508 } |
1509 | 1509 |
1510 /** A unique identifier for a cloud repo. */ | 1510 /** A unique identifier for a cloud repo. */ |
1511 class RepoId { | 1511 class RepoId { |
1512 /** A combination of a project ID and a repo name. */ | 1512 /** A combination of a project ID and a repo name. */ |
1513 ProjectRepoId projectRepoId; | 1513 ProjectRepoId projectRepoId; |
1514 /** A server-assigned, globally unique identifier. */ | 1514 /** A server-assigned, globally unique identifier. */ |
1515 core.String uid; | 1515 core.String uid; |
1516 | 1516 |
1517 RepoId(); | 1517 RepoId(); |
1518 | 1518 |
1519 RepoId.fromJson(core.Map _json) { | 1519 RepoId.fromJson(core.Map _json) { |
1520 if (_json.containsKey("projectRepoId")) { | 1520 if (_json.containsKey("projectRepoId")) { |
1521 projectRepoId = new ProjectRepoId.fromJson(_json["projectRepoId"]); | 1521 projectRepoId = new ProjectRepoId.fromJson(_json["projectRepoId"]); |
1522 } | 1522 } |
1523 if (_json.containsKey("uid")) { | 1523 if (_json.containsKey("uid")) { |
1524 uid = _json["uid"]; | 1524 uid = _json["uid"]; |
1525 } | 1525 } |
1526 } | 1526 } |
1527 | 1527 |
1528 core.Map toJson() { | 1528 core.Map<core.String, core.Object> toJson() { |
1529 var _json = new core.Map(); | 1529 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1530 if (projectRepoId != null) { | 1530 if (projectRepoId != null) { |
1531 _json["projectRepoId"] = (projectRepoId).toJson(); | 1531 _json["projectRepoId"] = (projectRepoId).toJson(); |
1532 } | 1532 } |
1533 if (uid != null) { | 1533 if (uid != null) { |
1534 _json["uid"] = uid; | 1534 _json["uid"] = uid; |
1535 } | 1535 } |
1536 return _json; | 1536 return _json; |
1537 } | 1537 } |
1538 } | 1538 } |
1539 | 1539 |
1540 /** Response for setting a breakpoint. */ | 1540 /** Response for setting a breakpoint. */ |
1541 class SetBreakpointResponse { | 1541 class SetBreakpointResponse { |
1542 /** | 1542 /** |
1543 * Breakpoint resource. | 1543 * Breakpoint resource. |
1544 * The field `id` is guaranteed to be set (in addition to the echoed fileds). | 1544 * The field `id` is guaranteed to be set (in addition to the echoed fileds). |
1545 */ | 1545 */ |
1546 Breakpoint breakpoint; | 1546 Breakpoint breakpoint; |
1547 | 1547 |
1548 SetBreakpointResponse(); | 1548 SetBreakpointResponse(); |
1549 | 1549 |
1550 SetBreakpointResponse.fromJson(core.Map _json) { | 1550 SetBreakpointResponse.fromJson(core.Map _json) { |
1551 if (_json.containsKey("breakpoint")) { | 1551 if (_json.containsKey("breakpoint")) { |
1552 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1552 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
1553 } | 1553 } |
1554 } | 1554 } |
1555 | 1555 |
1556 core.Map toJson() { | 1556 core.Map<core.String, core.Object> toJson() { |
1557 var _json = new core.Map(); | 1557 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1558 if (breakpoint != null) { | 1558 if (breakpoint != null) { |
1559 _json["breakpoint"] = (breakpoint).toJson(); | 1559 _json["breakpoint"] = (breakpoint).toJson(); |
1560 } | 1560 } |
1561 return _json; | 1561 return _json; |
1562 } | 1562 } |
1563 } | 1563 } |
1564 | 1564 |
1565 /** | 1565 /** |
1566 * A SourceContext is a reference to a tree of files. A SourceContext together | 1566 * A SourceContext is a reference to a tree of files. A SourceContext together |
1567 * with a path point to a unique revision of a single file or directory. | 1567 * with a path point to a unique revision of a single file or directory. |
(...skipping 18 matching lines...) Expand all Loading... |
1586 cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWork
space"]); | 1586 cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWork
space"]); |
1587 } | 1587 } |
1588 if (_json.containsKey("gerrit")) { | 1588 if (_json.containsKey("gerrit")) { |
1589 gerrit = new GerritSourceContext.fromJson(_json["gerrit"]); | 1589 gerrit = new GerritSourceContext.fromJson(_json["gerrit"]); |
1590 } | 1590 } |
1591 if (_json.containsKey("git")) { | 1591 if (_json.containsKey("git")) { |
1592 git = new GitSourceContext.fromJson(_json["git"]); | 1592 git = new GitSourceContext.fromJson(_json["git"]); |
1593 } | 1593 } |
1594 } | 1594 } |
1595 | 1595 |
1596 core.Map toJson() { | 1596 core.Map<core.String, core.Object> toJson() { |
1597 var _json = new core.Map(); | 1597 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1598 if (cloudRepo != null) { | 1598 if (cloudRepo != null) { |
1599 _json["cloudRepo"] = (cloudRepo).toJson(); | 1599 _json["cloudRepo"] = (cloudRepo).toJson(); |
1600 } | 1600 } |
1601 if (cloudWorkspace != null) { | 1601 if (cloudWorkspace != null) { |
1602 _json["cloudWorkspace"] = (cloudWorkspace).toJson(); | 1602 _json["cloudWorkspace"] = (cloudWorkspace).toJson(); |
1603 } | 1603 } |
1604 if (gerrit != null) { | 1604 if (gerrit != null) { |
1605 _json["gerrit"] = (gerrit).toJson(); | 1605 _json["gerrit"] = (gerrit).toJson(); |
1606 } | 1606 } |
1607 if (git != null) { | 1607 if (git != null) { |
(...skipping 16 matching lines...) Expand all Loading... |
1624 | 1624 |
1625 SourceLocation.fromJson(core.Map _json) { | 1625 SourceLocation.fromJson(core.Map _json) { |
1626 if (_json.containsKey("line")) { | 1626 if (_json.containsKey("line")) { |
1627 line = _json["line"]; | 1627 line = _json["line"]; |
1628 } | 1628 } |
1629 if (_json.containsKey("path")) { | 1629 if (_json.containsKey("path")) { |
1630 path = _json["path"]; | 1630 path = _json["path"]; |
1631 } | 1631 } |
1632 } | 1632 } |
1633 | 1633 |
1634 core.Map toJson() { | 1634 core.Map<core.String, core.Object> toJson() { |
1635 var _json = new core.Map(); | 1635 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1636 if (line != null) { | 1636 if (line != null) { |
1637 _json["line"] = line; | 1637 _json["line"] = line; |
1638 } | 1638 } |
1639 if (path != null) { | 1639 if (path != null) { |
1640 _json["path"] = path; | 1640 _json["path"] = path; |
1641 } | 1641 } |
1642 return _json; | 1642 return _json; |
1643 } | 1643 } |
1644 } | 1644 } |
1645 | 1645 |
(...skipping 24 matching lines...) Expand all Loading... |
1670 function = _json["function"]; | 1670 function = _json["function"]; |
1671 } | 1671 } |
1672 if (_json.containsKey("locals")) { | 1672 if (_json.containsKey("locals")) { |
1673 locals = _json["locals"].map((value) => new Variable.fromJson(value)).toLi
st(); | 1673 locals = _json["locals"].map((value) => new Variable.fromJson(value)).toLi
st(); |
1674 } | 1674 } |
1675 if (_json.containsKey("location")) { | 1675 if (_json.containsKey("location")) { |
1676 location = new SourceLocation.fromJson(_json["location"]); | 1676 location = new SourceLocation.fromJson(_json["location"]); |
1677 } | 1677 } |
1678 } | 1678 } |
1679 | 1679 |
1680 core.Map toJson() { | 1680 core.Map<core.String, core.Object> toJson() { |
1681 var _json = new core.Map(); | 1681 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1682 if (arguments != null) { | 1682 if (arguments != null) { |
1683 _json["arguments"] = arguments.map((value) => (value).toJson()).toList(); | 1683 _json["arguments"] = arguments.map((value) => (value).toJson()).toList(); |
1684 } | 1684 } |
1685 if (function != null) { | 1685 if (function != null) { |
1686 _json["function"] = function; | 1686 _json["function"] = function; |
1687 } | 1687 } |
1688 if (locals != null) { | 1688 if (locals != null) { |
1689 _json["locals"] = locals.map((value) => (value).toJson()).toList(); | 1689 _json["locals"] = locals.map((value) => (value).toJson()).toList(); |
1690 } | 1690 } |
1691 if (location != null) { | 1691 if (location != null) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 description = new FormatMessage.fromJson(_json["description"]); | 1732 description = new FormatMessage.fromJson(_json["description"]); |
1733 } | 1733 } |
1734 if (_json.containsKey("isError")) { | 1734 if (_json.containsKey("isError")) { |
1735 isError = _json["isError"]; | 1735 isError = _json["isError"]; |
1736 } | 1736 } |
1737 if (_json.containsKey("refersTo")) { | 1737 if (_json.containsKey("refersTo")) { |
1738 refersTo = _json["refersTo"]; | 1738 refersTo = _json["refersTo"]; |
1739 } | 1739 } |
1740 } | 1740 } |
1741 | 1741 |
1742 core.Map toJson() { | 1742 core.Map<core.String, core.Object> toJson() { |
1743 var _json = new core.Map(); | 1743 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1744 if (description != null) { | 1744 if (description != null) { |
1745 _json["description"] = (description).toJson(); | 1745 _json["description"] = (description).toJson(); |
1746 } | 1746 } |
1747 if (isError != null) { | 1747 if (isError != null) { |
1748 _json["isError"] = isError; | 1748 _json["isError"] = isError; |
1749 } | 1749 } |
1750 if (refersTo != null) { | 1750 if (refersTo != null) { |
1751 _json["refersTo"] = refersTo; | 1751 _json["refersTo"] = refersTo; |
1752 } | 1752 } |
1753 return _json; | 1753 return _json; |
1754 } | 1754 } |
1755 } | 1755 } |
1756 | 1756 |
1757 /** Request to update an active breakpoint. */ | 1757 /** Request to update an active breakpoint. */ |
1758 class UpdateActiveBreakpointRequest { | 1758 class UpdateActiveBreakpointRequest { |
1759 /** | 1759 /** |
1760 * Updated breakpoint information. | 1760 * Updated breakpoint information. |
1761 * The field 'id' must be set. | 1761 * The field 'id' must be set. |
1762 */ | 1762 */ |
1763 Breakpoint breakpoint; | 1763 Breakpoint breakpoint; |
1764 | 1764 |
1765 UpdateActiveBreakpointRequest(); | 1765 UpdateActiveBreakpointRequest(); |
1766 | 1766 |
1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { | 1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { |
1768 if (_json.containsKey("breakpoint")) { | 1768 if (_json.containsKey("breakpoint")) { |
1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
1770 } | 1770 } |
1771 } | 1771 } |
1772 | 1772 |
1773 core.Map toJson() { | 1773 core.Map<core.String, core.Object> toJson() { |
1774 var _json = new core.Map(); | 1774 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1775 if (breakpoint != null) { | 1775 if (breakpoint != null) { |
1776 _json["breakpoint"] = (breakpoint).toJson(); | 1776 _json["breakpoint"] = (breakpoint).toJson(); |
1777 } | 1777 } |
1778 return _json; | 1778 return _json; |
1779 } | 1779 } |
1780 } | 1780 } |
1781 | 1781 |
1782 /** | 1782 /** |
1783 * Response for updating an active breakpoint. | 1783 * Response for updating an active breakpoint. |
1784 * The message is defined to allow future extensions. | 1784 * The message is defined to allow future extensions. |
1785 */ | 1785 */ |
1786 class UpdateActiveBreakpointResponse { | 1786 class UpdateActiveBreakpointResponse { |
1787 | 1787 |
1788 UpdateActiveBreakpointResponse(); | 1788 UpdateActiveBreakpointResponse(); |
1789 | 1789 |
1790 UpdateActiveBreakpointResponse.fromJson(core.Map _json) { | 1790 UpdateActiveBreakpointResponse.fromJson(core.Map _json) { |
1791 } | 1791 } |
1792 | 1792 |
1793 core.Map toJson() { | 1793 core.Map<core.String, core.Object> toJson() { |
1794 var _json = new core.Map(); | 1794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1795 return _json; | 1795 return _json; |
1796 } | 1796 } |
1797 } | 1797 } |
1798 | 1798 |
1799 /** | 1799 /** |
1800 * Represents a variable or an argument possibly of a compound object type. | 1800 * Represents a variable or an argument possibly of a compound object type. |
1801 * Note how the following variables are represented: | 1801 * Note how the following variables are represented: |
1802 * | 1802 * |
1803 * 1) A simple variable: | 1803 * 1) A simple variable: |
1804 * | 1804 * |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 type = _json["type"]; | 1966 type = _json["type"]; |
1967 } | 1967 } |
1968 if (_json.containsKey("value")) { | 1968 if (_json.containsKey("value")) { |
1969 value = _json["value"]; | 1969 value = _json["value"]; |
1970 } | 1970 } |
1971 if (_json.containsKey("varTableIndex")) { | 1971 if (_json.containsKey("varTableIndex")) { |
1972 varTableIndex = _json["varTableIndex"]; | 1972 varTableIndex = _json["varTableIndex"]; |
1973 } | 1973 } |
1974 } | 1974 } |
1975 | 1975 |
1976 core.Map toJson() { | 1976 core.Map<core.String, core.Object> toJson() { |
1977 var _json = new core.Map(); | 1977 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1978 if (members != null) { | 1978 if (members != null) { |
1979 _json["members"] = members.map((value) => (value).toJson()).toList(); | 1979 _json["members"] = members.map((value) => (value).toJson()).toList(); |
1980 } | 1980 } |
1981 if (name != null) { | 1981 if (name != null) { |
1982 _json["name"] = name; | 1982 _json["name"] = name; |
1983 } | 1983 } |
1984 if (status != null) { | 1984 if (status != null) { |
1985 _json["status"] = (status).toJson(); | 1985 _json["status"] = (status).toJson(); |
1986 } | 1986 } |
1987 if (type != null) { | 1987 if (type != null) { |
1988 _json["type"] = type; | 1988 _json["type"] = type; |
1989 } | 1989 } |
1990 if (value != null) { | 1990 if (value != null) { |
1991 _json["value"] = value; | 1991 _json["value"] = value; |
1992 } | 1992 } |
1993 if (varTableIndex != null) { | 1993 if (varTableIndex != null) { |
1994 _json["varTableIndex"] = varTableIndex; | 1994 _json["varTableIndex"] = varTableIndex; |
1995 } | 1995 } |
1996 return _json; | 1996 return _json; |
1997 } | 1997 } |
1998 } | 1998 } |
OLD | NEW |