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