| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 class ControllerDebuggeesResourceApi { | 49 class ControllerDebuggeesResourceApi { |
| 50 final commons.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
| 51 | 51 |
| 52 ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDeb
uggeesBreakpointsResourceApi(_requester); | 52 ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDeb
uggeesBreakpointsResourceApi(_requester); |
| 53 | 53 |
| 54 ControllerDebuggeesResourceApi(commons.ApiRequester client) : | 54 ControllerDebuggeesResourceApi(commons.ApiRequester client) : |
| 55 _requester = client; | 55 _requester = client; |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * Registers the debuggee with the controller service. All agents attached to | 58 * Registers the debuggee with the controller service. |
| 59 * the same application should call this method with the same request content | 59 * |
| 60 * to get back the same stable `debuggee_id`. Agents should call this method | 60 * All agents attached to the same application should call this method with |
| 61 * again whenever `google.rpc.Code.NOT_FOUND` is returned from any controller | 61 * the same request content to get back the same stable `debuggee_id`. Agents |
| 62 * method. This allows the controller service to disable the agent or recover | 62 * should call this method again whenever `google.rpc.Code.NOT_FOUND` is |
| 63 * from any data loss. If the debuggee is disabled by the server, the response | 63 * returned from any controller method. |
| 64 * will have `is_disabled` set to `true`. | 64 * |
| 65 * This allows the controller service to disable the agent or recover from any |
| 66 * data loss. If the debuggee is disabled by the server, the response will |
| 67 * have `is_disabled` set to `true`. |
| 65 * | 68 * |
| 66 * [request] - The metadata request object. | 69 * [request] - The metadata request object. |
| 67 * | 70 * |
| 68 * Request parameters: | 71 * Request parameters: |
| 69 * | 72 * |
| 70 * Completes with a [RegisterDebuggeeResponse]. | 73 * Completes with a [RegisterDebuggeeResponse]. |
| 71 * | 74 * |
| 72 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 75 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 73 * error. | 76 * error. |
| 74 * | 77 * |
| (...skipping 27 matching lines...) Expand all Loading... |
| 102 } | 105 } |
| 103 | 106 |
| 104 | 107 |
| 105 class ControllerDebuggeesBreakpointsResourceApi { | 108 class ControllerDebuggeesBreakpointsResourceApi { |
| 106 final commons.ApiRequester _requester; | 109 final commons.ApiRequester _requester; |
| 107 | 110 |
| 108 ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) : | 111 ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) : |
| 109 _requester = client; | 112 _requester = client; |
| 110 | 113 |
| 111 /** | 114 /** |
| 112 * Returns the list of all active breakpoints for the debuggee. The breakpoint | 115 * Returns the list of all active breakpoints for the debuggee. |
| 113 * specification (location, condition, and expression fields) is semantically | 116 * |
| 114 * immutable, although the field values may change. For example, an agent may | 117 * The breakpoint specification (location, condition, and expression |
| 115 * update the location line number to reflect the actual line where the | 118 * fields) is semantically immutable, although the field values may |
| 116 * breakpoint was set, but this doesn't change the breakpoint semantics. This | 119 * change. For example, an agent may update the location line number |
| 117 * means that an agent does not need to check if a breakpoint has changed when | 120 * to reflect the actual line where the breakpoint was set, but this |
| 118 * it encounters the same breakpoint on a successive call. Moreover, an agent | 121 * doesn't change the breakpoint semantics. |
| 119 * should remember the breakpoints that are completed until the controller | 122 * |
| 120 * removes them from the active list to avoid setting those breakpoints again. | 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. |
| 125 * Moreover, an agent should remember the breakpoints that are completed |
| 126 * until the controller removes them from the active list to avoid |
| 127 * setting those breakpoints again. |
| 121 * | 128 * |
| 122 * Request parameters: | 129 * Request parameters: |
| 123 * | 130 * |
| 124 * [debuggeeId] - Identifies the debuggee. | 131 * [debuggeeId] - Identifies the debuggee. |
| 125 * | 132 * |
| 133 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status |
| 134 * and sets the |
| 135 * `wait_expired` response field to `true` when the server-selected timeout |
| 136 * has expired (recommended). |
| 137 * |
| 138 * If set to `false`, returns `google.rpc.Code.ABORTED` status when the |
| 139 * server-selected timeout has expired (deprecated). |
| 140 * |
| 126 * [waitToken] - A wait token that, if specified, blocks the method call until | 141 * [waitToken] - A wait token that, if specified, blocks the method call until |
| 127 * the list of active breakpoints has changed, or a server selected timeout | 142 * the list |
| 128 * has expired. The value should be set from the last returned response. | 143 * of active breakpoints has changed, or a server selected timeout has |
| 129 * | 144 * expired. The value should be set from the last returned response. |
| 130 * [successOnTimeout] - If set to `true`, returns `google.rpc.Code.OK` status | |
| 131 * and sets the `wait_expired` response field to `true` when the | |
| 132 * server-selected timeout has expired (recommended). If set to `false`, | |
| 133 * returns `google.rpc.Code.ABORTED` status when the server-selected timeout | |
| 134 * has expired (deprecated). | |
| 135 * | 145 * |
| 136 * Completes with a [ListActiveBreakpointsResponse]. | 146 * Completes with a [ListActiveBreakpointsResponse]. |
| 137 * | 147 * |
| 138 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 139 * error. | 149 * error. |
| 140 * | 150 * |
| 141 * 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, |
| 142 * this method will complete with the same error. | 152 * this method will complete with the same error. |
| 143 */ | 153 */ |
| 144 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.String waitToken, core.bool successOnTimeout}) { | 154 async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core
.bool successOnTimeout, core.String waitToken}) { |
| 145 var _url = null; | 155 var _url = null; |
| 146 var _queryParams = new core.Map(); | 156 var _queryParams = new core.Map(); |
| 147 var _uploadMedia = null; | 157 var _uploadMedia = null; |
| 148 var _uploadOptions = null; | 158 var _uploadOptions = null; |
| 149 var _downloadOptions = commons.DownloadOptions.Metadata; | 159 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 150 var _body = null; | 160 var _body = null; |
| 151 | 161 |
| 152 if (debuggeeId == null) { | 162 if (debuggeeId == null) { |
| 153 throw new core.ArgumentError("Parameter debuggeeId is required."); | 163 throw new core.ArgumentError("Parameter debuggeeId is required."); |
| 154 } | 164 } |
| 165 if (successOnTimeout != null) { |
| 166 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; |
| 167 } |
| 155 if (waitToken != null) { | 168 if (waitToken != null) { |
| 156 _queryParams["waitToken"] = [waitToken]; | 169 _queryParams["waitToken"] = [waitToken]; |
| 157 } | 170 } |
| 158 if (successOnTimeout != null) { | |
| 159 _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; | |
| 160 } | |
| 161 | 171 |
| 162 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; | 172 _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggee
Id') + '/breakpoints'; |
| 163 | 173 |
| 164 var _response = _requester.request(_url, | 174 var _response = _requester.request(_url, |
| 165 "GET", | 175 "GET", |
| 166 body: _body, | 176 body: _body, |
| 167 queryParams: _queryParams, | 177 queryParams: _queryParams, |
| 168 uploadOptions: _uploadOptions, | 178 uploadOptions: _uploadOptions, |
| 169 uploadMedia: _uploadMedia, | 179 uploadMedia: _uploadMedia, |
| 170 downloadOptions: _downloadOptions); | 180 downloadOptions: _downloadOptions); |
| 171 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d
ata)); | 181 return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(d
ata)); |
| 172 } | 182 } |
| 173 | 183 |
| 174 /** | 184 /** |
| 175 * Updates the breakpoint state or mutable fields. The entire Breakpoint | 185 * Updates the breakpoint state or mutable fields. |
| 176 * message must be sent back to the controller service. Updates to active | 186 * The entire Breakpoint message must be sent back to the controller |
| 177 * breakpoint fields are only allowed if the new value does not change the | 187 * service. |
| 178 * breakpoint specification. Updates to the `location`, `condition` and | 188 * |
| 179 * `expression` fields should not alter the breakpoint semantics. These may | 189 * Updates to active breakpoint fields are only allowed if the new value |
| 180 * only make changes such as canonicalizing a value or snapping the location | 190 * does not change the breakpoint specification. Updates to the `location`, |
| 181 * to the correct line of code. | 191 * `condition` and `expression` fields should not alter the breakpoint |
| 192 * semantics. These may only make changes such as canonicalizing a value |
| 193 * or snapping the location to the correct line of code. |
| 182 * | 194 * |
| 183 * [request] - The metadata request object. | 195 * [request] - The metadata request object. |
| 184 * | 196 * |
| 185 * Request parameters: | 197 * Request parameters: |
| 186 * | 198 * |
| 187 * [debuggeeId] - Identifies the debuggee being debugged. | 199 * [debuggeeId] - Identifies the debuggee being debugged. |
| 188 * | 200 * |
| 189 * [id] - Breakpoint identifier, unique in the scope of the debuggee. | 201 * [id] - Breakpoint identifier, unique in the scope of the debuggee. |
| 190 * | 202 * |
| 191 * Completes with a [UpdateActiveBreakpointResponse]. | 203 * Completes with a [UpdateActiveBreakpointResponse]. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); | 257 DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebugge
esBreakpointsResourceApi(_requester); |
| 246 | 258 |
| 247 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : | 259 DebuggerDebuggeesResourceApi(commons.ApiRequester client) : |
| 248 _requester = client; | 260 _requester = client; |
| 249 | 261 |
| 250 /** | 262 /** |
| 251 * Lists all the debuggees that the user can set breakpoints to. | 263 * Lists all the debuggees that the user can set breakpoints to. |
| 252 * | 264 * |
| 253 * Request parameters: | 265 * Request parameters: |
| 254 * | 266 * |
| 267 * [includeInactive] - When set to `true`, the result includes all debuggees. |
| 268 * Otherwise, the |
| 269 * result includes only debuggees that are active. |
| 270 * |
| 255 * [project] - Project number of a Google Cloud project whose debuggees to | 271 * [project] - Project number of a Google Cloud project whose debuggees to |
| 256 * list. | 272 * list. |
| 257 * | 273 * |
| 258 * [includeInactive] - When set to `true`, the result includes all debuggees. | 274 * [clientVersion] - The client version making the call. |
| 259 * Otherwise, the result includes only debuggees that are active. | 275 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 260 * | |
| 261 * [clientVersion] - The client version making the call. Following: | |
| 262 * `domain/type/version` (e.g., `google.com/intellij/v1`). | |
| 263 * | 276 * |
| 264 * Completes with a [ListDebuggeesResponse]. | 277 * Completes with a [ListDebuggeesResponse]. |
| 265 * | 278 * |
| 266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 267 * error. | 280 * error. |
| 268 * | 281 * |
| 269 * 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, |
| 270 * this method will complete with the same error. | 283 * this method will complete with the same error. |
| 271 */ | 284 */ |
| 272 async.Future<ListDebuggeesResponse> list({core.String project, core.bool inclu
deInactive, core.String clientVersion}) { | 285 async.Future<ListDebuggeesResponse> list({core.bool includeInactive, core.Stri
ng project, core.String clientVersion}) { |
| 273 var _url = null; | 286 var _url = null; |
| 274 var _queryParams = new core.Map(); | 287 var _queryParams = new core.Map(); |
| 275 var _uploadMedia = null; | 288 var _uploadMedia = null; |
| 276 var _uploadOptions = null; | 289 var _uploadOptions = null; |
| 277 var _downloadOptions = commons.DownloadOptions.Metadata; | 290 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 278 var _body = null; | 291 var _body = null; |
| 279 | 292 |
| 293 if (includeInactive != null) { |
| 294 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 295 } |
| 280 if (project != null) { | 296 if (project != null) { |
| 281 _queryParams["project"] = [project]; | 297 _queryParams["project"] = [project]; |
| 282 } | 298 } |
| 283 if (includeInactive != null) { | |
| 284 _queryParams["includeInactive"] = ["${includeInactive}"]; | |
| 285 } | |
| 286 if (clientVersion != null) { | 299 if (clientVersion != null) { |
| 287 _queryParams["clientVersion"] = [clientVersion]; | 300 _queryParams["clientVersion"] = [clientVersion]; |
| 288 } | 301 } |
| 289 | 302 |
| 290 _url = 'v2/debugger/debuggees'; | 303 _url = 'v2/debugger/debuggees'; |
| 291 | 304 |
| 292 var _response = _requester.request(_url, | 305 var _response = _requester.request(_url, |
| 293 "GET", | 306 "GET", |
| 294 body: _body, | 307 body: _body, |
| 295 queryParams: _queryParams, | 308 queryParams: _queryParams, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 310 | 323 |
| 311 /** | 324 /** |
| 312 * Deletes the breakpoint from the debuggee. | 325 * Deletes the breakpoint from the debuggee. |
| 313 * | 326 * |
| 314 * Request parameters: | 327 * Request parameters: |
| 315 * | 328 * |
| 316 * [debuggeeId] - ID of the debuggee whose breakpoint to delete. | 329 * [debuggeeId] - ID of the debuggee whose breakpoint to delete. |
| 317 * | 330 * |
| 318 * [breakpointId] - ID of the breakpoint to delete. | 331 * [breakpointId] - ID of the breakpoint to delete. |
| 319 * | 332 * |
| 320 * [clientVersion] - The client version making the call. Following: | 333 * [clientVersion] - The client version making the call. |
| 321 * `domain/type/version` (e.g., `google.com/intellij/v1`). | 334 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 322 * | 335 * |
| 323 * Completes with a [Empty]. | 336 * Completes with a [Empty]. |
| 324 * | 337 * |
| 325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 338 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 326 * error. | 339 * error. |
| 327 * | 340 * |
| 328 * If the used [http.Client] completes with an error when making a REST call, | 341 * If the used [http.Client] completes with an error when making a REST call, |
| 329 * this method will complete with the same error. | 342 * this method will complete with the same error. |
| 330 */ | 343 */ |
| 331 async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId, {
core.String clientVersion}) { | 344 async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId, {
core.String clientVersion}) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 360 | 373 |
| 361 /** | 374 /** |
| 362 * Gets breakpoint information. | 375 * Gets breakpoint information. |
| 363 * | 376 * |
| 364 * Request parameters: | 377 * Request parameters: |
| 365 * | 378 * |
| 366 * [debuggeeId] - ID of the debuggee whose breakpoint to get. | 379 * [debuggeeId] - ID of the debuggee whose breakpoint to get. |
| 367 * | 380 * |
| 368 * [breakpointId] - ID of the breakpoint to get. | 381 * [breakpointId] - ID of the breakpoint to get. |
| 369 * | 382 * |
| 370 * [clientVersion] - The client version making the call. Following: | 383 * [clientVersion] - The client version making the call. |
| 371 * `domain/type/version` (e.g., `google.com/intellij/v1`). | 384 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 372 * | 385 * |
| 373 * Completes with a [GetBreakpointResponse]. | 386 * Completes with a [GetBreakpointResponse]. |
| 374 * | 387 * |
| 375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 388 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 376 * error. | 389 * error. |
| 377 * | 390 * |
| 378 * If the used [http.Client] completes with an error when making a REST call, | 391 * If the used [http.Client] completes with an error when making a REST call, |
| 379 * this method will complete with the same error. | 392 * this method will complete with the same error. |
| 380 */ | 393 */ |
| 381 async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String br
eakpointId, {core.String clientVersion}) { | 394 async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String br
eakpointId, {core.String clientVersion}) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 408 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); | 421 return _response.then((data) => new GetBreakpointResponse.fromJson(data)); |
| 409 } | 422 } |
| 410 | 423 |
| 411 /** | 424 /** |
| 412 * Lists all breakpoints for the debuggee. | 425 * Lists all breakpoints for the debuggee. |
| 413 * | 426 * |
| 414 * Request parameters: | 427 * Request parameters: |
| 415 * | 428 * |
| 416 * [debuggeeId] - ID of the debuggee whose breakpoints to list. | 429 * [debuggeeId] - ID of the debuggee whose breakpoints to list. |
| 417 * | 430 * |
| 431 * [clientVersion] - The client version making the call. |
| 432 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 433 * |
| 418 * [includeAllUsers] - When set to `true`, the response includes the list of | 434 * [includeAllUsers] - When set to `true`, the response includes the list of |
| 419 * breakpoints set by any user. Otherwise, it includes only breakpoints set by | 435 * breakpoints set by |
| 420 * the caller. | 436 * any user. Otherwise, it includes only breakpoints set by the caller. |
| 421 * | 437 * |
| 422 * [includeInactive] - When set to `true`, the response includes active and | 438 * [stripResults] - This field is deprecated. The following fields are always |
| 423 * inactive breakpoints. Otherwise, it includes only active breakpoints. | 439 * stripped out of |
| 440 * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. |
| 424 * | 441 * |
| 425 * [action_value] - Only breakpoints with the specified action will pass the | 442 * [action_value] - Only breakpoints with the specified action will pass the |
| 426 * filter. | 443 * filter. |
| 427 * Possible string values are: | 444 * Possible string values are: |
| 428 * - "CAPTURE" : A CAPTURE. | 445 * - "CAPTURE" : A CAPTURE. |
| 429 * - "LOG" : A LOG. | 446 * - "LOG" : A LOG. |
| 430 * | 447 * |
| 431 * [stripResults] - When set to `true`, the response breakpoints are stripped | 448 * [includeInactive] - When set to `true`, the response includes active and |
| 432 * of the results fields: `stack_frames`, `evaluated_expressions` and | 449 * inactive |
| 433 * `variable_table`. | 450 * breakpoints. Otherwise, it includes only active breakpoints. |
| 434 * | 451 * |
| 435 * [waitToken] - A wait token that, if specified, blocks the call until the | 452 * [waitToken] - A wait token that, if specified, blocks the call until the |
| 436 * breakpoints list has changed, or a server selected timeout has expired. The | 453 * breakpoints |
| 437 * value should be set from the last response. The error code | 454 * list has changed, or a server selected timeout has expired. The value |
| 438 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should | 455 * should be set from the last response. The error code |
| 439 * be called again with the same `wait_token`. | 456 * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which |
| 440 * | 457 * should be called again with the same `wait_token`. |
| 441 * [clientVersion] - The client version making the call. Following: | |
| 442 * `domain/type/version` (e.g., `google.com/intellij/v1`). | |
| 443 * | 458 * |
| 444 * Completes with a [ListBreakpointsResponse]. | 459 * Completes with a [ListBreakpointsResponse]. |
| 445 * | 460 * |
| 446 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 447 * error. | 462 * error. |
| 448 * | 463 * |
| 449 * 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, |
| 450 * this method will complete with the same error. | 465 * this method will complete with the same error. |
| 451 */ | 466 */ |
| 452 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.bool
includeAllUsers, core.bool includeInactive, core.String action_value, core.bool
stripResults, core.String waitToken, core.String clientVersion}) { | 467 async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.Strin
g clientVersion, core.bool includeAllUsers, core.bool stripResults, core.String
action_value, core.bool includeInactive, core.String waitToken}) { |
| 453 var _url = null; | 468 var _url = null; |
| 454 var _queryParams = new core.Map(); | 469 var _queryParams = new core.Map(); |
| 455 var _uploadMedia = null; | 470 var _uploadMedia = null; |
| 456 var _uploadOptions = null; | 471 var _uploadOptions = null; |
| 457 var _downloadOptions = commons.DownloadOptions.Metadata; | 472 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 458 var _body = null; | 473 var _body = null; |
| 459 | 474 |
| 460 if (debuggeeId == null) { | 475 if (debuggeeId == null) { |
| 461 throw new core.ArgumentError("Parameter debuggeeId is required."); | 476 throw new core.ArgumentError("Parameter debuggeeId is required."); |
| 462 } | 477 } |
| 478 if (clientVersion != null) { |
| 479 _queryParams["clientVersion"] = [clientVersion]; |
| 480 } |
| 463 if (includeAllUsers != null) { | 481 if (includeAllUsers != null) { |
| 464 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; | 482 _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; |
| 465 } | 483 } |
| 466 if (includeInactive != null) { | 484 if (stripResults != null) { |
| 467 _queryParams["includeInactive"] = ["${includeInactive}"]; | 485 _queryParams["stripResults"] = ["${stripResults}"]; |
| 468 } | 486 } |
| 469 if (action_value != null) { | 487 if (action_value != null) { |
| 470 _queryParams["action.value"] = [action_value]; | 488 _queryParams["action.value"] = [action_value]; |
| 471 } | 489 } |
| 472 if (stripResults != null) { | 490 if (includeInactive != null) { |
| 473 _queryParams["stripResults"] = ["${stripResults}"]; | 491 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 474 } | 492 } |
| 475 if (waitToken != null) { | 493 if (waitToken != null) { |
| 476 _queryParams["waitToken"] = [waitToken]; | 494 _queryParams["waitToken"] = [waitToken]; |
| 477 } | 495 } |
| 478 if (clientVersion != null) { | |
| 479 _queryParams["clientVersion"] = [clientVersion]; | |
| 480 } | |
| 481 | 496 |
| 482 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; | 497 _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId
') + '/breakpoints'; |
| 483 | 498 |
| 484 var _response = _requester.request(_url, | 499 var _response = _requester.request(_url, |
| 485 "GET", | 500 "GET", |
| 486 body: _body, | 501 body: _body, |
| 487 queryParams: _queryParams, | 502 queryParams: _queryParams, |
| 488 uploadOptions: _uploadOptions, | 503 uploadOptions: _uploadOptions, |
| 489 uploadMedia: _uploadMedia, | 504 uploadMedia: _uploadMedia, |
| 490 downloadOptions: _downloadOptions); | 505 downloadOptions: _downloadOptions); |
| 491 return _response.then((data) => new ListBreakpointsResponse.fromJson(data)); | 506 return _response.then((data) => new ListBreakpointsResponse.fromJson(data)); |
| 492 } | 507 } |
| 493 | 508 |
| 494 /** | 509 /** |
| 495 * Sets the breakpoint to the debuggee. | 510 * Sets the breakpoint to the debuggee. |
| 496 * | 511 * |
| 497 * [request] - The metadata request object. | 512 * [request] - The metadata request object. |
| 498 * | 513 * |
| 499 * Request parameters: | 514 * Request parameters: |
| 500 * | 515 * |
| 501 * [debuggeeId] - ID of the debuggee where the breakpoint is to be set. | 516 * [debuggeeId] - ID of the debuggee where the breakpoint is to be set. |
| 502 * | 517 * |
| 503 * [clientVersion] - The client version making the call. Following: | 518 * [clientVersion] - The client version making the call. |
| 504 * `domain/type/version` (e.g., `google.com/intellij/v1`). | 519 * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). |
| 505 * | 520 * |
| 506 * Completes with a [SetBreakpointResponse]. | 521 * Completes with a [SetBreakpointResponse]. |
| 507 * | 522 * |
| 508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 509 * error. | 524 * error. |
| 510 * | 525 * |
| 511 * If the used [http.Client] completes with an error when making a REST call, | 526 * If the used [http.Client] completes with an error when making a REST call, |
| 512 * this method will complete with the same error. | 527 * this method will complete with the same error. |
| 513 */ | 528 */ |
| 514 async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debugg
eeId, {core.String clientVersion}) { | 529 async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debugg
eeId, {core.String clientVersion}) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 543 | 558 |
| 544 } | 559 } |
| 545 | 560 |
| 546 | 561 |
| 547 | 562 |
| 548 /** An alias to a repo revision. */ | 563 /** An alias to a repo revision. */ |
| 549 class AliasContext { | 564 class AliasContext { |
| 550 /** | 565 /** |
| 551 * The alias kind. | 566 * The alias kind. |
| 552 * Possible string values are: | 567 * Possible string values are: |
| 553 * - "ANY" : A ANY. | 568 * - "ANY" : Do not use. |
| 554 * - "FIXED" : A FIXED. | 569 * - "FIXED" : Git tag |
| 555 * - "MOVABLE" : A MOVABLE. | 570 * - "MOVABLE" : Git branch |
| 556 * - "OTHER" : A OTHER. | 571 * - "OTHER" : OTHER is used to specify non-standard aliases, those not of the |
| 572 * kinds |
| 573 * above. For example, if a Git repo has a ref named "refs/foo/bar", it |
| 574 * is considered to be of kind OTHER. |
| 557 */ | 575 */ |
| 558 core.String kind; | 576 core.String kind; |
| 559 /** The alias name. */ | 577 /** The alias name. */ |
| 560 core.String name; | 578 core.String name; |
| 561 | 579 |
| 562 AliasContext(); | 580 AliasContext(); |
| 563 | 581 |
| 564 AliasContext.fromJson(core.Map _json) { | 582 AliasContext.fromJson(core.Map _json) { |
| 565 if (_json.containsKey("kind")) { | 583 if (_json.containsKey("kind")) { |
| 566 kind = _json["kind"]; | 584 kind = _json["kind"]; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 578 if (name != null) { | 596 if (name != null) { |
| 579 _json["name"] = name; | 597 _json["name"] = name; |
| 580 } | 598 } |
| 581 return _json; | 599 return _json; |
| 582 } | 600 } |
| 583 } | 601 } |
| 584 | 602 |
| 585 /** Represents the breakpoint specification, status and results. */ | 603 /** Represents the breakpoint specification, status and results. */ |
| 586 class Breakpoint { | 604 class Breakpoint { |
| 587 /** | 605 /** |
| 588 * Action that the agent should perform when the code at the breakpoint | 606 * Action that the agent should perform when the code at the |
| 589 * location is hit. | 607 * breakpoint location is hit. |
| 590 * Possible string values are: | 608 * Possible string values are: |
| 591 * - "CAPTURE" : A CAPTURE. | 609 * - "CAPTURE" : Capture stack frame and variables and update the breakpoint. |
| 592 * - "LOG" : A LOG. | 610 * The data is only captured once. After that the breakpoint is set |
| 611 * in a final state. |
| 612 * - "LOG" : Log each breakpoint hit. The breakpoint remains active until |
| 613 * deleted or expired. |
| 593 */ | 614 */ |
| 594 core.String action; | 615 core.String action; |
| 595 /** | 616 /** |
| 596 * Condition that triggers the breakpoint. The condition is a compound boolean | 617 * Condition that triggers the breakpoint. |
| 597 * expression composed using expressions in a programming language at the | 618 * The condition is a compound boolean expression composed using expressions |
| 598 * source location. | 619 * in a programming language at the source location. |
| 599 */ | 620 */ |
| 600 core.String condition; | 621 core.String condition; |
| 601 /** Time this breakpoint was created by the server in seconds resolution. */ | 622 /** Time this breakpoint was created by the server in seconds resolution. */ |
| 602 core.String createTime; | 623 core.String createTime; |
| 603 /** | 624 /** |
| 604 * Values of evaluated expressions at breakpoint time. The evaluated | 625 * Values of evaluated expressions at breakpoint time. |
| 605 * expressions appear in exactly the same order they are listed in the | 626 * The evaluated expressions appear in exactly the same order they |
| 606 * `expressions` field. The `name` field holds the original expression text, | 627 * are listed in the `expressions` field. |
| 607 * the `value` or `members` field holds the result of the evaluated | 628 * The `name` field holds the original expression text, the `value` or |
| 608 * expression. If the expression cannot be evaluated, the `status` inside the | 629 * `members` field holds the result of the evaluated expression. |
| 609 * `Variable` will indicate an error and contain the error text. | 630 * If the expression cannot be evaluated, the `status` inside the `Variable` |
| 631 * will indicate an error and contain the error text. |
| 610 */ | 632 */ |
| 611 core.List<Variable> evaluatedExpressions; | 633 core.List<Variable> evaluatedExpressions; |
| 612 /** | 634 /** |
| 613 * List of read-only expressions to evaluate at the breakpoint location. The | 635 * List of read-only expressions to evaluate at the breakpoint location. |
| 614 * expressions are composed using expressions in the programming language at | 636 * The expressions are composed using expressions in the programming language |
| 615 * the source location. If the breakpoint action is `LOG`, the evaluated | 637 * at the source location. If the breakpoint action is `LOG`, the evaluated |
| 616 * expressions are included in log statements. | 638 * expressions are included in log statements. |
| 617 */ | 639 */ |
| 618 core.List<core.String> expressions; | 640 core.List<core.String> expressions; |
| 619 /** | 641 /** |
| 620 * Time this breakpoint was finalized as seen by the server in seconds | 642 * Time this breakpoint was finalized as seen by the server in seconds |
| 621 * resolution. | 643 * resolution. |
| 622 */ | 644 */ |
| 623 core.String finalTime; | 645 core.String finalTime; |
| 624 /** Breakpoint identifier, unique in the scope of the debuggee. */ | 646 /** Breakpoint identifier, unique in the scope of the debuggee. */ |
| 625 core.String id; | 647 core.String id; |
| 626 /** | 648 /** |
| 627 * When true, indicates that this is a final result and the breakpoint state | 649 * When true, indicates that this is a final result and the |
| 628 * will not change from here on. | 650 * breakpoint state will not change from here on. |
| 629 */ | 651 */ |
| 630 core.bool isFinalState; | 652 core.bool isFinalState; |
| 631 /** | 653 /** |
| 632 * A set of custom breakpoint properties, populated by the agent, to be | 654 * A set of custom breakpoint properties, populated by the agent, to be |
| 633 * displayed to the user. | 655 * displayed to the user. |
| 634 */ | 656 */ |
| 635 core.Map<core.String, core.String> labels; | 657 core.Map<core.String, core.String> labels; |
| 636 /** Breakpoint source location. */ | 658 /** Breakpoint source location. */ |
| 637 SourceLocation location; | 659 SourceLocation location; |
| 638 /** | 660 /** |
| 639 * Indicates the severity of the log. Only relevant when action is `LOG`. | 661 * Indicates the severity of the log. Only relevant when action is `LOG`. |
| 640 * Possible string values are: | 662 * Possible string values are: |
| 641 * - "INFO" : A INFO. | 663 * - "INFO" : Information log message. |
| 642 * - "WARNING" : A WARNING. | 664 * - "WARNING" : Warning log message. |
| 643 * - "ERROR" : A ERROR. | 665 * - "ERROR" : Error log message. |
| 644 */ | 666 */ |
| 645 core.String logLevel; | 667 core.String logLevel; |
| 646 /** | 668 /** |
| 647 * Only relevant when action is `LOG`. Defines the message to log when the | 669 * Only relevant when action is `LOG`. Defines the message to log when |
| 648 * breakpoint hits. The message may include parameter placeholders `$0`, `$1`, | 670 * the breakpoint hits. The message may include parameter placeholders `$0`, |
| 649 * etc. These placeholders are replaced with the evaluated value of the | 671 * `$1`, etc. These placeholders are replaced with the evaluated value |
| 650 * appropriate expression. Expressions not referenced in `log_message_format` | 672 * of the appropriate expression. Expressions not referenced in |
| 651 * are not logged. Example: `Message received, id = $0, count = $1` with | 673 * `log_message_format` are not logged. |
| 674 * |
| 675 * Example: `Message received, id = $0, count = $1` with |
| 652 * `expressions` = `[ message.id, message.count ]`. | 676 * `expressions` = `[ message.id, message.count ]`. |
| 653 */ | 677 */ |
| 654 core.String logMessageFormat; | 678 core.String logMessageFormat; |
| 655 /** The stack at breakpoint time. */ | 679 /** The stack at breakpoint time. */ |
| 656 core.List<StackFrame> stackFrames; | 680 core.List<StackFrame> stackFrames; |
| 657 /** | 681 /** |
| 658 * Breakpoint status. The status includes an error flag and a human readable | 682 * Breakpoint status. |
| 659 * message. This field is usually unset. The message can be either | 683 * |
| 684 * The status includes an error flag and a human readable message. |
| 685 * This field is usually unset. The message can be either |
| 660 * informational or an error message. Regardless, clients should always | 686 * informational or an error message. Regardless, clients should always |
| 661 * display the text message back to the user. Error status indicates complete | 687 * display the text message back to the user. |
| 662 * failure of the breakpoint. Example (non-final state): `Still loading | 688 * |
| 663 * symbols...` Examples (final state): * `Invalid line number` referring to | 689 * Error status indicates complete failure of the breakpoint. |
| 664 * location * `Field f not found in class C` referring to condition | 690 * |
| 691 * Example (non-final state): `Still loading symbols...` |
| 692 * |
| 693 * Examples (final state): |
| 694 * |
| 695 * * `Invalid line number` referring to location |
| 696 * * `Field f not found in class C` referring to condition |
| 665 */ | 697 */ |
| 666 StatusMessage status; | 698 StatusMessage status; |
| 667 /** E-mail address of the user that created this breakpoint */ | 699 /** E-mail address of the user that created this breakpoint */ |
| 668 core.String userEmail; | 700 core.String userEmail; |
| 669 /** | 701 /** |
| 670 * The `variable_table` exists to aid with computation, memory and network | 702 * The `variable_table` exists to aid with computation, memory and network |
| 671 * traffic optimization. It enables storing a variable once and reference it | 703 * traffic optimization. It enables storing a variable once and reference |
| 672 * from multiple variables, including variables stored in the `variable_table` | 704 * it from multiple variables, including variables stored in the |
| 673 * itself. For example, the same `this` object, which may appear at many | 705 * `variable_table` itself. |
| 674 * levels of the stack, can have all of its data stored once in this table. | 706 * For example, the same `this` object, which may appear at many levels of |
| 675 * The stack frame variables then would hold only a reference to it. The | 707 * the stack, can have all of its data stored once in this table. The |
| 676 * variable `var_table_index` field is an index into this repeated field. The | 708 * stack frame variables then would hold only a reference to it. |
| 677 * stored objects are nameless and get their name from the referencing | 709 * |
| 678 * variable. The effective variable is a merge of the referencing variable and | 710 * The variable `var_table_index` field is an index into this repeated field. |
| 679 * the referenced variable. | 711 * The stored objects are nameless and get their name from the referencing |
| 712 * variable. The effective variable is a merge of the referencing variable |
| 713 * and the referenced variable. |
| 680 */ | 714 */ |
| 681 core.List<Variable> variableTable; | 715 core.List<Variable> variableTable; |
| 682 | 716 |
| 683 Breakpoint(); | 717 Breakpoint(); |
| 684 | 718 |
| 685 Breakpoint.fromJson(core.Map _json) { | 719 Breakpoint.fromJson(core.Map _json) { |
| 686 if (_json.containsKey("action")) { | 720 if (_json.containsKey("action")) { |
| 687 action = _json["action"]; | 721 action = _json["action"]; |
| 688 } | 722 } |
| 689 if (_json.containsKey("condition")) { | 723 if (_json.containsKey("condition")) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 _json["userEmail"] = userEmail; | 815 _json["userEmail"] = userEmail; |
| 782 } | 816 } |
| 783 if (variableTable != null) { | 817 if (variableTable != null) { |
| 784 _json["variableTable"] = variableTable.map((value) => (value).toJson()).to
List(); | 818 _json["variableTable"] = variableTable.map((value) => (value).toJson()).to
List(); |
| 785 } | 819 } |
| 786 return _json; | 820 return _json; |
| 787 } | 821 } |
| 788 } | 822 } |
| 789 | 823 |
| 790 /** | 824 /** |
| 791 * A CloudRepoSourceContext denotes a particular revision in a cloud repo (a | 825 * A CloudRepoSourceContext denotes a particular revision in a cloud |
| 792 * repo hosted by the Google Cloud Platform). | 826 * repo (a repo hosted by the Google Cloud Platform). |
| 793 */ | 827 */ |
| 794 class CloudRepoSourceContext { | 828 class CloudRepoSourceContext { |
| 795 /** An alias, which may be a branch or tag. */ | 829 /** An alias, which may be a branch or tag. */ |
| 796 AliasContext aliasContext; | 830 AliasContext aliasContext; |
| 797 /** The name of an alias (branch, tag, etc.). */ | 831 /** The name of an alias (branch, tag, etc.). */ |
| 798 core.String aliasName; | 832 core.String aliasName; |
| 799 /** The ID of the repo. */ | 833 /** The ID of the repo. */ |
| 800 RepoId repoId; | 834 RepoId repoId; |
| 801 /** A revision ID. */ | 835 /** A revision ID. */ |
| 802 core.String revisionId; | 836 core.String revisionId; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 830 _json["repoId"] = (repoId).toJson(); | 864 _json["repoId"] = (repoId).toJson(); |
| 831 } | 865 } |
| 832 if (revisionId != null) { | 866 if (revisionId != null) { |
| 833 _json["revisionId"] = revisionId; | 867 _json["revisionId"] = revisionId; |
| 834 } | 868 } |
| 835 return _json; | 869 return _json; |
| 836 } | 870 } |
| 837 } | 871 } |
| 838 | 872 |
| 839 /** | 873 /** |
| 840 * A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud | 874 * A CloudWorkspaceId is a unique identifier for a cloud workspace. |
| 841 * workspace is a place associated with a repo where modified files can be | 875 * A cloud workspace is a place associated with a repo where modified files |
| 842 * stored before they are committed. | 876 * can be stored before they are committed. |
| 843 */ | 877 */ |
| 844 class CloudWorkspaceId { | 878 class CloudWorkspaceId { |
| 845 /** | 879 /** |
| 846 * The unique name of the workspace within the repo. This is the name chosen | 880 * The unique name of the workspace within the repo. This is the name |
| 847 * by the client in the Source API's CreateWorkspace method. | 881 * chosen by the client in the Source API's CreateWorkspace method. |
| 848 */ | 882 */ |
| 849 core.String name; | 883 core.String name; |
| 850 /** The ID of the repo containing the workspace. */ | 884 /** The ID of the repo containing the workspace. */ |
| 851 RepoId repoId; | 885 RepoId repoId; |
| 852 | 886 |
| 853 CloudWorkspaceId(); | 887 CloudWorkspaceId(); |
| 854 | 888 |
| 855 CloudWorkspaceId.fromJson(core.Map _json) { | 889 CloudWorkspaceId.fromJson(core.Map _json) { |
| 856 if (_json.containsKey("name")) { | 890 if (_json.containsKey("name")) { |
| 857 name = _json["name"]; | 891 name = _json["name"]; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 871 } | 905 } |
| 872 return _json; | 906 return _json; |
| 873 } | 907 } |
| 874 } | 908 } |
| 875 | 909 |
| 876 /** | 910 /** |
| 877 * A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. | 911 * A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. |
| 878 */ | 912 */ |
| 879 class CloudWorkspaceSourceContext { | 913 class CloudWorkspaceSourceContext { |
| 880 /** | 914 /** |
| 881 * The ID of the snapshot. An empty snapshot_id refers to the most recent | 915 * The ID of the snapshot. |
| 882 * snapshot. | 916 * An empty snapshot_id refers to the most recent snapshot. |
| 883 */ | 917 */ |
| 884 core.String snapshotId; | 918 core.String snapshotId; |
| 885 /** The ID of the workspace. */ | 919 /** The ID of the workspace. */ |
| 886 CloudWorkspaceId workspaceId; | 920 CloudWorkspaceId workspaceId; |
| 887 | 921 |
| 888 CloudWorkspaceSourceContext(); | 922 CloudWorkspaceSourceContext(); |
| 889 | 923 |
| 890 CloudWorkspaceSourceContext.fromJson(core.Map _json) { | 924 CloudWorkspaceSourceContext.fromJson(core.Map _json) { |
| 891 if (_json.containsKey("snapshotId")) { | 925 if (_json.containsKey("snapshotId")) { |
| 892 snapshotId = _json["snapshotId"]; | 926 snapshotId = _json["snapshotId"]; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 904 if (workspaceId != null) { | 938 if (workspaceId != null) { |
| 905 _json["workspaceId"] = (workspaceId).toJson(); | 939 _json["workspaceId"] = (workspaceId).toJson(); |
| 906 } | 940 } |
| 907 return _json; | 941 return _json; |
| 908 } | 942 } |
| 909 } | 943 } |
| 910 | 944 |
| 911 /** | 945 /** |
| 912 * Represents the application to debug. The application may include one or more | 946 * Represents the application to debug. The application may include one or more |
| 913 * replicated processes executing the same code. Each of these processes is | 947 * replicated processes executing the same code. Each of these processes is |
| 914 * attached with a debugger agent, carrying out the debugging commands. The | 948 * attached with a debugger agent, carrying out the debugging commands. |
| 915 * agents attached to the same debuggee are identified by using exactly the same | 949 * The agents attached to the same debuggee are identified by using exactly the |
| 916 * field values when registering. | 950 * same field values when registering. |
| 917 */ | 951 */ |
| 918 class Debuggee { | 952 class Debuggee { |
| 919 /** | 953 /** |
| 920 * Version ID of the agent release. The version ID is structured as following: | 954 * Version ID of the agent release. The version ID is structured as |
| 921 * `domain/type/vmajor.minor` (for example `google.com/gcp-java/v1.1`). | 955 * following: `domain/type/vmajor.minor` (for example |
| 956 * `google.com/gcp-java/v1.1`). |
| 922 */ | 957 */ |
| 923 core.String agentVersion; | 958 core.String agentVersion; |
| 924 /** | 959 /** |
| 925 * Human readable description of the debuggee. Including a human-readable | 960 * Human readable description of the debuggee. |
| 926 * project name, environment name and version information is recommended. | 961 * Including a human-readable project name, environment name and version |
| 962 * information is recommended. |
| 927 */ | 963 */ |
| 928 core.String description; | 964 core.String description; |
| 929 /** | 965 /** |
| 930 * References to the locations and revisions of the source code used in the | 966 * References to the locations and revisions of the source code used in the |
| 931 * deployed application. Contexts describing a remote repo related to the | 967 * deployed application. |
| 932 * source code have a `category` label of `remote_repo`. Source snapshot | 968 * |
| 933 * source contexts have a `category` of `snapshot`. | 969 * Contexts describing a remote repo related to the source code |
| 970 * have a `category` label of `remote_repo`. Source snapshot source |
| 971 * contexts have a `category` of `snapshot`. |
| 934 */ | 972 */ |
| 935 core.List<ExtendedSourceContext> extSourceContexts; | 973 core.List<ExtendedSourceContext> extSourceContexts; |
| 936 /** | 974 /** |
| 937 * Unique identifier for the debuggee generated by the controller service. | 975 * Unique identifier for the debuggee generated by the controller service. |
| 938 */ | 976 */ |
| 939 core.String id; | 977 core.String id; |
| 940 /** | 978 /** |
| 941 * If set to `true`, indicates that the agent should disable itself and detach | 979 * If set to `true`, indicates that the agent should disable itself and |
| 942 * from the debuggee. | 980 * detach from the debuggee. |
| 943 */ | 981 */ |
| 944 core.bool isDisabled; | 982 core.bool isDisabled; |
| 945 /** | 983 /** |
| 946 * If set to `true`, indicates that the debuggee is considered as inactive by | 984 * If set to `true`, indicates that the debuggee is considered as inactive by |
| 947 * the Controller service. | 985 * the Controller service. |
| 948 */ | 986 */ |
| 949 core.bool isInactive; | 987 core.bool isInactive; |
| 950 /** | 988 /** |
| 951 * A set of custom debuggee properties, populated by the agent, to be | 989 * A set of custom debuggee properties, populated by the agent, to be |
| 952 * displayed to the user. | 990 * displayed to the user. |
| 953 */ | 991 */ |
| 954 core.Map<core.String, core.String> labels; | 992 core.Map<core.String, core.String> labels; |
| 955 /** | 993 /** |
| 956 * Project the debuggee is associated with. Use the project number when | 994 * Project the debuggee is associated with. |
| 957 * registering a Google Cloud Platform project. | 995 * Use the project number when registering a Google Cloud Platform project. |
| 958 */ | 996 */ |
| 959 core.String project; | 997 core.String project; |
| 960 /** | 998 /** |
| 961 * References to the locations and revisions of the source code used in the | 999 * References to the locations and revisions of the source code used in the |
| 962 * deployed application. NOTE: This field is deprecated. Consumers should use | 1000 * deployed application. |
| 963 * `ext_source_contexts` if it is not empty. Debug agents should populate both | 1001 * |
| 964 * this field and `ext_source_contexts`. | 1002 * NOTE: This field is deprecated. Consumers should use |
| 1003 * `ext_source_contexts` if it is not empty. Debug agents should populate |
| 1004 * both this field and `ext_source_contexts`. |
| 965 */ | 1005 */ |
| 966 core.List<SourceContext> sourceContexts; | 1006 core.List<SourceContext> sourceContexts; |
| 967 /** | 1007 /** |
| 968 * Human readable message to be displayed to the user about this debuggee. | 1008 * Human readable message to be displayed to the user about this debuggee. |
| 969 * Absence of this field indicates no status. The message can be either | 1009 * Absence of this field indicates no status. The message can be either |
| 970 * informational or an error status. | 1010 * informational or an error status. |
| 971 */ | 1011 */ |
| 972 StatusMessage status; | 1012 StatusMessage status; |
| 973 /** | 1013 /** |
| 974 * Debuggee uniquifier within the project. Any string that identifies the | 1014 * Debuggee uniquifier within the project. |
| 975 * application within the project can be used. Including environment and | 1015 * Any string that identifies the application within the project can be used. |
| 976 * version or build IDs is recommended. | 1016 * Including environment and version or build IDs is recommended. |
| 977 */ | 1017 */ |
| 978 core.String uniquifier; | 1018 core.String uniquifier; |
| 979 | 1019 |
| 980 Debuggee(); | 1020 Debuggee(); |
| 981 | 1021 |
| 982 Debuggee.fromJson(core.Map _json) { | 1022 Debuggee.fromJson(core.Map _json) { |
| 983 if (_json.containsKey("agentVersion")) { | 1023 if (_json.containsKey("agentVersion")) { |
| 984 agentVersion = _json["agentVersion"]; | 1024 agentVersion = _json["agentVersion"]; |
| 985 } | 1025 } |
| 986 if (_json.containsKey("description")) { | 1026 if (_json.containsKey("description")) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1089 } |
| 1050 if (uniquifier != null) { | 1090 if (uniquifier != null) { |
| 1051 _json["uniquifier"] = uniquifier; | 1091 _json["uniquifier"] = uniquifier; |
| 1052 } | 1092 } |
| 1053 return _json; | 1093 return _json; |
| 1054 } | 1094 } |
| 1055 } | 1095 } |
| 1056 | 1096 |
| 1057 /** | 1097 /** |
| 1058 * A generic empty message that you can re-use to avoid defining duplicated | 1098 * A generic empty message that you can re-use to avoid defining duplicated |
| 1059 * empty messages in your APIs. A typical example is to use it as the request or | 1099 * empty messages in your APIs. A typical example is to use it as the request |
| 1060 * the response type of an API method. For instance: service Foo { rpc | 1100 * or the response type of an API method. For instance: |
| 1061 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON | 1101 * |
| 1062 * representation for `Empty` is empty JSON object `{}`. | 1102 * service Foo { |
| 1103 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1104 * } |
| 1105 * |
| 1106 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 1063 */ | 1107 */ |
| 1064 class Empty { | 1108 class Empty { |
| 1065 | 1109 |
| 1066 Empty(); | 1110 Empty(); |
| 1067 | 1111 |
| 1068 Empty.fromJson(core.Map _json) { | 1112 Empty.fromJson(core.Map _json) { |
| 1069 } | 1113 } |
| 1070 | 1114 |
| 1071 core.Map toJson() { | 1115 core.Map toJson() { |
| 1072 var _json = new core.Map(); | 1116 var _json = new core.Map(); |
| 1073 return _json; | 1117 return _json; |
| 1074 } | 1118 } |
| 1075 } | 1119 } |
| 1076 | 1120 |
| 1077 /** | 1121 /** |
| 1078 * An ExtendedSourceContext is a SourceContext combined with additional details | 1122 * An ExtendedSourceContext is a SourceContext combined with additional |
| 1079 * describing the context. | 1123 * details describing the context. |
| 1080 */ | 1124 */ |
| 1081 class ExtendedSourceContext { | 1125 class ExtendedSourceContext { |
| 1082 /** Any source context. */ | 1126 /** Any source context. */ |
| 1083 SourceContext context; | 1127 SourceContext context; |
| 1084 /** Labels with user defined metadata. */ | 1128 /** Labels with user defined metadata. */ |
| 1085 core.Map<core.String, core.String> labels; | 1129 core.Map<core.String, core.String> labels; |
| 1086 | 1130 |
| 1087 ExtendedSourceContext(); | 1131 ExtendedSourceContext(); |
| 1088 | 1132 |
| 1089 ExtendedSourceContext.fromJson(core.Map _json) { | 1133 ExtendedSourceContext.fromJson(core.Map _json) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1103 if (labels != null) { | 1147 if (labels != null) { |
| 1104 _json["labels"] = labels; | 1148 _json["labels"] = labels; |
| 1105 } | 1149 } |
| 1106 return _json; | 1150 return _json; |
| 1107 } | 1151 } |
| 1108 } | 1152 } |
| 1109 | 1153 |
| 1110 /** Represents a message with parameters. */ | 1154 /** Represents a message with parameters. */ |
| 1111 class FormatMessage { | 1155 class FormatMessage { |
| 1112 /** | 1156 /** |
| 1113 * Format template for the message. The `format` uses placeholders `$0`, `$1`, | 1157 * Format template for the message. The `format` uses placeholders `$0`, |
| 1114 * etc. to reference parameters. `$$` can be used to denote the `$` character. | 1158 * `$1`, etc. to reference parameters. `$$` can be used to denote the `$` |
| 1115 * Examples: * `Failed to load '$0' which helps debug $1 the first time it is | 1159 * character. |
| 1116 * loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead | 1160 * |
| 1117 * of $1.` | 1161 * Examples: |
| 1162 * |
| 1163 * * `Failed to load '$0' which helps debug $1 the first time it |
| 1164 * is loaded. Again, $0 is very important.` |
| 1165 * * `Please pay $$10 to use $0 instead of $1.` |
| 1118 */ | 1166 */ |
| 1119 core.String format; | 1167 core.String format; |
| 1120 /** Optional parameters to be embedded into the message. */ | 1168 /** Optional parameters to be embedded into the message. */ |
| 1121 core.List<core.String> parameters; | 1169 core.List<core.String> parameters; |
| 1122 | 1170 |
| 1123 FormatMessage(); | 1171 FormatMessage(); |
| 1124 | 1172 |
| 1125 FormatMessage.fromJson(core.Map _json) { | 1173 FormatMessage.fromJson(core.Map _json) { |
| 1126 if (_json.containsKey("format")) { | 1174 if (_json.containsKey("format")) { |
| 1127 format = _json["format"]; | 1175 format = _json["format"]; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1144 } | 1192 } |
| 1145 | 1193 |
| 1146 /** A SourceContext referring to a Gerrit project. */ | 1194 /** A SourceContext referring to a Gerrit project. */ |
| 1147 class GerritSourceContext { | 1195 class GerritSourceContext { |
| 1148 /** An alias, which may be a branch or tag. */ | 1196 /** An alias, which may be a branch or tag. */ |
| 1149 AliasContext aliasContext; | 1197 AliasContext aliasContext; |
| 1150 /** The name of an alias (branch, tag, etc.). */ | 1198 /** The name of an alias (branch, tag, etc.). */ |
| 1151 core.String aliasName; | 1199 core.String aliasName; |
| 1152 /** | 1200 /** |
| 1153 * The full project name within the host. Projects may be nested, so | 1201 * The full project name within the host. Projects may be nested, so |
| 1154 * "project/subproject" is a valid project name. The "repo name" is | 1202 * "project/subproject" is a valid project name. |
| 1155 * hostURI/project. | 1203 * The "repo name" is hostURI/project. |
| 1156 */ | 1204 */ |
| 1157 core.String gerritProject; | 1205 core.String gerritProject; |
| 1158 /** The URI of a running Gerrit instance. */ | 1206 /** The URI of a running Gerrit instance. */ |
| 1159 core.String hostUri; | 1207 core.String hostUri; |
| 1160 /** A revision (commit) ID. */ | 1208 /** A revision (commit) ID. */ |
| 1161 core.String revisionId; | 1209 core.String revisionId; |
| 1162 | 1210 |
| 1163 GerritSourceContext(); | 1211 GerritSourceContext(); |
| 1164 | 1212 |
| 1165 GerritSourceContext.fromJson(core.Map _json) { | 1213 GerritSourceContext.fromJson(core.Map _json) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 if (revisionId != null) { | 1245 if (revisionId != null) { |
| 1198 _json["revisionId"] = revisionId; | 1246 _json["revisionId"] = revisionId; |
| 1199 } | 1247 } |
| 1200 return _json; | 1248 return _json; |
| 1201 } | 1249 } |
| 1202 } | 1250 } |
| 1203 | 1251 |
| 1204 /** Response for getting breakpoint information. */ | 1252 /** Response for getting breakpoint information. */ |
| 1205 class GetBreakpointResponse { | 1253 class GetBreakpointResponse { |
| 1206 /** | 1254 /** |
| 1207 * Complete breakpoint state. The fields `id` and `location` are guaranteed to | 1255 * Complete breakpoint state. |
| 1208 * be set. | 1256 * The fields `id` and `location` are guaranteed to be set. |
| 1209 */ | 1257 */ |
| 1210 Breakpoint breakpoint; | 1258 Breakpoint breakpoint; |
| 1211 | 1259 |
| 1212 GetBreakpointResponse(); | 1260 GetBreakpointResponse(); |
| 1213 | 1261 |
| 1214 GetBreakpointResponse.fromJson(core.Map _json) { | 1262 GetBreakpointResponse.fromJson(core.Map _json) { |
| 1215 if (_json.containsKey("breakpoint")) { | 1263 if (_json.containsKey("breakpoint")) { |
| 1216 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1264 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
| 1217 } | 1265 } |
| 1218 } | 1266 } |
| 1219 | 1267 |
| 1220 core.Map toJson() { | 1268 core.Map toJson() { |
| 1221 var _json = new core.Map(); | 1269 var _json = new core.Map(); |
| 1222 if (breakpoint != null) { | 1270 if (breakpoint != null) { |
| 1223 _json["breakpoint"] = (breakpoint).toJson(); | 1271 _json["breakpoint"] = (breakpoint).toJson(); |
| 1224 } | 1272 } |
| 1225 return _json; | 1273 return _json; |
| 1226 } | 1274 } |
| 1227 } | 1275 } |
| 1228 | 1276 |
| 1229 /** | 1277 /** |
| 1230 * A GitSourceContext denotes a particular revision in a third party Git | 1278 * A GitSourceContext denotes a particular revision in a third party Git |
| 1231 * repository (e.g. GitHub). | 1279 * repository (e.g. GitHub). |
| 1232 */ | 1280 */ |
| 1233 class GitSourceContext { | 1281 class GitSourceContext { |
| 1234 /** Git commit hash. required. */ | 1282 /** |
| 1283 * Git commit hash. |
| 1284 * required. |
| 1285 */ |
| 1235 core.String revisionId; | 1286 core.String revisionId; |
| 1236 /** Git repository URL. */ | 1287 /** Git repository URL. */ |
| 1237 core.String url; | 1288 core.String url; |
| 1238 | 1289 |
| 1239 GitSourceContext(); | 1290 GitSourceContext(); |
| 1240 | 1291 |
| 1241 GitSourceContext.fromJson(core.Map _json) { | 1292 GitSourceContext.fromJson(core.Map _json) { |
| 1242 if (_json.containsKey("revisionId")) { | 1293 if (_json.containsKey("revisionId")) { |
| 1243 revisionId = _json["revisionId"]; | 1294 revisionId = _json["revisionId"]; |
| 1244 } | 1295 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1255 if (url != null) { | 1306 if (url != null) { |
| 1256 _json["url"] = url; | 1307 _json["url"] = url; |
| 1257 } | 1308 } |
| 1258 return _json; | 1309 return _json; |
| 1259 } | 1310 } |
| 1260 } | 1311 } |
| 1261 | 1312 |
| 1262 /** Response for listing active breakpoints. */ | 1313 /** Response for listing active breakpoints. */ |
| 1263 class ListActiveBreakpointsResponse { | 1314 class ListActiveBreakpointsResponse { |
| 1264 /** | 1315 /** |
| 1265 * List of all active breakpoints. The fields `id` and `location` are | 1316 * List of all active breakpoints. |
| 1266 * guaranteed to be set on each breakpoint. | 1317 * The fields `id` and `location` are guaranteed to be set on each breakpoint. |
| 1267 */ | 1318 */ |
| 1268 core.List<Breakpoint> breakpoints; | 1319 core.List<Breakpoint> breakpoints; |
| 1269 /** | 1320 /** |
| 1270 * A wait token that can be used in the next method call to block until the | 1321 * A wait token that can be used in the next method call to block until |
| 1271 * list of breakpoints changes. | 1322 * the list of breakpoints changes. |
| 1272 */ | 1323 */ |
| 1273 core.String nextWaitToken; | 1324 core.String nextWaitToken; |
| 1274 /** | 1325 /** |
| 1275 * The `wait_expired` field is set to true by the server when the request | 1326 * The `wait_expired` field is set to true by the server when the |
| 1276 * times out and the field `success_on_timeout` is set to true. | 1327 * request times out and the field `success_on_timeout` is set to true. |
| 1277 */ | 1328 */ |
| 1278 core.bool waitExpired; | 1329 core.bool waitExpired; |
| 1279 | 1330 |
| 1280 ListActiveBreakpointsResponse(); | 1331 ListActiveBreakpointsResponse(); |
| 1281 | 1332 |
| 1282 ListActiveBreakpointsResponse.fromJson(core.Map _json) { | 1333 ListActiveBreakpointsResponse.fromJson(core.Map _json) { |
| 1283 if (_json.containsKey("breakpoints")) { | 1334 if (_json.containsKey("breakpoints")) { |
| 1284 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); | 1335 breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(
value)).toList(); |
| 1285 } | 1336 } |
| 1286 if (_json.containsKey("nextWaitToken")) { | 1337 if (_json.containsKey("nextWaitToken")) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1302 if (waitExpired != null) { | 1353 if (waitExpired != null) { |
| 1303 _json["waitExpired"] = waitExpired; | 1354 _json["waitExpired"] = waitExpired; |
| 1304 } | 1355 } |
| 1305 return _json; | 1356 return _json; |
| 1306 } | 1357 } |
| 1307 } | 1358 } |
| 1308 | 1359 |
| 1309 /** Response for listing breakpoints. */ | 1360 /** Response for listing breakpoints. */ |
| 1310 class ListBreakpointsResponse { | 1361 class ListBreakpointsResponse { |
| 1311 /** | 1362 /** |
| 1312 * List of all breakpoints with complete state. The fields `id` and `location` | 1363 * List of breakpoints matching the request. |
| 1313 * are guaranteed to be set on each breakpoint. | 1364 * The fields `id` and `location` are guaranteed to be set on each breakpoint. |
| 1365 * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` |
| 1366 * are cleared on each breakpoint regardless of it's status. |
| 1314 */ | 1367 */ |
| 1315 core.List<Breakpoint> breakpoints; | 1368 core.List<Breakpoint> breakpoints; |
| 1316 /** | 1369 /** |
| 1317 * A wait token that can be used in the next call to `list` (REST) or | 1370 * A wait token that can be used in the next call to `list` (REST) or |
| 1318 * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. | 1371 * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. |
| 1319 */ | 1372 */ |
| 1320 core.String nextWaitToken; | 1373 core.String nextWaitToken; |
| 1321 | 1374 |
| 1322 ListBreakpointsResponse(); | 1375 ListBreakpointsResponse(); |
| 1323 | 1376 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1338 if (nextWaitToken != null) { | 1391 if (nextWaitToken != null) { |
| 1339 _json["nextWaitToken"] = nextWaitToken; | 1392 _json["nextWaitToken"] = nextWaitToken; |
| 1340 } | 1393 } |
| 1341 return _json; | 1394 return _json; |
| 1342 } | 1395 } |
| 1343 } | 1396 } |
| 1344 | 1397 |
| 1345 /** Response for listing debuggees. */ | 1398 /** Response for listing debuggees. */ |
| 1346 class ListDebuggeesResponse { | 1399 class ListDebuggeesResponse { |
| 1347 /** | 1400 /** |
| 1348 * List of debuggees accessible to the calling user. Note that the | 1401 * List of debuggees accessible to the calling user. |
| 1349 * `description` field is the only human readable field that should be | 1402 * Note that the `description` field is the only human readable field |
| 1350 * displayed to the user. The fields `debuggee.id` and `description` fields | 1403 * that should be displayed to the user. |
| 1351 * are guaranteed to be set on each debuggee. | 1404 * The fields `debuggee.id` and `description` fields are guaranteed to be |
| 1405 * set on each debuggee. |
| 1352 */ | 1406 */ |
| 1353 core.List<Debuggee> debuggees; | 1407 core.List<Debuggee> debuggees; |
| 1354 | 1408 |
| 1355 ListDebuggeesResponse(); | 1409 ListDebuggeesResponse(); |
| 1356 | 1410 |
| 1357 ListDebuggeesResponse.fromJson(core.Map _json) { | 1411 ListDebuggeesResponse.fromJson(core.Map _json) { |
| 1358 if (_json.containsKey("debuggees")) { | 1412 if (_json.containsKey("debuggees")) { |
| 1359 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); | 1413 debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)
).toList(); |
| 1360 } | 1414 } |
| 1361 } | 1415 } |
| 1362 | 1416 |
| 1363 core.Map toJson() { | 1417 core.Map toJson() { |
| 1364 var _json = new core.Map(); | 1418 var _json = new core.Map(); |
| 1365 if (debuggees != null) { | 1419 if (debuggees != null) { |
| 1366 _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList(); | 1420 _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList(); |
| 1367 } | 1421 } |
| 1368 return _json; | 1422 return _json; |
| 1369 } | 1423 } |
| 1370 } | 1424 } |
| 1371 | 1425 |
| 1372 /** | 1426 /** |
| 1373 * Selects a repo using a Google Cloud Platform project ID (e.g. | 1427 * Selects a repo using a Google Cloud Platform project ID |
| 1374 * winged-cargo-31) and a repo name within that project. | 1428 * (e.g. winged-cargo-31) and a repo name within that project. |
| 1375 */ | 1429 */ |
| 1376 class ProjectRepoId { | 1430 class ProjectRepoId { |
| 1377 /** The ID of the project. */ | 1431 /** The ID of the project. */ |
| 1378 core.String projectId; | 1432 core.String projectId; |
| 1379 /** The name of the repo. Leave empty for the default repo. */ | 1433 /** The name of the repo. Leave empty for the default repo. */ |
| 1380 core.String repoName; | 1434 core.String repoName; |
| 1381 | 1435 |
| 1382 ProjectRepoId(); | 1436 ProjectRepoId(); |
| 1383 | 1437 |
| 1384 ProjectRepoId.fromJson(core.Map _json) { | 1438 ProjectRepoId.fromJson(core.Map _json) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1398 if (repoName != null) { | 1452 if (repoName != null) { |
| 1399 _json["repoName"] = repoName; | 1453 _json["repoName"] = repoName; |
| 1400 } | 1454 } |
| 1401 return _json; | 1455 return _json; |
| 1402 } | 1456 } |
| 1403 } | 1457 } |
| 1404 | 1458 |
| 1405 /** Request to register a debuggee. */ | 1459 /** Request to register a debuggee. */ |
| 1406 class RegisterDebuggeeRequest { | 1460 class RegisterDebuggeeRequest { |
| 1407 /** | 1461 /** |
| 1408 * Debuggee information to register. The fields `project`, `uniquifier`, | 1462 * Debuggee information to register. |
| 1409 * `description` and `agent_version` of the debuggee must be set. | 1463 * The fields `project`, `uniquifier`, `description` and `agent_version` |
| 1464 * of the debuggee must be set. |
| 1410 */ | 1465 */ |
| 1411 Debuggee debuggee; | 1466 Debuggee debuggee; |
| 1412 | 1467 |
| 1413 RegisterDebuggeeRequest(); | 1468 RegisterDebuggeeRequest(); |
| 1414 | 1469 |
| 1415 RegisterDebuggeeRequest.fromJson(core.Map _json) { | 1470 RegisterDebuggeeRequest.fromJson(core.Map _json) { |
| 1416 if (_json.containsKey("debuggee")) { | 1471 if (_json.containsKey("debuggee")) { |
| 1417 debuggee = new Debuggee.fromJson(_json["debuggee"]); | 1472 debuggee = new Debuggee.fromJson(_json["debuggee"]); |
| 1418 } | 1473 } |
| 1419 } | 1474 } |
| 1420 | 1475 |
| 1421 core.Map toJson() { | 1476 core.Map toJson() { |
| 1422 var _json = new core.Map(); | 1477 var _json = new core.Map(); |
| 1423 if (debuggee != null) { | 1478 if (debuggee != null) { |
| 1424 _json["debuggee"] = (debuggee).toJson(); | 1479 _json["debuggee"] = (debuggee).toJson(); |
| 1425 } | 1480 } |
| 1426 return _json; | 1481 return _json; |
| 1427 } | 1482 } |
| 1428 } | 1483 } |
| 1429 | 1484 |
| 1430 /** Response for registering a debuggee. */ | 1485 /** Response for registering a debuggee. */ |
| 1431 class RegisterDebuggeeResponse { | 1486 class RegisterDebuggeeResponse { |
| 1432 /** | 1487 /** |
| 1433 * Debuggee resource. The field `id` is guranteed to be set (in addition to | 1488 * Debuggee resource. |
| 1434 * the echoed fields). | 1489 * The field `id` is guranteed to be set (in addition to the echoed fields). |
| 1435 */ | 1490 */ |
| 1436 Debuggee debuggee; | 1491 Debuggee debuggee; |
| 1437 | 1492 |
| 1438 RegisterDebuggeeResponse(); | 1493 RegisterDebuggeeResponse(); |
| 1439 | 1494 |
| 1440 RegisterDebuggeeResponse.fromJson(core.Map _json) { | 1495 RegisterDebuggeeResponse.fromJson(core.Map _json) { |
| 1441 if (_json.containsKey("debuggee")) { | 1496 if (_json.containsKey("debuggee")) { |
| 1442 debuggee = new Debuggee.fromJson(_json["debuggee"]); | 1497 debuggee = new Debuggee.fromJson(_json["debuggee"]); |
| 1443 } | 1498 } |
| 1444 } | 1499 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 if (uid != null) { | 1533 if (uid != null) { |
| 1479 _json["uid"] = uid; | 1534 _json["uid"] = uid; |
| 1480 } | 1535 } |
| 1481 return _json; | 1536 return _json; |
| 1482 } | 1537 } |
| 1483 } | 1538 } |
| 1484 | 1539 |
| 1485 /** Response for setting a breakpoint. */ | 1540 /** Response for setting a breakpoint. */ |
| 1486 class SetBreakpointResponse { | 1541 class SetBreakpointResponse { |
| 1487 /** | 1542 /** |
| 1488 * Breakpoint resource. The field `id` is guaranteed to be set (in addition to | 1543 * Breakpoint resource. |
| 1489 * the echoed fileds). | 1544 * The field `id` is guaranteed to be set (in addition to the echoed fileds). |
| 1490 */ | 1545 */ |
| 1491 Breakpoint breakpoint; | 1546 Breakpoint breakpoint; |
| 1492 | 1547 |
| 1493 SetBreakpointResponse(); | 1548 SetBreakpointResponse(); |
| 1494 | 1549 |
| 1495 SetBreakpointResponse.fromJson(core.Map _json) { | 1550 SetBreakpointResponse.fromJson(core.Map _json) { |
| 1496 if (_json.containsKey("breakpoint")) { | 1551 if (_json.containsKey("breakpoint")) { |
| 1497 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1552 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
| 1498 } | 1553 } |
| 1499 } | 1554 } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 if (path != null) { | 1639 if (path != null) { |
| 1585 _json["path"] = path; | 1640 _json["path"] = path; |
| 1586 } | 1641 } |
| 1587 return _json; | 1642 return _json; |
| 1588 } | 1643 } |
| 1589 } | 1644 } |
| 1590 | 1645 |
| 1591 /** Represents a stack frame context. */ | 1646 /** Represents a stack frame context. */ |
| 1592 class StackFrame { | 1647 class StackFrame { |
| 1593 /** | 1648 /** |
| 1594 * Set of arguments passed to this function. Note that this might not be | 1649 * Set of arguments passed to this function. |
| 1595 * populated for all stack frames. | 1650 * Note that this might not be populated for all stack frames. |
| 1596 */ | 1651 */ |
| 1597 core.List<Variable> arguments; | 1652 core.List<Variable> arguments; |
| 1598 /** Demangled function name at the call site. */ | 1653 /** Demangled function name at the call site. */ |
| 1599 core.String function; | 1654 core.String function; |
| 1600 /** | 1655 /** |
| 1601 * Set of local variables at the stack frame location. Note that this might | 1656 * Set of local variables at the stack frame location. |
| 1602 * not be populated for all stack frames. | 1657 * Note that this might not be populated for all stack frames. |
| 1603 */ | 1658 */ |
| 1604 core.List<Variable> locals; | 1659 core.List<Variable> locals; |
| 1605 /** Source location of the call site. */ | 1660 /** Source location of the call site. */ |
| 1606 SourceLocation location; | 1661 SourceLocation location; |
| 1607 | 1662 |
| 1608 StackFrame(); | 1663 StackFrame(); |
| 1609 | 1664 |
| 1610 StackFrame.fromJson(core.Map _json) { | 1665 StackFrame.fromJson(core.Map _json) { |
| 1611 if (_json.containsKey("arguments")) { | 1666 if (_json.containsKey("arguments")) { |
| 1612 arguments = _json["arguments"].map((value) => new Variable.fromJson(value)
).toList(); | 1667 arguments = _json["arguments"].map((value) => new Variable.fromJson(value)
).toList(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1634 _json["locals"] = locals.map((value) => (value).toJson()).toList(); | 1689 _json["locals"] = locals.map((value) => (value).toJson()).toList(); |
| 1635 } | 1690 } |
| 1636 if (location != null) { | 1691 if (location != null) { |
| 1637 _json["location"] = (location).toJson(); | 1692 _json["location"] = (location).toJson(); |
| 1638 } | 1693 } |
| 1639 return _json; | 1694 return _json; |
| 1640 } | 1695 } |
| 1641 } | 1696 } |
| 1642 | 1697 |
| 1643 /** | 1698 /** |
| 1644 * Represents a contextual status message. The message can indicate an error or | 1699 * Represents a contextual status message. |
| 1645 * informational status, and refer to specific parts of the containing object. | 1700 * The message can indicate an error or informational status, and refer to |
| 1646 * For example, the `Breakpoint.status` field can indicate an error referring to | 1701 * specific parts of the containing object. |
| 1647 * the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. | 1702 * For example, the `Breakpoint.status` field can indicate an error referring |
| 1703 * to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. |
| 1648 */ | 1704 */ |
| 1649 class StatusMessage { | 1705 class StatusMessage { |
| 1650 /** Status message text. */ | 1706 /** Status message text. */ |
| 1651 FormatMessage description; | 1707 FormatMessage description; |
| 1652 /** Distinguishes errors from informational messages. */ | 1708 /** Distinguishes errors from informational messages. */ |
| 1653 core.bool isError; | 1709 core.bool isError; |
| 1654 /** | 1710 /** |
| 1655 * Reference to which the message applies. | 1711 * Reference to which the message applies. |
| 1656 * Possible string values are: | 1712 * Possible string values are: |
| 1657 * - "UNSPECIFIED" : A UNSPECIFIED. | 1713 * - "UNSPECIFIED" : Status doesn't refer to any particular input. |
| 1658 * - "BREAKPOINT_SOURCE_LOCATION" : A BREAKPOINT_SOURCE_LOCATION. | 1714 * - "BREAKPOINT_SOURCE_LOCATION" : Status applies to the breakpoint and is |
| 1659 * - "BREAKPOINT_CONDITION" : A BREAKPOINT_CONDITION. | 1715 * related to its location. |
| 1660 * - "BREAKPOINT_EXPRESSION" : A BREAKPOINT_EXPRESSION. | 1716 * - "BREAKPOINT_CONDITION" : Status applies to the breakpoint and is related |
| 1661 * - "VARIABLE_NAME" : A VARIABLE_NAME. | 1717 * to its condition. |
| 1662 * - "VARIABLE_VALUE" : A VARIABLE_VALUE. | 1718 * - "BREAKPOINT_EXPRESSION" : Status applies to the breakpoint and is related |
| 1719 * to its expressions. |
| 1720 * - "BREAKPOINT_AGE" : Status applies to the breakpoint and is related to its |
| 1721 * age. |
| 1722 * - "VARIABLE_NAME" : Status applies to the entire variable. |
| 1723 * - "VARIABLE_VALUE" : Status applies to variable value (variable name is |
| 1724 * valid). |
| 1663 */ | 1725 */ |
| 1664 core.String refersTo; | 1726 core.String refersTo; |
| 1665 | 1727 |
| 1666 StatusMessage(); | 1728 StatusMessage(); |
| 1667 | 1729 |
| 1668 StatusMessage.fromJson(core.Map _json) { | 1730 StatusMessage.fromJson(core.Map _json) { |
| 1669 if (_json.containsKey("description")) { | 1731 if (_json.containsKey("description")) { |
| 1670 description = new FormatMessage.fromJson(_json["description"]); | 1732 description = new FormatMessage.fromJson(_json["description"]); |
| 1671 } | 1733 } |
| 1672 if (_json.containsKey("isError")) { | 1734 if (_json.containsKey("isError")) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1687 } | 1749 } |
| 1688 if (refersTo != null) { | 1750 if (refersTo != null) { |
| 1689 _json["refersTo"] = refersTo; | 1751 _json["refersTo"] = refersTo; |
| 1690 } | 1752 } |
| 1691 return _json; | 1753 return _json; |
| 1692 } | 1754 } |
| 1693 } | 1755 } |
| 1694 | 1756 |
| 1695 /** Request to update an active breakpoint. */ | 1757 /** Request to update an active breakpoint. */ |
| 1696 class UpdateActiveBreakpointRequest { | 1758 class UpdateActiveBreakpointRequest { |
| 1697 /** Updated breakpoint information. The field 'id' must be set. */ | 1759 /** |
| 1760 * Updated breakpoint information. |
| 1761 * The field 'id' must be set. |
| 1762 */ |
| 1698 Breakpoint breakpoint; | 1763 Breakpoint breakpoint; |
| 1699 | 1764 |
| 1700 UpdateActiveBreakpointRequest(); | 1765 UpdateActiveBreakpointRequest(); |
| 1701 | 1766 |
| 1702 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { | 1767 UpdateActiveBreakpointRequest.fromJson(core.Map _json) { |
| 1703 if (_json.containsKey("breakpoint")) { | 1768 if (_json.containsKey("breakpoint")) { |
| 1704 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); | 1769 breakpoint = new Breakpoint.fromJson(_json["breakpoint"]); |
| 1705 } | 1770 } |
| 1706 } | 1771 } |
| 1707 | 1772 |
| 1708 core.Map toJson() { | 1773 core.Map toJson() { |
| 1709 var _json = new core.Map(); | 1774 var _json = new core.Map(); |
| 1710 if (breakpoint != null) { | 1775 if (breakpoint != null) { |
| 1711 _json["breakpoint"] = (breakpoint).toJson(); | 1776 _json["breakpoint"] = (breakpoint).toJson(); |
| 1712 } | 1777 } |
| 1713 return _json; | 1778 return _json; |
| 1714 } | 1779 } |
| 1715 } | 1780 } |
| 1716 | 1781 |
| 1717 /** | 1782 /** |
| 1718 * Response for updating an active breakpoint. The message is defined to allow | 1783 * Response for updating an active breakpoint. |
| 1719 * future extensions. | 1784 * The message is defined to allow future extensions. |
| 1720 */ | 1785 */ |
| 1721 class UpdateActiveBreakpointResponse { | 1786 class UpdateActiveBreakpointResponse { |
| 1722 | 1787 |
| 1723 UpdateActiveBreakpointResponse(); | 1788 UpdateActiveBreakpointResponse(); |
| 1724 | 1789 |
| 1725 UpdateActiveBreakpointResponse.fromJson(core.Map _json) { | 1790 UpdateActiveBreakpointResponse.fromJson(core.Map _json) { |
| 1726 } | 1791 } |
| 1727 | 1792 |
| 1728 core.Map toJson() { | 1793 core.Map toJson() { |
| 1729 var _json = new core.Map(); | 1794 var _json = new core.Map(); |
| 1730 return _json; | 1795 return _json; |
| 1731 } | 1796 } |
| 1732 } | 1797 } |
| 1733 | 1798 |
| 1734 /** | 1799 /** |
| 1735 * Represents a variable or an argument possibly of a compound object type. Note | 1800 * Represents a variable or an argument possibly of a compound object type. |
| 1736 * how the following variables are represented: 1) A simple variable: int x = 5 | 1801 * Note how the following variables are represented: |
| 1737 * { name: "x", value: "5", type: "int" } // Captured variable 2) A compound | 1802 * |
| 1738 * object: struct T { int m1; int m2; }; T x = { 3, 7 }; { // Captured variable | 1803 * 1) A simple variable: |
| 1739 * name: "x", type: "T", members { name: "m1", value: "3", type: "int" }, | 1804 * |
| 1740 * members { name: "m2", value: "7", type: "int" } } 3) A pointer where the | 1805 * int x = 5 |
| 1741 * pointee was captured: T x = { 3, 7 }; T* p = &x; { // Captured variable name: | 1806 * |
| 1742 * "p", type: "T*", value: "0x00500500", members { name: "m1", value: "3", type: | 1807 * { name: "x", value: "5", type: "int" } // Captured variable |
| 1743 * "int" }, members { name: "m2", value: "7", type: "int" } } 4) A pointer where | 1808 * |
| 1744 * the pointee was not captured: T* p = new T; { // Captured variable name: "p", | 1809 * 2) A compound object: |
| 1745 * type: "T*", value: "0x00400400" status { is_error: true, description { | 1810 * |
| 1746 * format: "unavailable" } } } The status should describe the reason for the | 1811 * struct T { |
| 1747 * missing value, such as ``, ``, ` | 1812 * int m1; |
| 1748 * `. Note that a null pointer should not have members. 5) An unnamed value: | 1813 * int m2; |
| 1749 * int* p = new int(7); { // Captured variable name: "p", value: "0x00500500", | 1814 * }; |
| 1750 * type: "int*", members { value: "7", type: "int" } } 6) An unnamed pointer | 1815 * T x = { 3, 7 }; |
| 1751 * where the pointee was not captured: int* p = new int(7); int** pp = &p; { // | 1816 * |
| 1752 * Captured variable name: "pp", value: "0x00500500", type: "int**", members { | 1817 * { // Captured variable |
| 1753 * value: "0x00400400", type: "int*" status { is_error: true, description: { | 1818 * name: "x", |
| 1754 * format: "unavailable" } } } } } To optimize computation, memory and network | 1819 * type: "T", |
| 1755 * traffic, variables that repeat in the output multiple times can be stored | 1820 * members { name: "m1", value: "3", type: "int" }, |
| 1756 * once in a shared variable table and be referenced using the `var_table_index` | 1821 * members { name: "m2", value: "7", type: "int" } |
| 1757 * field. The variables stored in the shared table are nameless and are | 1822 * } |
| 1758 * essentially a partition of the complete variable. To reconstruct the complete | 1823 * |
| 1759 * variable, merge the referencing variable with the referenced variable. When | 1824 * 3) A pointer where the pointee was captured: |
| 1760 * using the shared variable table, the following variables: T x = { 3, 7 }; T* | 1825 * |
| 1761 * p = &x; T& r = x; { name: "x", var_table_index: 3, type: "T" } // Captured | 1826 * T x = { 3, 7 }; |
| 1762 * variables { name: "p", value "0x00500500", type="T*", var_table_index: 3 } { | 1827 * T* p = &x; |
| 1763 * name: "r", type="T&", var_table_index: 3 } { // Shared variable table entry | 1828 * |
| 1764 * #3: members { name: "m1", value: "3", type: "int" }, members { name: "m2", | 1829 * { // Captured variable |
| 1765 * value: "7", type: "int" } } Note that the pointer address is stored with the | 1830 * name: "p", |
| 1766 * referencing variable and not with the referenced variable. This allows the | 1831 * type: "T*", |
| 1767 * referenced variable to be shared between pointers and references. The type | 1832 * value: "0x00500500", |
| 1768 * field is optional. The debugger agent may or may not support it. | 1833 * members { name: "m1", value: "3", type: "int" }, |
| 1834 * members { name: "m2", value: "7", type: "int" } |
| 1835 * } |
| 1836 * |
| 1837 * 4) A pointer where the pointee was not captured: |
| 1838 * |
| 1839 * T* p = new T; |
| 1840 * |
| 1841 * { // Captured variable |
| 1842 * name: "p", |
| 1843 * type: "T*", |
| 1844 * value: "0x00400400" |
| 1845 * status { is_error: true, description { format: "unavailable" } } |
| 1846 * } |
| 1847 * |
| 1848 * The status should describe the reason for the missing value, |
| 1849 * such as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`. |
| 1850 * |
| 1851 * Note that a null pointer should not have members. |
| 1852 * |
| 1853 * 5) An unnamed value: |
| 1854 * |
| 1855 * int* p = new int(7); |
| 1856 * |
| 1857 * { // Captured variable |
| 1858 * name: "p", |
| 1859 * value: "0x00500500", |
| 1860 * type: "int*", |
| 1861 * members { value: "7", type: "int" } } |
| 1862 * |
| 1863 * 6) An unnamed pointer where the pointee was not captured: |
| 1864 * |
| 1865 * int* p = new int(7); |
| 1866 * int** pp = &p; |
| 1867 * |
| 1868 * { // Captured variable |
| 1869 * name: "pp", |
| 1870 * value: "0x00500500", |
| 1871 * type: "int**", |
| 1872 * members { |
| 1873 * value: "0x00400400", |
| 1874 * type: "int*" |
| 1875 * status { |
| 1876 * is_error: true, |
| 1877 * description: { format: "unavailable" } } |
| 1878 * } |
| 1879 * } |
| 1880 * } |
| 1881 * |
| 1882 * To optimize computation, memory and network traffic, variables that |
| 1883 * repeat in the output multiple times can be stored once in a shared |
| 1884 * variable table and be referenced using the `var_table_index` field. The |
| 1885 * variables stored in the shared table are nameless and are essentially |
| 1886 * a partition of the complete variable. To reconstruct the complete |
| 1887 * variable, merge the referencing variable with the referenced variable. |
| 1888 * |
| 1889 * When using the shared variable table, the following variables: |
| 1890 * |
| 1891 * T x = { 3, 7 }; |
| 1892 * T* p = &x; |
| 1893 * T& r = x; |
| 1894 * |
| 1895 * { name: "x", var_table_index: 3, type: "T" } // Captured variables |
| 1896 * { name: "p", value "0x00500500", type="T*", var_table_index: 3 } |
| 1897 * { name: "r", type="T&", var_table_index: 3 } |
| 1898 * |
| 1899 * { // Shared variable table entry #3: |
| 1900 * members { name: "m1", value: "3", type: "int" }, |
| 1901 * members { name: "m2", value: "7", type: "int" } |
| 1902 * } |
| 1903 * |
| 1904 * Note that the pointer address is stored with the referencing variable |
| 1905 * and not with the referenced variable. This allows the referenced variable |
| 1906 * to be shared between pointers and references. |
| 1907 * |
| 1908 * The type field is optional. The debugger agent may or may not support it. |
| 1769 */ | 1909 */ |
| 1770 class Variable { | 1910 class Variable { |
| 1771 /** Members contained or pointed to by the variable. */ | 1911 /** Members contained or pointed to by the variable. */ |
| 1772 core.List<Variable> members; | 1912 core.List<Variable> members; |
| 1773 /** Name of the variable, if any. */ | 1913 /** Name of the variable, if any. */ |
| 1774 core.String name; | 1914 core.String name; |
| 1775 /** | 1915 /** |
| 1776 * Status associated with the variable. This field will usually stay unset. A | 1916 * Status associated with the variable. This field will usually stay |
| 1777 * status of a single variable only applies to that variable or expression. | 1917 * unset. A status of a single variable only applies to that variable or |
| 1778 * The rest of breakpoint data still remains valid. Variables might be | 1918 * expression. The rest of breakpoint data still remains valid. Variables |
| 1779 * reported in error state even when breakpoint is not in final state. The | 1919 * might be reported in error state even when breakpoint is not in final |
| 1780 * message may refer to variable name with `refers_to` set to `VARIABLE_NAME`. | 1920 * state. |
| 1781 * Alternatively `refers_to` will be set to `VARIABLE_VALUE`. In either case | 1921 * |
| 1782 * variable value and members will be unset. Example of error message applied | 1922 * The message may refer to variable name with `refers_to` set to |
| 1783 * to name: `Invalid expression syntax`. Example of information message | 1923 * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`. |
| 1784 * applied to value: `Not captured`. Examples of error message applied to | 1924 * In either case variable value and members will be unset. |
| 1785 * value: * `Malformed string`, * `Field f not found in class C` * `Null | 1925 * |
| 1786 * pointer dereference` | 1926 * Example of error message applied to name: `Invalid expression syntax`. |
| 1927 * |
| 1928 * Example of information message applied to value: `Not captured`. |
| 1929 * |
| 1930 * Examples of error message applied to value: |
| 1931 * |
| 1932 * * `Malformed string`, |
| 1933 * * `Field f not found in class C` |
| 1934 * * `Null pointer dereference` |
| 1787 */ | 1935 */ |
| 1788 StatusMessage status; | 1936 StatusMessage status; |
| 1789 /** | 1937 /** |
| 1790 * Variable type (e.g. `MyClass`). If the variable is split with | 1938 * Variable type (e.g. `MyClass`). If the variable is split with |
| 1791 * `var_table_index`, `type` goes next to `value`. The interpretation of a | 1939 * `var_table_index`, `type` goes next to `value`. The interpretation of |
| 1792 * type is agent specific. It is recommended to include the dynamic type | 1940 * a type is agent specific. It is recommended to include the dynamic type |
| 1793 * rather than a static type of an object. | 1941 * rather than a static type of an object. |
| 1794 */ | 1942 */ |
| 1795 core.String type; | 1943 core.String type; |
| 1796 /** Simple value of the variable. */ | 1944 /** Simple value of the variable. */ |
| 1797 core.String value; | 1945 core.String value; |
| 1798 /** | 1946 /** |
| 1799 * Reference to a variable in the shared variable table. More than one | 1947 * Reference to a variable in the shared variable table. More than |
| 1800 * variable can reference the same variable in the table. The | 1948 * one variable can reference the same variable in the table. The |
| 1801 * `var_table_index` field is an index into `variable_table` in Breakpoint. | 1949 * `var_table_index` field is an index into `variable_table` in Breakpoint. |
| 1802 */ | 1950 */ |
| 1803 core.int varTableIndex; | 1951 core.int varTableIndex; |
| 1804 | 1952 |
| 1805 Variable(); | 1953 Variable(); |
| 1806 | 1954 |
| 1807 Variable.fromJson(core.Map _json) { | 1955 Variable.fromJson(core.Map _json) { |
| 1808 if (_json.containsKey("members")) { | 1956 if (_json.containsKey("members")) { |
| 1809 members = _json["members"].map((value) => new Variable.fromJson(value)).to
List(); | 1957 members = _json["members"].map((value) => new Variable.fromJson(value)).to
List(); |
| 1810 } | 1958 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1841 } | 1989 } |
| 1842 if (value != null) { | 1990 if (value != null) { |
| 1843 _json["value"] = value; | 1991 _json["value"] = value; |
| 1844 } | 1992 } |
| 1845 if (varTableIndex != null) { | 1993 if (varTableIndex != null) { |
| 1846 _json["varTableIndex"] = varTableIndex; | 1994 _json["varTableIndex"] = varTableIndex; |
| 1847 } | 1995 } |
| 1848 return _json; | 1996 return _json; |
| 1849 } | 1997 } |
| 1850 } | 1998 } |
| OLD | NEW |