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

Side by Side Diff: generated/googleapis/lib/clouddebugger/v2.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
(Empty)
1 // This is a generated file (see the discoveryapis_generator project).
2
3 library googleapis.clouddebugger.v2;
4
5 import 'dart:core' as core;
6 import 'dart:async' as async;
7 import 'dart:convert' as convert;
8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http;
11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError;
14
15 const core.String USER_AGENT = 'dart-api-client clouddebugger/v2';
16
17 class ClouddebuggerApi {
18 /** View and manage your data across Google Cloud Platform services */
19 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
20
21 /** Manage cloud debugger */
22 static const CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debug ger";
23
24 /** Manage active breakpoints in cloud debugger */
25 static const CloudDebugletcontrollerScope = "https://www.googleapis.com/auth/c loud_debugletcontroller";
26
27
28 final commons.ApiRequester _requester;
29
30 ControllerResourceApi get controller => new ControllerResourceApi(_requester);
31 DebuggerResourceApi get debugger => new DebuggerResourceApi(_requester);
32
33 ClouddebuggerApi(http.Client client, {core.String rootUrl: "https://clouddebug ger.googleapis.com/", core.String servicePath: ""}) :
34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
35 }
36
37
38 class ControllerResourceApi {
39 final commons.ApiRequester _requester;
40
41 ControllerDebuggeesResourceApi get debuggees => new ControllerDebuggeesResourc eApi(_requester);
42
43 ControllerResourceApi(commons.ApiRequester client) :
44 _requester = client;
45 }
46
47
48 class ControllerDebuggeesResourceApi {
49 final commons.ApiRequester _requester;
50
51 ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDeb uggeesBreakpointsResourceApi(_requester);
52
53 ControllerDebuggeesResourceApi(commons.ApiRequester client) :
54 _requester = client;
55
56 /**
57 * Registers the debuggee with the controller. All agents should call this API
58 * with the same request content to get back the same stable 'debuggee_id'.
59 * Agents should call this API again whenever ListActiveBreakpoints or
60 * UpdateActiveBreakpoint return the error google.rpc.Code.NOT_FOUND. It
61 * allows the server to disable the agent or recover from any registration
62 * loss. If the debuggee is disabled server, the response will have
63 * is_disabled' set to true.
64 *
65 * [request] - The metadata request object.
66 *
67 * Request parameters:
68 *
69 * Completes with a [RegisterDebuggeeResponse].
70 *
71 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
72 * error.
73 *
74 * If the used [http.Client] completes with an error when making a REST call,
75 * this method will complete with the same error.
76 */
77 async.Future<RegisterDebuggeeResponse> register(RegisterDebuggeeRequest reques t) {
78 var _url = null;
79 var _queryParams = new core.Map();
80 var _uploadMedia = null;
81 var _uploadOptions = null;
82 var _downloadOptions = commons.DownloadOptions.Metadata;
83 var _body = null;
84
85 if (request != null) {
86 _body = convert.JSON.encode((request).toJson());
87 }
88
89 _url = 'v2/controller/debuggees/register';
90
91 var _response = _requester.request(_url,
92 "POST",
93 body: _body,
94 queryParams: _queryParams,
95 uploadOptions: _uploadOptions,
96 uploadMedia: _uploadMedia,
97 downloadOptions: _downloadOptions);
98 return _response.then((data) => new RegisterDebuggeeResponse.fromJson(data)) ;
99 }
100
101 }
102
103
104 class ControllerDebuggeesBreakpointsResourceApi {
105 final commons.ApiRequester _requester;
106
107 ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) :
108 _requester = client;
109
110 /**
111 * Returns the list of all active breakpoints for the specified debuggee. The
112 * breakpoint specification (location, condition, and expression fields) is
113 * semantically immutable, although the field values may change. For example,
114 * an agent may update the location line number to reflect the actual line the
115 * breakpoint was set to, but that doesn't change the breakpoint semantics.
116 * Thus, an agent does not need to check if a breakpoint has changed when it
117 * encounters the same breakpoint on a successive call. Moreover, an agent
118 * should remember breakpoints that are complete until the controller removes
119 * them from the active list to avoid setting those breakpoints again.
120 *
121 * Request parameters:
122 *
123 * [debuggeeId] - Identifies the debuggee.
124 *
125 * [waitToken] - A wait token that, if specified, blocks the method call until
126 * the list of active breakpoints has changed, or a server selected timeout
127 * has expired. The value should be set from the last returned response. The
128 * error code google.rpc.Code.ABORTED is returned on wait timeout (which does
129 * not require the agent to re-register with the server)
130 *
131 * Completes with a [ListActiveBreakpointsResponse].
132 *
133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
134 * error.
135 *
136 * If the used [http.Client] completes with an error when making a REST call,
137 * this method will complete with the same error.
138 */
139 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core .String waitToken}) {
140 var _url = null;
141 var _queryParams = new core.Map();
142 var _uploadMedia = null;
143 var _uploadOptions = null;
144 var _downloadOptions = commons.DownloadOptions.Metadata;
145 var _body = null;
146
147 if (debuggeeId == null) {
148 throw new core.ArgumentError("Parameter debuggeeId is required.");
149 }
150 if (waitToken != null) {
151 _queryParams["waitToken"] = [waitToken];
152 }
153
154 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee Id') + '/breakpoints';
155
156 var _response = _requester.request(_url,
157 "GET",
158 body: _body,
159 queryParams: _queryParams,
160 uploadOptions: _uploadOptions,
161 uploadMedia: _uploadMedia,
162 downloadOptions: _downloadOptions);
163 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d ata));
164 }
165
166 /**
167 * Updates the breakpoint state or mutable fields. The entire Breakpoint
168 * protobuf must be sent back to the controller. Updates to active breakpoint
169 * fields are only allowed if the new value does not change the breakpoint
170 * specification. Updates to the 'location', 'condition' and 'expression'
171 * fields should not alter the breakpoint semantics. They are restricted to
172 * changes such as canonicalizing a value or snapping the location to the
173 * correct line of code.
174 *
175 * [request] - The metadata request object.
176 *
177 * Request parameters:
178 *
179 * [debuggeeId] - Identifies the debuggee being debugged.
180 *
181 * [id] - Breakpoint identifier, unique in the scope of the debuggee.
182 *
183 * Completes with a [UpdateActiveBreakpointResponse].
184 *
185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
186 * error.
187 *
188 * If the used [http.Client] completes with an error when making a REST call,
189 * this method will complete with the same error.
190 */
191 async.Future<UpdateActiveBreakpointResponse> update(UpdateActiveBreakpointRequ est request, core.String debuggeeId, core.String id) {
192 var _url = null;
193 var _queryParams = new core.Map();
194 var _uploadMedia = null;
195 var _uploadOptions = null;
196 var _downloadOptions = commons.DownloadOptions.Metadata;
197 var _body = null;
198
199 if (request != null) {
200 _body = convert.JSON.encode((request).toJson());
201 }
202 if (debuggeeId == null) {
203 throw new core.ArgumentError("Parameter debuggeeId is required.");
204 }
205 if (id == null) {
206 throw new core.ArgumentError("Parameter id is required.");
207 }
208
209 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee Id') + '/breakpoints/' + commons.Escaper.ecapeVariable('$id');
210
211 var _response = _requester.request(_url,
212 "PUT",
213 body: _body,
214 queryParams: _queryParams,
215 uploadOptions: _uploadOptions,
216 uploadMedia: _uploadMedia,
217 downloadOptions: _downloadOptions);
218 return _response.then((data) => new UpdateActiveBreakpointResponse.fromJson( data));
219 }
220
221 }
222
223
224 class DebuggerResourceApi {
225 final commons.ApiRequester _requester;
226
227 DebuggerDebuggeesResourceApi get debuggees => new DebuggerDebuggeesResourceApi (_requester);
228
229 DebuggerResourceApi(commons.ApiRequester client) :
230 _requester = client;
231 }
232
233
234 class DebuggerDebuggeesResourceApi {
235 final commons.ApiRequester _requester;
236
237 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge esBreakpointsResourceApi(_requester);
238
239 DebuggerDebuggeesResourceApi(commons.ApiRequester client) :
240 _requester = client;
241
242 /**
243 * Lists all the debuggees that the user can set breakpoints to.
244 *
245 * Request parameters:
246 *
247 * [project] - Set to the project number of the Google Cloud Platform to list
248 * the debuggees that are part of that project.
249 *
250 * [includeInactive] - When set to true the result includes all debuggees,
251 * otherwise only debugees that are active.
252 *
253 * Completes with a [ListDebuggeesResponse].
254 *
255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
256 * error.
257 *
258 * If the used [http.Client] completes with an error when making a REST call,
259 * this method will complete with the same error.
260 */
261 async.Future<ListDebuggeesResponse> list({core.String project, core.bool inclu deInactive}) {
262 var _url = null;
263 var _queryParams = new core.Map();
264 var _uploadMedia = null;
265 var _uploadOptions = null;
266 var _downloadOptions = commons.DownloadOptions.Metadata;
267 var _body = null;
268
269 if (project != null) {
270 _queryParams["project"] = [project];
271 }
272 if (includeInactive != null) {
273 _queryParams["includeInactive"] = ["${includeInactive}"];
274 }
275
276 _url = 'v2/debugger/debuggees';
277
278 var _response = _requester.request(_url,
279 "GET",
280 body: _body,
281 queryParams: _queryParams,
282 uploadOptions: _uploadOptions,
283 uploadMedia: _uploadMedia,
284 downloadOptions: _downloadOptions);
285 return _response.then((data) => new ListDebuggeesResponse.fromJson(data));
286 }
287
288 }
289
290
291 class DebuggerDebuggeesBreakpointsResourceApi {
292 final commons.ApiRequester _requester;
293
294 DebuggerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) :
295 _requester = client;
296
297 /**
298 * Deletes the breakpoint from the debuggee.
299 *
300 * Request parameters:
301 *
302 * [debuggeeId] - The debuggee id to delete the breakpoint from.
303 *
304 * [breakpointId] - The breakpoint to delete.
305 *
306 * Completes with a [Empty].
307 *
308 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
309 * error.
310 *
311 * If the used [http.Client] completes with an error when making a REST call,
312 * this method will complete with the same error.
313 */
314 async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId) {
315 var _url = null;
316 var _queryParams = new core.Map();
317 var _uploadMedia = null;
318 var _uploadOptions = null;
319 var _downloadOptions = commons.DownloadOptions.Metadata;
320 var _body = null;
321
322 if (debuggeeId == null) {
323 throw new core.ArgumentError("Parameter debuggeeId is required.");
324 }
325 if (breakpointId == null) {
326 throw new core.ArgumentError("Parameter breakpointId is required.");
327 }
328
329 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId ') + '/breakpoints/' + commons.Escaper.ecapeVariable('$breakpointId');
330
331 var _response = _requester.request(_url,
332 "DELETE",
333 body: _body,
334 queryParams: _queryParams,
335 uploadOptions: _uploadOptions,
336 uploadMedia: _uploadMedia,
337 downloadOptions: _downloadOptions);
338 return _response.then((data) => new Empty.fromJson(data));
339 }
340
341 /**
342 * Gets breakpoint information.
343 *
344 * Request parameters:
345 *
346 * [debuggeeId] - The debuggee id to get the breakpoint from.
347 *
348 * [breakpointId] - The breakpoint to get.
349 *
350 * Completes with a [GetBreakpointResponse].
351 *
352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
353 * error.
354 *
355 * If the used [http.Client] completes with an error when making a REST call,
356 * this method will complete with the same error.
357 */
358 async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String br eakpointId) {
359 var _url = null;
360 var _queryParams = new core.Map();
361 var _uploadMedia = null;
362 var _uploadOptions = null;
363 var _downloadOptions = commons.DownloadOptions.Metadata;
364 var _body = null;
365
366 if (debuggeeId == null) {
367 throw new core.ArgumentError("Parameter debuggeeId is required.");
368 }
369 if (breakpointId == null) {
370 throw new core.ArgumentError("Parameter breakpointId is required.");
371 }
372
373 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId ') + '/breakpoints/' + commons.Escaper.ecapeVariable('$breakpointId');
374
375 var _response = _requester.request(_url,
376 "GET",
377 body: _body,
378 queryParams: _queryParams,
379 uploadOptions: _uploadOptions,
380 uploadMedia: _uploadMedia,
381 downloadOptions: _downloadOptions);
382 return _response.then((data) => new GetBreakpointResponse.fromJson(data));
383 }
384
385 /**
386 * Lists all breakpoints of the debuggee that the user has access to.
387 *
388 * Request parameters:
389 *
390 * [debuggeeId] - The debuggee id to list breakpoint from.
391 *
392 * [includeAllUsers] - When set to true the response includes the list of
393 * breakpoints set by any user, otherwise only breakpoints set by the caller.
394 *
395 * [includeInactive] - When set to true the response includes active and
396 * inactive breakpoints, otherwise only active breakpoints are returned.
397 *
398 * [action_value] - Only breakpoints with the specified action will pass the
399 * filter.
400 * Possible string values are:
401 * - "CAPTURE" : A CAPTURE.
402 * - "LOG" : A LOG.
403 *
404 * [stripResults] - When set to true the response breakpoints will be stripped
405 * of the results fields: stack_frames, evaluated_expressions and
406 * variable_table.
407 *
408 * [waitToken] - A wait token that, if specified, blocks the call until the
409 * breakpoints list has changed, or a server selected timeout has expired. The
410 * value should be set from the last response to ListBreakpoints. The error
411 * code ABORTED is returned on wait timeout, which should be called again with
412 * the same wait_token.
413 *
414 * Completes with a [ListBreakpointsResponse].
415 *
416 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
417 * error.
418 *
419 * If the used [http.Client] completes with an error when making a REST call,
420 * this method will complete with the same error.
421 */
422 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.bool includeAllUsers, core.bool includeInactive, core.String action_value, core.bool stripResults, core.String waitToken}) {
423 var _url = null;
424 var _queryParams = new core.Map();
425 var _uploadMedia = null;
426 var _uploadOptions = null;
427 var _downloadOptions = commons.DownloadOptions.Metadata;
428 var _body = null;
429
430 if (debuggeeId == null) {
431 throw new core.ArgumentError("Parameter debuggeeId is required.");
432 }
433 if (includeAllUsers != null) {
434 _queryParams["includeAllUsers"] = ["${includeAllUsers}"];
435 }
436 if (includeInactive != null) {
437 _queryParams["includeInactive"] = ["${includeInactive}"];
438 }
439 if (action_value != null) {
440 _queryParams["action.value"] = [action_value];
441 }
442 if (stripResults != null) {
443 _queryParams["stripResults"] = ["${stripResults}"];
444 }
445 if (waitToken != null) {
446 _queryParams["waitToken"] = [waitToken];
447 }
448
449 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId ') + '/breakpoints';
450
451 var _response = _requester.request(_url,
452 "GET",
453 body: _body,
454 queryParams: _queryParams,
455 uploadOptions: _uploadOptions,
456 uploadMedia: _uploadMedia,
457 downloadOptions: _downloadOptions);
458 return _response.then((data) => new ListBreakpointsResponse.fromJson(data));
459 }
460
461 /**
462 * Sets the breakpoint to the debuggee.
463 *
464 * [request] - The metadata request object.
465 *
466 * Request parameters:
467 *
468 * [debuggeeId] - The debuggee id to set the breakpoint to.
469 *
470 * Completes with a [SetBreakpointResponse].
471 *
472 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
473 * error.
474 *
475 * If the used [http.Client] completes with an error when making a REST call,
476 * this method will complete with the same error.
477 */
478 async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debugg eeId) {
479 var _url = null;
480 var _queryParams = new core.Map();
481 var _uploadMedia = null;
482 var _uploadOptions = null;
483 var _downloadOptions = commons.DownloadOptions.Metadata;
484 var _body = null;
485
486 if (request != null) {
487 _body = convert.JSON.encode((request).toJson());
488 }
489 if (debuggeeId == null) {
490 throw new core.ArgumentError("Parameter debuggeeId is required.");
491 }
492
493 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId ') + '/breakpoints/set';
494
495 var _response = _requester.request(_url,
496 "POST",
497 body: _body,
498 queryParams: _queryParams,
499 uploadOptions: _uploadOptions,
500 uploadMedia: _uploadMedia,
501 downloadOptions: _downloadOptions);
502 return _response.then((data) => new SetBreakpointResponse.fromJson(data));
503 }
504
505 }
506
507
508
509 /** Represents the breakpoint specification, status and results. */
510 class Breakpoint {
511 /**
512 * Defines what to do when the breakpoint hits.
513 * Possible string values are:
514 * - "CAPTURE" : A CAPTURE.
515 * - "LOG" : A LOG.
516 */
517 core.String action;
518 /**
519 * A condition to trigger the breakpoint. The condition is a compound boolean
520 * expression composed using expressions in a programming language at the
521 * source location.
522 */
523 core.String condition;
524 /**
525 * The time this breakpoint was created by the server. The value is in seconds
526 * resolution.
527 */
528 core.String createTime;
529 /**
530 * The evaluated expressions' values at breakpoint time. The evaluated
531 * expressions appear in exactly the same order they are listed in the
532 * 'expressions' field. The 'name' field holds the original expression text,
533 * the 'value'/'members' field holds the result of the evaluated expression.
534 * If the expression can not be evaluated, an error text is placed in the
535 * value field.
536 */
537 core.List<Variable> evaluatedExpressions;
538 /**
539 * A list of read-only expressions to evaluate at the breakpoint location. The
540 * expressions are composed using expressions in the programming language at
541 * the source location. If the breakpoint action is "LOG", the evaluated
542 * expressions are included in log statements.
543 */
544 core.List<core.String> expressions;
545 /**
546 * The time this breakpoint was finalized as seen by the server. The value is
547 * in seconds resolution.
548 */
549 core.String finalTime;
550 /** Breakpoint identifier, unique in the scope of the debuggee. */
551 core.String id;
552 /**
553 * When true, indicates that this is a final result and the breakpoint state
554 * will not change from here on.
555 */
556 core.bool isFinalState;
557 /** The breakpoint source location. */
558 SourceLocation location;
559 /**
560 * Indicates the severity of the log. Only relevant when action is "LOG".
561 * Possible string values are:
562 * - "INFO" : A INFO.
563 * - "WARNING" : A WARNING.
564 * - "ERROR" : A ERROR.
565 */
566 core.String logLevel;
567 /**
568 * Only relevant when action is "LOG". Defines the message to log when the
569 * breakpoint hits. The message may include parameter placeholders "$0", "$1",
570 * etc. These placeholders will be replaced with the evaluated value of the
571 * appropriate expression. Expressions not referenced in "log_message_format"
572 * will not be logged. Example: "Poisonous message received, id = $0, count =
573 * $1" with expressions = [ "message.id", "message.count" ].
574 */
575 core.String logMessageFormat;
576 /** The stack at breakpoint time. */
577 core.List<StackFrame> stackFrames;
578 /**
579 * Breakpoint status. The status includes an error flag and a human readable
580 * message. This field will usually stay unset. The message can be either
581 * informational or error. Nevertheless, clients should always display the
582 * text message back to the user. Error status of a breakpoint indicates
583 * complete failure. Example (non-final state): 'Still loading symbols...'
584 * Examples (final state): 'Failed to insert breakpoint' referring to
585 * breakpoint, 'Field f not found in class C' referring to condition, ...
586 */
587 StatusMessage status;
588 /** The e-mail of the user that created this breakpoint */
589 core.String userEmail;
590 /**
591 * The variable_table exists to aid with computation, memory and network
592 * traffic optimization. It enables storing a variable once and reference it
593 * from multiple variables, including variables stored in the variable_table
594 * itself. For example, the object 'this', which may appear at many levels of
595 * the stack, can have all of it's data stored once in this table. The stack
596 * frame variables then would hold only a reference to it. The variable
597 * var_index field is an index into this repeated field. The stored objects
598 * are nameless and get their name from the referencing variable. The
599 * effective variable is a merge of the referencing veariable and the
600 * referenced variable.
601 */
602 core.List<Variable> variableTable;
603
604 Breakpoint();
605
606 Breakpoint.fromJson(core.Map _json) {
607 if (_json.containsKey("action")) {
608 action = _json["action"];
609 }
610 if (_json.containsKey("condition")) {
611 condition = _json["condition"];
612 }
613 if (_json.containsKey("createTime")) {
614 createTime = _json["createTime"];
615 }
616 if (_json.containsKey("evaluatedExpressions")) {
617 evaluatedExpressions = _json["evaluatedExpressions"].map((value) => new Va riable.fromJson(value)).toList();
618 }
619 if (_json.containsKey("expressions")) {
620 expressions = _json["expressions"];
621 }
622 if (_json.containsKey("finalTime")) {
623 finalTime = _json["finalTime"];
624 }
625 if (_json.containsKey("id")) {
626 id = _json["id"];
627 }
628 if (_json.containsKey("isFinalState")) {
629 isFinalState = _json["isFinalState"];
630 }
631 if (_json.containsKey("location")) {
632 location = new SourceLocation.fromJson(_json["location"]);
633 }
634 if (_json.containsKey("logLevel")) {
635 logLevel = _json["logLevel"];
636 }
637 if (_json.containsKey("logMessageFormat")) {
638 logMessageFormat = _json["logMessageFormat"];
639 }
640 if (_json.containsKey("stackFrames")) {
641 stackFrames = _json["stackFrames"].map((value) => new StackFrame.fromJson( value)).toList();
642 }
643 if (_json.containsKey("status")) {
644 status = new StatusMessage.fromJson(_json["status"]);
645 }
646 if (_json.containsKey("userEmail")) {
647 userEmail = _json["userEmail"];
648 }
649 if (_json.containsKey("variableTable")) {
650 variableTable = _json["variableTable"].map((value) => new Variable.fromJso n(value)).toList();
651 }
652 }
653
654 core.Map toJson() {
655 var _json = new core.Map();
656 if (action != null) {
657 _json["action"] = action;
658 }
659 if (condition != null) {
660 _json["condition"] = condition;
661 }
662 if (createTime != null) {
663 _json["createTime"] = createTime;
664 }
665 if (evaluatedExpressions != null) {
666 _json["evaluatedExpressions"] = evaluatedExpressions.map((value) => (value ).toJson()).toList();
667 }
668 if (expressions != null) {
669 _json["expressions"] = expressions;
670 }
671 if (finalTime != null) {
672 _json["finalTime"] = finalTime;
673 }
674 if (id != null) {
675 _json["id"] = id;
676 }
677 if (isFinalState != null) {
678 _json["isFinalState"] = isFinalState;
679 }
680 if (location != null) {
681 _json["location"] = (location).toJson();
682 }
683 if (logLevel != null) {
684 _json["logLevel"] = logLevel;
685 }
686 if (logMessageFormat != null) {
687 _json["logMessageFormat"] = logMessageFormat;
688 }
689 if (stackFrames != null) {
690 _json["stackFrames"] = stackFrames.map((value) => (value).toJson()).toList ();
691 }
692 if (status != null) {
693 _json["status"] = (status).toJson();
694 }
695 if (userEmail != null) {
696 _json["userEmail"] = userEmail;
697 }
698 if (variableTable != null) {
699 _json["variableTable"] = variableTable.map((value) => (value).toJson()).to List();
700 }
701 return _json;
702 }
703 }
704
705 /**
706 * A CloudRepoSourceContext denotes a particular revision in a cloud repo (a
707 * repo hosted by the Google Cloud Platform).
708 */
709 class CloudRepoSourceContext {
710 /** The name of an alias (branch, tag, etc.). */
711 core.String aliasName;
712 /** The ID of the repo. */
713 RepoId repoId;
714 /** A revision ID. */
715 core.String revisionId;
716
717 CloudRepoSourceContext();
718
719 CloudRepoSourceContext.fromJson(core.Map _json) {
720 if (_json.containsKey("aliasName")) {
721 aliasName = _json["aliasName"];
722 }
723 if (_json.containsKey("repoId")) {
724 repoId = new RepoId.fromJson(_json["repoId"]);
725 }
726 if (_json.containsKey("revisionId")) {
727 revisionId = _json["revisionId"];
728 }
729 }
730
731 core.Map toJson() {
732 var _json = new core.Map();
733 if (aliasName != null) {
734 _json["aliasName"] = aliasName;
735 }
736 if (repoId != null) {
737 _json["repoId"] = (repoId).toJson();
738 }
739 if (revisionId != null) {
740 _json["revisionId"] = revisionId;
741 }
742 return _json;
743 }
744 }
745
746 /**
747 * A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
748 * workspace is a place associated with a repo where modified files can be
749 * stored before they are committed.
750 */
751 class CloudWorkspaceId {
752 /**
753 * The unique name of the workspace within the repo. This is the name chosen
754 * by the client in the Source API's CreateWorkspace method.
755 */
756 core.String name;
757 /** The ID of the repo containing the workspace. */
758 RepoId repoId;
759
760 CloudWorkspaceId();
761
762 CloudWorkspaceId.fromJson(core.Map _json) {
763 if (_json.containsKey("name")) {
764 name = _json["name"];
765 }
766 if (_json.containsKey("repoId")) {
767 repoId = new RepoId.fromJson(_json["repoId"]);
768 }
769 }
770
771 core.Map toJson() {
772 var _json = new core.Map();
773 if (name != null) {
774 _json["name"] = name;
775 }
776 if (repoId != null) {
777 _json["repoId"] = (repoId).toJson();
778 }
779 return _json;
780 }
781 }
782
783 /**
784 * A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
785 */
786 class CloudWorkspaceSourceContext {
787 /**
788 * The ID of the snapshot. An empty snapshot_id refers to the most recent
789 * snapshot.
790 */
791 core.String snapshotId;
792 /** The ID of the workspace. */
793 CloudWorkspaceId workspaceId;
794
795 CloudWorkspaceSourceContext();
796
797 CloudWorkspaceSourceContext.fromJson(core.Map _json) {
798 if (_json.containsKey("snapshotId")) {
799 snapshotId = _json["snapshotId"];
800 }
801 if (_json.containsKey("workspaceId")) {
802 workspaceId = new CloudWorkspaceId.fromJson(_json["workspaceId"]);
803 }
804 }
805
806 core.Map toJson() {
807 var _json = new core.Map();
808 if (snapshotId != null) {
809 _json["snapshotId"] = snapshotId;
810 }
811 if (workspaceId != null) {
812 _json["workspaceId"] = (workspaceId).toJson();
813 }
814 return _json;
815 }
816 }
817
818 /**
819 * Represents the application to debug. The application may include one or more
820 * replicated processes executing the same code. Each of these processes is
821 * attached with a debugger agent, carrying out the debugging commands. The
822 * agents attached to the same debuggee are identified by using exactly the same
823 * fields' values when registering.
824 */
825 class Debuggee {
826 /**
827 * Version ID of the agent release. The version ID is structured as following:
828 * "domain/type/vmajor.minor" (for example "google.com/gcp-java/v1.1").
829 */
830 core.String agentVersion;
831 /**
832 * A human readable description of the debuggee. Recommended to include human
833 * readable project name, environment name, and version information .
834 */
835 core.String description;
836 /** Debuggee unique identifer generated by the server. */
837 core.String id;
838 /**
839 * If set to true, indicates that the agent should disable itself and detach
840 * from the debuggee.
841 */
842 core.bool isDisabled;
843 /**
844 * If set to true indicates that the debuggee has not been seen by the
845 * Controller service in the last active time period (defined by the server).
846 */
847 core.bool isInactive;
848 /**
849 * A set of custom debuggee properties, populated by the agent, to be
850 * displayed to the user.
851 */
852 core.Map<core.String, core.String> labels;
853 /**
854 * The project the debuggee is associated with. Use the project number when
855 * registering a Google Cloud Platform project.
856 */
857 core.String project;
858 /** Repository snapshots containing the source code of the project. */
859 core.List<SourceContext> sourceContexts;
860 /**
861 * Human readable message to be displayed to the user about this debuggee.
862 * Absense of this field indicates no message. The message can be either
863 * informational or error.
864 */
865 StatusMessage status;
866 /**
867 * The debuggee uniqifier within the project. Any string that id the
868 * application within the project can be used. Recomended to include
869 * environement and version or build id's.
870 */
871 core.String uniquifier;
872
873 Debuggee();
874
875 Debuggee.fromJson(core.Map _json) {
876 if (_json.containsKey("agentVersion")) {
877 agentVersion = _json["agentVersion"];
878 }
879 if (_json.containsKey("description")) {
880 description = _json["description"];
881 }
882 if (_json.containsKey("id")) {
883 id = _json["id"];
884 }
885 if (_json.containsKey("isDisabled")) {
886 isDisabled = _json["isDisabled"];
887 }
888 if (_json.containsKey("isInactive")) {
889 isInactive = _json["isInactive"];
890 }
891 if (_json.containsKey("labels")) {
892 labels = _json["labels"];
893 }
894 if (_json.containsKey("project")) {
895 project = _json["project"];
896 }
897 if (_json.containsKey("sourceContexts")) {
898 sourceContexts = _json["sourceContexts"].map((value) => new SourceContext. fromJson(value)).toList();
899 }
900 if (_json.containsKey("status")) {
901 status = new StatusMessage.fromJson(_json["status"]);
902 }
903 if (_json.containsKey("uniquifier")) {
904 uniquifier = _json["uniquifier"];
905 }
906 }
907
908 core.Map toJson() {
909 var _json = new core.Map();
910 if (agentVersion != null) {
911 _json["agentVersion"] = agentVersion;
912 }
913 if (description != null) {
914 _json["description"] = description;
915 }
916 if (id != null) {
917 _json["id"] = id;
918 }
919 if (isDisabled != null) {
920 _json["isDisabled"] = isDisabled;
921 }
922 if (isInactive != null) {
923 _json["isInactive"] = isInactive;
924 }
925 if (labels != null) {
926 _json["labels"] = labels;
927 }
928 if (project != null) {
929 _json["project"] = project;
930 }
931 if (sourceContexts != null) {
932 _json["sourceContexts"] = sourceContexts.map((value) => (value).toJson()). toList();
933 }
934 if (status != null) {
935 _json["status"] = (status).toJson();
936 }
937 if (uniquifier != null) {
938 _json["uniquifier"] = uniquifier;
939 }
940 return _json;
941 }
942 }
943
944 /**
945 * A generic empty message that you can re-use to avoid defining duplicated
946 * empty messages in your APIs. A typical example is to use it as the request or
947 * the response type of an API method. For instance: service Foo { rpc
948 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
949 * representation for `Empty` is empty JSON object `{}`.
950 */
951 class Empty {
952
953 Empty();
954
955 Empty.fromJson(core.Map _json) {
956 }
957
958 core.Map toJson() {
959 var _json = new core.Map();
960 return _json;
961 }
962 }
963
964 /** Represents a message with parameters. */
965 class FormatMessage {
966 /**
967 * Format template of the message. The "format" uses placeholders "$0", "$1",
968 * etc. to reference parameters. "$$" can be used to denote the '$' character.
969 * Examples: "Failed to load '$0' which helps debug $1 the first time it is
970 * loaded. Again, $0 is very important." "Please pay $$10 to use $0 instead of
971 * $1."
972 */
973 core.String format;
974 /** Optional parameters to be embedded into the message. */
975 core.List<core.String> parameters;
976
977 FormatMessage();
978
979 FormatMessage.fromJson(core.Map _json) {
980 if (_json.containsKey("format")) {
981 format = _json["format"];
982 }
983 if (_json.containsKey("parameters")) {
984 parameters = _json["parameters"];
985 }
986 }
987
988 core.Map toJson() {
989 var _json = new core.Map();
990 if (format != null) {
991 _json["format"] = format;
992 }
993 if (parameters != null) {
994 _json["parameters"] = parameters;
995 }
996 return _json;
997 }
998 }
999
1000 /** A SourceContext referring to a Gerrit project. */
1001 class GerritSourceContext {
1002 /** The name of an alias (branch, tag, etc.). */
1003 core.String aliasName;
1004 /**
1005 * The full project name within the host. Projects may be nested, so
1006 * "project/subproject" is a valid project name. The "repo name" is
1007 * hostURI/project.
1008 */
1009 core.String gerritProject;
1010 /** The URI of a running Gerrit instance. */
1011 core.String hostUri;
1012 /** A revision (commit) ID. */
1013 core.String revisionId;
1014
1015 GerritSourceContext();
1016
1017 GerritSourceContext.fromJson(core.Map _json) {
1018 if (_json.containsKey("aliasName")) {
1019 aliasName = _json["aliasName"];
1020 }
1021 if (_json.containsKey("gerritProject")) {
1022 gerritProject = _json["gerritProject"];
1023 }
1024 if (_json.containsKey("hostUri")) {
1025 hostUri = _json["hostUri"];
1026 }
1027 if (_json.containsKey("revisionId")) {
1028 revisionId = _json["revisionId"];
1029 }
1030 }
1031
1032 core.Map toJson() {
1033 var _json = new core.Map();
1034 if (aliasName != null) {
1035 _json["aliasName"] = aliasName;
1036 }
1037 if (gerritProject != null) {
1038 _json["gerritProject"] = gerritProject;
1039 }
1040 if (hostUri != null) {
1041 _json["hostUri"] = hostUri;
1042 }
1043 if (revisionId != null) {
1044 _json["revisionId"] = revisionId;
1045 }
1046 return _json;
1047 }
1048 }
1049
1050 /** The response of getting breakpoint information. */
1051 class GetBreakpointResponse {
1052 /**
1053 * The complete breakpoint state. The fields 'id' and 'location' are guranteed
1054 * to be set.
1055 */
1056 Breakpoint breakpoint;
1057
1058 GetBreakpointResponse();
1059
1060 GetBreakpointResponse.fromJson(core.Map _json) {
1061 if (_json.containsKey("breakpoint")) {
1062 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]);
1063 }
1064 }
1065
1066 core.Map toJson() {
1067 var _json = new core.Map();
1068 if (breakpoint != null) {
1069 _json["breakpoint"] = (breakpoint).toJson();
1070 }
1071 return _json;
1072 }
1073 }
1074
1075 /** The response of listing active breakpoints. */
1076 class ListActiveBreakpointsResponse {
1077 /**
1078 * List of all active breakpoints. The fields 'id' and 'location' are
1079 * guranteed to be set on each breakpoint.
1080 */
1081 core.List<Breakpoint> breakpoints;
1082 /**
1083 * A wait token that can be used in the next method call to block until the
1084 * list of breakpoints changes.
1085 */
1086 core.String nextWaitToken;
1087
1088 ListActiveBreakpointsResponse();
1089
1090 ListActiveBreakpointsResponse.fromJson(core.Map _json) {
1091 if (_json.containsKey("breakpoints")) {
1092 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson( value)).toList();
1093 }
1094 if (_json.containsKey("nextWaitToken")) {
1095 nextWaitToken = _json["nextWaitToken"];
1096 }
1097 }
1098
1099 core.Map toJson() {
1100 var _json = new core.Map();
1101 if (breakpoints != null) {
1102 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList ();
1103 }
1104 if (nextWaitToken != null) {
1105 _json["nextWaitToken"] = nextWaitToken;
1106 }
1107 return _json;
1108 }
1109 }
1110
1111 /** The response of listing breakpoints. */
1112 class ListBreakpointsResponse {
1113 /**
1114 * List of all breakpoints with complete state. The fields 'id' and 'location'
1115 * are guranteed to be set on each breakpoint.
1116 */
1117 core.List<Breakpoint> breakpoints;
1118 /**
1119 * A wait token that can be used in the next call to ListBreakpoints to block
1120 * until the list of breakpoints has changes.
1121 */
1122 core.String nextWaitToken;
1123
1124 ListBreakpointsResponse();
1125
1126 ListBreakpointsResponse.fromJson(core.Map _json) {
1127 if (_json.containsKey("breakpoints")) {
1128 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson( value)).toList();
1129 }
1130 if (_json.containsKey("nextWaitToken")) {
1131 nextWaitToken = _json["nextWaitToken"];
1132 }
1133 }
1134
1135 core.Map toJson() {
1136 var _json = new core.Map();
1137 if (breakpoints != null) {
1138 _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList ();
1139 }
1140 if (nextWaitToken != null) {
1141 _json["nextWaitToken"] = nextWaitToken;
1142 }
1143 return _json;
1144 }
1145 }
1146
1147 /** The response of listing debuggees. */
1148 class ListDebuggeesResponse {
1149 /**
1150 * The list of debuggees accessible to the calling user. Note that the
1151 * description field is the only human readable field that should be displayed
1152 * to the user. The fields 'debuggee.id' and 'description' are guranteed to be
1153 * set on each debuggee.
1154 */
1155 core.List<Debuggee> debuggees;
1156
1157 ListDebuggeesResponse();
1158
1159 ListDebuggeesResponse.fromJson(core.Map _json) {
1160 if (_json.containsKey("debuggees")) {
1161 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value) ).toList();
1162 }
1163 }
1164
1165 core.Map toJson() {
1166 var _json = new core.Map();
1167 if (debuggees != null) {
1168 _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList();
1169 }
1170 return _json;
1171 }
1172 }
1173
1174 /**
1175 * Selects a repo using a Google Cloud Platform project ID (e.g.
1176 * winged-cargo-31) and a repo name within that project.
1177 */
1178 class ProjectRepoId {
1179 /** The ID of the project. */
1180 core.String projectId;
1181 /** The name of the repo. Leave empty for the default repo. */
1182 core.String repoName;
1183
1184 ProjectRepoId();
1185
1186 ProjectRepoId.fromJson(core.Map _json) {
1187 if (_json.containsKey("projectId")) {
1188 projectId = _json["projectId"];
1189 }
1190 if (_json.containsKey("repoName")) {
1191 repoName = _json["repoName"];
1192 }
1193 }
1194
1195 core.Map toJson() {
1196 var _json = new core.Map();
1197 if (projectId != null) {
1198 _json["projectId"] = projectId;
1199 }
1200 if (repoName != null) {
1201 _json["repoName"] = repoName;
1202 }
1203 return _json;
1204 }
1205 }
1206
1207 /** The request to register a debuggee. */
1208 class RegisterDebuggeeRequest {
1209 /**
1210 * The debuggee information to register. The fields 'project', 'uniquifier',
1211 * 'description' and 'agent_version' of the debuggee must be set.
1212 */
1213 Debuggee debuggee;
1214
1215 RegisterDebuggeeRequest();
1216
1217 RegisterDebuggeeRequest.fromJson(core.Map _json) {
1218 if (_json.containsKey("debuggee")) {
1219 debuggee = new Debuggee.fromJson(_json["debuggee"]);
1220 }
1221 }
1222
1223 core.Map toJson() {
1224 var _json = new core.Map();
1225 if (debuggee != null) {
1226 _json["debuggee"] = (debuggee).toJson();
1227 }
1228 return _json;
1229 }
1230 }
1231
1232 /** The response of registering a debuggee. */
1233 class RegisterDebuggeeResponse {
1234 /**
1235 * The debuggee resource. The field 'id' is guranteed to be set (in addition
1236 * to the echoed fields).
1237 */
1238 Debuggee debuggee;
1239
1240 RegisterDebuggeeResponse();
1241
1242 RegisterDebuggeeResponse.fromJson(core.Map _json) {
1243 if (_json.containsKey("debuggee")) {
1244 debuggee = new Debuggee.fromJson(_json["debuggee"]);
1245 }
1246 }
1247
1248 core.Map toJson() {
1249 var _json = new core.Map();
1250 if (debuggee != null) {
1251 _json["debuggee"] = (debuggee).toJson();
1252 }
1253 return _json;
1254 }
1255 }
1256
1257 /** A unique identifier for a cloud repo. */
1258 class RepoId {
1259 /** A combination of a project ID and a repo name. */
1260 ProjectRepoId projectRepoId;
1261 /** A server-assigned, globally unique identifier. */
1262 core.String uid;
1263
1264 RepoId();
1265
1266 RepoId.fromJson(core.Map _json) {
1267 if (_json.containsKey("projectRepoId")) {
1268 projectRepoId = new ProjectRepoId.fromJson(_json["projectRepoId"]);
1269 }
1270 if (_json.containsKey("uid")) {
1271 uid = _json["uid"];
1272 }
1273 }
1274
1275 core.Map toJson() {
1276 var _json = new core.Map();
1277 if (projectRepoId != null) {
1278 _json["projectRepoId"] = (projectRepoId).toJson();
1279 }
1280 if (uid != null) {
1281 _json["uid"] = uid;
1282 }
1283 return _json;
1284 }
1285 }
1286
1287 /** The response of setting a breakpoint. */
1288 class SetBreakpointResponse {
1289 /**
1290 * The breakpoint resource. The field 'id' is guranteed to be set (in addition
1291 * to the echoed fileds).
1292 */
1293 Breakpoint breakpoint;
1294
1295 SetBreakpointResponse();
1296
1297 SetBreakpointResponse.fromJson(core.Map _json) {
1298 if (_json.containsKey("breakpoint")) {
1299 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]);
1300 }
1301 }
1302
1303 core.Map toJson() {
1304 var _json = new core.Map();
1305 if (breakpoint != null) {
1306 _json["breakpoint"] = (breakpoint).toJson();
1307 }
1308 return _json;
1309 }
1310 }
1311
1312 /**
1313 * A SourceContext is a reference to a tree of files. A SourceContext together
1314 * with a path point to a unique revision of a single file or directory.
1315 */
1316 class SourceContext {
1317 /** A SourceContext referring to a revision in a cloud repo. */
1318 CloudRepoSourceContext cloudRepo;
1319 /** A SourceContext referring to a snapshot in a cloud workspace. */
1320 CloudWorkspaceSourceContext cloudWorkspace;
1321 /** A SourceContext referring to a Gerrit project. */
1322 GerritSourceContext gerrit;
1323
1324 SourceContext();
1325
1326 SourceContext.fromJson(core.Map _json) {
1327 if (_json.containsKey("cloudRepo")) {
1328 cloudRepo = new CloudRepoSourceContext.fromJson(_json["cloudRepo"]);
1329 }
1330 if (_json.containsKey("cloudWorkspace")) {
1331 cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWork space"]);
1332 }
1333 if (_json.containsKey("gerrit")) {
1334 gerrit = new GerritSourceContext.fromJson(_json["gerrit"]);
1335 }
1336 }
1337
1338 core.Map toJson() {
1339 var _json = new core.Map();
1340 if (cloudRepo != null) {
1341 _json["cloudRepo"] = (cloudRepo).toJson();
1342 }
1343 if (cloudWorkspace != null) {
1344 _json["cloudWorkspace"] = (cloudWorkspace).toJson();
1345 }
1346 if (gerrit != null) {
1347 _json["gerrit"] = (gerrit).toJson();
1348 }
1349 return _json;
1350 }
1351 }
1352
1353 /** Represents a location in the source code. */
1354 class SourceLocation {
1355 /** The line inside the file (first line value is '1'). */
1356 core.int line;
1357 /**
1358 * A path to the source file within the source context of the target binary.
1359 */
1360 core.String path;
1361
1362 SourceLocation();
1363
1364 SourceLocation.fromJson(core.Map _json) {
1365 if (_json.containsKey("line")) {
1366 line = _json["line"];
1367 }
1368 if (_json.containsKey("path")) {
1369 path = _json["path"];
1370 }
1371 }
1372
1373 core.Map toJson() {
1374 var _json = new core.Map();
1375 if (line != null) {
1376 _json["line"] = line;
1377 }
1378 if (path != null) {
1379 _json["path"] = path;
1380 }
1381 return _json;
1382 }
1383 }
1384
1385 /** Represents a stack frame context. */
1386 class StackFrame {
1387 /**
1388 * The set of arguments passed to this function Note that this might not be
1389 * populated for all stack frames.
1390 */
1391 core.List<Variable> arguments;
1392 /** The unmangled function name at the call site. */
1393 core.String function;
1394 /**
1395 * The set of local variables at the stack frame location. Note that this
1396 * might not be populated for all stack frames.
1397 */
1398 core.List<Variable> locals;
1399 /** The source location of the call site. */
1400 SourceLocation location;
1401
1402 StackFrame();
1403
1404 StackFrame.fromJson(core.Map _json) {
1405 if (_json.containsKey("arguments")) {
1406 arguments = _json["arguments"].map((value) => new Variable.fromJson(value) ).toList();
1407 }
1408 if (_json.containsKey("function")) {
1409 function = _json["function"];
1410 }
1411 if (_json.containsKey("locals")) {
1412 locals = _json["locals"].map((value) => new Variable.fromJson(value)).toLi st();
1413 }
1414 if (_json.containsKey("location")) {
1415 location = new SourceLocation.fromJson(_json["location"]);
1416 }
1417 }
1418
1419 core.Map toJson() {
1420 var _json = new core.Map();
1421 if (arguments != null) {
1422 _json["arguments"] = arguments.map((value) => (value).toJson()).toList();
1423 }
1424 if (function != null) {
1425 _json["function"] = function;
1426 }
1427 if (locals != null) {
1428 _json["locals"] = locals.map((value) => (value).toJson()).toList();
1429 }
1430 if (location != null) {
1431 _json["location"] = (location).toJson();
1432 }
1433 return _json;
1434 }
1435 }
1436
1437 /**
1438 * Represents a contextual status message. The message can indicate an error or
1439 * informational status, and refer to specific parts of the containing object.
1440 * For example, the Breakpoint.status field can indicate an error referring to
1441 * the BREAKPOINT_SOURCE_LOCATION with the message "Location not found".
1442 */
1443 class StatusMessage {
1444 /** Status message text. */
1445 FormatMessage description;
1446 /** Distinguishes errors from informational messages. */
1447 core.bool isError;
1448 /**
1449 * Reference to which the message applies.
1450 * Possible string values are:
1451 * - "UNSPECIFIED" : A UNSPECIFIED.
1452 * - "BREAKPOINT_SOURCE_LOCATION" : A BREAKPOINT_SOURCE_LOCATION.
1453 * - "BREAKPOINT_CONDITION" : A BREAKPOINT_CONDITION.
1454 * - "BREAKPOINT_EXPRESSION" : A BREAKPOINT_EXPRESSION.
1455 * - "VARIABLE_NAME" : A VARIABLE_NAME.
1456 * - "VARIABLE_VALUE" : A VARIABLE_VALUE.
1457 */
1458 core.String refersTo;
1459
1460 StatusMessage();
1461
1462 StatusMessage.fromJson(core.Map _json) {
1463 if (_json.containsKey("description")) {
1464 description = new FormatMessage.fromJson(_json["description"]);
1465 }
1466 if (_json.containsKey("isError")) {
1467 isError = _json["isError"];
1468 }
1469 if (_json.containsKey("refersTo")) {
1470 refersTo = _json["refersTo"];
1471 }
1472 }
1473
1474 core.Map toJson() {
1475 var _json = new core.Map();
1476 if (description != null) {
1477 _json["description"] = (description).toJson();
1478 }
1479 if (isError != null) {
1480 _json["isError"] = isError;
1481 }
1482 if (refersTo != null) {
1483 _json["refersTo"] = refersTo;
1484 }
1485 return _json;
1486 }
1487 }
1488
1489 /** The request to update an active breakpoint. */
1490 class UpdateActiveBreakpointRequest {
1491 /** The updated breakpoint information. The field 'id' must be set. */
1492 Breakpoint breakpoint;
1493
1494 UpdateActiveBreakpointRequest();
1495
1496 UpdateActiveBreakpointRequest.fromJson(core.Map _json) {
1497 if (_json.containsKey("breakpoint")) {
1498 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]);
1499 }
1500 }
1501
1502 core.Map toJson() {
1503 var _json = new core.Map();
1504 if (breakpoint != null) {
1505 _json["breakpoint"] = (breakpoint).toJson();
1506 }
1507 return _json;
1508 }
1509 }
1510
1511 /**
1512 * The response of updating an active breakpoint. The message is defined to
1513 * allow future extensions.
1514 */
1515 class UpdateActiveBreakpointResponse {
1516
1517 UpdateActiveBreakpointResponse();
1518
1519 UpdateActiveBreakpointResponse.fromJson(core.Map _json) {
1520 }
1521
1522 core.Map toJson() {
1523 var _json = new core.Map();
1524 return _json;
1525 }
1526 }
1527
1528 /**
1529 * Represents a variable or an argument possibly of a compound object type. 1. A
1530 * simple variable such as, int x = 5 is represented as: { name: "x", value: "5"
1531 * } 2. A compound object such as, struct T { int m1; int m2; }; T x = { 3, 7 };
1532 * is represented as: { name: "x", members { name: "m1", value: "3" }, members {
1533 * name: "m2", value: "7" } } 3. A pointer where the pointee was captured such
1534 * as, T x = { 3, 7 }; T* p = &x; is represented as: { name: "p", value:
1535 * "0x00500500", members { name: "m1", value: "3" }, members { name: "m2",
1536 * value: "7" } } 4. A pointer where the pointee was not captured or is
1537 * inaccessible such as, T* p = new T; is represented as: { name: "p", value:
1538 * "0x00400400", members { value: "" } } the value text should decribe the
1539 * reason for the missing value. such as , ,
1540 * . note that a null pointer should not have members. 5. An unnamed value such
1541 * as, int* p = new int(7); is represented as, { name: "p", value: "0x00500500",
1542 * members { value: "7" } } 6. An unnamed pointer where the pointee was not
1543 * captured such as, int* p = new int(7); int** pp = &p; is represented as: {
1544 * name: "pp", value: "0x00500500", members { value: "0x00400400", members {
1545 * value: "" } } } To optimize computation, memory and network traffic,
1546 * variables that repeat in the output multiple times can be stored once in a
1547 * shared variable table and be referenced using the var_index field. The
1548 * variables stored in the shared table are nameless and are essentially a
1549 * partition of the complete variable. To reconstruct the complete variable
1550 * merge the referencing variable with the referenced variable. When using the
1551 * shared variable table, variables can be represented as: T x = { 3, 7 }; T* p
1552 * = &x; T& r = x; are represented as, { name: "x", var_index: 3 } { name: "p",
1553 * value "0x00500500", var_index: 3 } { name: "r", var_index: 3 } with shared
1554 * variable table entry #3: { members { name: "m1", value: "3" }, members {
1555 * name: "m2", value: "7" } } Note that the pointer address is stored with the
1556 * referencing variable and not with the referenced variable, to allow the
1557 * referenced variable to be shared between pointer and references.
1558 */
1559 class Variable {
1560 /** The members contained or pointed to by the variable. */
1561 core.List<Variable> members;
1562 /** The name of the variable, if any. */
1563 core.String name;
1564 /**
1565 * Status associated with the variable. This field will usually stay unset. A
1566 * status of a single variable only applies to that variable or expression.
1567 * The rest of breakpoint data still remains valid. Variables might be
1568 * reported in error state even when breakpoint is not in final state. The
1569 * message may refer to variable name with "refers_to" set to "VARIABLE_NAME".
1570 * Alternatively "refers_to" will be set to "VARIABLE_VALUE". In either case
1571 * variable value and members will be unset. Example of error message applied
1572 * to name: "Invalid expression syntax". Example of information message
1573 * applied to value: "Not captured". Examples of error message applied to
1574 * value: "Malformed string", "Field f not found in class C", "Null pointer
1575 * dereference".
1576 */
1577 StatusMessage status;
1578 /** The simple value of the variable. */
1579 core.String value;
1580 /**
1581 * This is a reference to a variable in the shared variable table. More than
1582 * one variable can reference the same variable in the table. The var_index
1583 * field is an index into variable_table in Breakpoint.
1584 */
1585 core.int varTableIndex;
1586
1587 Variable();
1588
1589 Variable.fromJson(core.Map _json) {
1590 if (_json.containsKey("members")) {
1591 members = _json["members"].map((value) => new Variable.fromJson(value)).to List();
1592 }
1593 if (_json.containsKey("name")) {
1594 name = _json["name"];
1595 }
1596 if (_json.containsKey("status")) {
1597 status = new StatusMessage.fromJson(_json["status"]);
1598 }
1599 if (_json.containsKey("value")) {
1600 value = _json["value"];
1601 }
1602 if (_json.containsKey("varTableIndex")) {
1603 varTableIndex = _json["varTableIndex"];
1604 }
1605 }
1606
1607 core.Map toJson() {
1608 var _json = new core.Map();
1609 if (members != null) {
1610 _json["members"] = members.map((value) => (value).toJson()).toList();
1611 }
1612 if (name != null) {
1613 _json["name"] = name;
1614 }
1615 if (status != null) {
1616 _json["status"] = (status).toJson();
1617 }
1618 if (value != null) {
1619 _json["value"] = value;
1620 }
1621 if (varTableIndex != null) {
1622 _json["varTableIndex"] = varTableIndex;
1623 }
1624 return _json;
1625 }
1626 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698