| Index: generated/googleapis/lib/clouddebugger/v2.dart
|
| diff --git a/generated/googleapis/lib/clouddebugger/v2.dart b/generated/googleapis/lib/clouddebugger/v2.dart
|
| index a7ca2f8afa356c94729b1fb4e8600960a2a860ed..aa02a87140c10f7279b2cca28ee328097f91c68a 100644
|
| --- a/generated/googleapis/lib/clouddebugger/v2.dart
|
| +++ b/generated/googleapis/lib/clouddebugger/v2.dart
|
| @@ -9,76 +9,77 @@ import 'dart:convert' as convert;
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| import 'package:http/http.dart' as http;
|
|
|
| -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| - ApiRequestError, DetailedApiRequestError;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show ApiRequestError, DetailedApiRequestError;
|
|
|
| const core.String USER_AGENT = 'dart-api-client clouddebugger/v2';
|
|
|
| -/**
|
| - * Examines the call stack and variables of a running application without
|
| - * stopping or slowing it down.
|
| - */
|
| +/// Examines the call stack and variables of a running application without
|
| +/// stopping or slowing it down.
|
| class ClouddebuggerApi {
|
| - /** View and manage your data across Google Cloud Platform services */
|
| - static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
|
| -
|
| - /** Manage cloud debugger */
|
| - static const CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debugger";
|
| + /// View and manage your data across Google Cloud Platform services
|
| + static const CloudPlatformScope =
|
| + "https://www.googleapis.com/auth/cloud-platform";
|
|
|
| + /// Manage cloud debugger
|
| + static const CloudDebuggerScope =
|
| + "https://www.googleapis.com/auth/cloud_debugger";
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| ControllerResourceApi get controller => new ControllerResourceApi(_requester);
|
| DebuggerResourceApi get debugger => new DebuggerResourceApi(_requester);
|
|
|
| - ClouddebuggerApi(http.Client client, {core.String rootUrl: "https://clouddebugger.googleapis.com/", core.String servicePath: ""}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + ClouddebuggerApi(http.Client client,
|
| + {core.String rootUrl: "https://clouddebugger.googleapis.com/",
|
| + core.String servicePath: ""})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class ControllerResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ControllerDebuggeesResourceApi get debuggees => new ControllerDebuggeesResourceApi(_requester);
|
| + ControllerDebuggeesResourceApi get debuggees =>
|
| + new ControllerDebuggeesResourceApi(_requester);
|
|
|
| - ControllerResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| + ControllerResourceApi(commons.ApiRequester client) : _requester = client;
|
| }
|
|
|
| -
|
| class ControllerDebuggeesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ControllerDebuggeesBreakpointsResourceApi get breakpoints => new ControllerDebuggeesBreakpointsResourceApi(_requester);
|
| -
|
| - ControllerDebuggeesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Registers the debuggee with the controller service.
|
| - *
|
| - * All agents attached to the same application must call this method with
|
| - * exactly the same request content to get back the same stable `debuggee_id`.
|
| - * Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
| - * is returned from any controller method.
|
| - *
|
| - * This protocol allows the controller service to disable debuggees, recover
|
| - * from data loss, or change the `debuggee_id` format. Agents must handle
|
| - * `debuggee_id` value changing upon re-registration.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [RegisterDebuggeeResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<RegisterDebuggeeResponse> register(RegisterDebuggeeRequest request) {
|
| + ControllerDebuggeesBreakpointsResourceApi get breakpoints =>
|
| + new ControllerDebuggeesBreakpointsResourceApi(_requester);
|
| +
|
| + ControllerDebuggeesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Registers the debuggee with the controller service.
|
| + ///
|
| + /// All agents attached to the same application must call this method with
|
| + /// exactly the same request content to get back the same stable
|
| + /// `debuggee_id`.
|
| + /// Agents should call this method again whenever `google.rpc.Code.NOT_FOUND`
|
| + /// is returned from any controller method.
|
| + ///
|
| + /// This protocol allows the controller service to disable debuggees, recover
|
| + /// from data loss, or change the `debuggee_id` format. Agents must handle
|
| + /// `debuggee_id` value changing upon re-registration.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [RegisterDebuggeeResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<RegisterDebuggeeResponse> register(
|
| + RegisterDebuggeeRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -92,67 +93,65 @@ class ControllerDebuggeesResourceApi {
|
|
|
| _url = 'v2/controller/debuggees/register';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RegisterDebuggeeResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new RegisterDebuggeeResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ControllerDebuggeesBreakpointsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Returns the list of all active breakpoints for the debuggee.
|
| - *
|
| - * The breakpoint specification (`location`, `condition`, and `expressions`
|
| - * fields) is semantically immutable, although the field values may
|
| - * change. For example, an agent may update the location line number
|
| - * to reflect the actual line where the breakpoint was set, but this
|
| - * doesn't change the breakpoint semantics.
|
| - *
|
| - * This means that an agent does not need to check if a breakpoint has changed
|
| - * when it encounters the same breakpoint on a successive call.
|
| - * Moreover, an agent should remember the breakpoints that are completed
|
| - * until the controller removes them from the active list to avoid
|
| - * setting those breakpoints again.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - Identifies the debuggee.
|
| - *
|
| - * [successOnTimeout] - If set to `true` (recommended), returns
|
| - * `google.rpc.Code.OK` status and
|
| - * sets the `wait_expired` response field to `true` when the server-selected
|
| - * timeout has expired.
|
| - *
|
| - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
|
| - * when the server-selected timeout has expired.
|
| - *
|
| - * [waitToken] - A token that, if specified, blocks the method call until the
|
| - * list
|
| - * of active breakpoints has changed, or a server-selected timeout has
|
| - * expired. The value should be set from the `next_wait_token` field in
|
| - * the last response. The initial value should be set to `"init"`.
|
| - *
|
| - * Completes with a [ListActiveBreakpointsResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, {core.bool successOnTimeout, core.String waitToken}) {
|
| + ControllerDebuggeesBreakpointsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Returns the list of all active breakpoints for the debuggee.
|
| + ///
|
| + /// The breakpoint specification (`location`, `condition`, and `expressions`
|
| + /// fields) is semantically immutable, although the field values may
|
| + /// change. For example, an agent may update the location line number
|
| + /// to reflect the actual line where the breakpoint was set, but this
|
| + /// doesn't change the breakpoint semantics.
|
| + ///
|
| + /// This means that an agent does not need to check if a breakpoint has
|
| + /// changed
|
| + /// when it encounters the same breakpoint on a successive call.
|
| + /// Moreover, an agent should remember the breakpoints that are completed
|
| + /// until the controller removes them from the active list to avoid
|
| + /// setting those breakpoints again.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - Identifies the debuggee.
|
| + ///
|
| + /// [successOnTimeout] - If set to `true` (recommended), returns
|
| + /// `google.rpc.Code.OK` status and
|
| + /// sets the `wait_expired` response field to `true` when the server-selected
|
| + /// timeout has expired.
|
| + ///
|
| + /// If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status
|
| + /// when the server-selected timeout has expired.
|
| + ///
|
| + /// [waitToken] - A token that, if specified, blocks the method call until
|
| + /// the list
|
| + /// of active breakpoints has changed, or a server-selected timeout has
|
| + /// expired. The value should be set from the `next_wait_token` field in
|
| + /// the last response. The initial value should be set to `"init"`.
|
| + ///
|
| + /// Completes with a [ListActiveBreakpointsResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId,
|
| + {core.bool successOnTimeout, core.String waitToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -170,45 +169,49 @@ class ControllerDebuggeesBreakpointsResourceApi {
|
| _queryParams["waitToken"] = [waitToken];
|
| }
|
|
|
| - _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints';
|
| + _url = 'v2/controller/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListActiveBreakpointsResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListActiveBreakpointsResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the breakpoint state or mutable fields.
|
| - * The entire Breakpoint message must be sent back to the controller service.
|
| - *
|
| - * Updates to active breakpoint fields are only allowed if the new value
|
| - * does not change the breakpoint specification. Updates to the `location`,
|
| - * `condition` and `expressions` fields should not alter the breakpoint
|
| - * semantics. These may only make changes such as canonicalizing a value
|
| - * or snapping the location to the correct line of code.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - Identifies the debuggee being debugged.
|
| - *
|
| - * [id] - Breakpoint identifier, unique in the scope of the debuggee.
|
| - *
|
| - * Completes with a [UpdateActiveBreakpointResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<UpdateActiveBreakpointResponse> update(UpdateActiveBreakpointRequest request, core.String debuggeeId, core.String id) {
|
| + /// Updates the breakpoint state or mutable fields.
|
| + /// The entire Breakpoint message must be sent back to the controller
|
| + /// service.
|
| + ///
|
| + /// Updates to active breakpoint fields are only allowed if the new value
|
| + /// does not change the breakpoint specification. Updates to the `location`,
|
| + /// `condition` and `expressions` fields should not alter the breakpoint
|
| + /// semantics. These may only make changes such as canonicalizing a value
|
| + /// or snapping the location to the correct line of code.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - Identifies the debuggee being debugged.
|
| + ///
|
| + /// [id] - Breakpoint identifier, unique in the scope of the debuggee.
|
| + ///
|
| + /// Completes with a [UpdateActiveBreakpointResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<UpdateActiveBreakpointResponse> update(
|
| + UpdateActiveBreakpointRequest request,
|
| + core.String debuggeeId,
|
| + core.String id) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -226,63 +229,65 @@ class ControllerDebuggeesBreakpointsResourceApi {
|
| throw new core.ArgumentError("Parameter id is required.");
|
| }
|
|
|
| - _url = 'v2/controller/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints/' + commons.Escaper.ecapeVariable('$id');
|
| + _url = 'v2/controller/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints/' +
|
| + commons.Escaper.ecapeVariable('$id');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new UpdateActiveBreakpointResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new UpdateActiveBreakpointResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class DebuggerResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DebuggerDebuggeesResourceApi get debuggees => new DebuggerDebuggeesResourceApi(_requester);
|
| + DebuggerDebuggeesResourceApi get debuggees =>
|
| + new DebuggerDebuggeesResourceApi(_requester);
|
|
|
| - DebuggerResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| + DebuggerResourceApi(commons.ApiRequester client) : _requester = client;
|
| }
|
|
|
| -
|
| class DebuggerDebuggeesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DebuggerDebuggeesBreakpointsResourceApi get breakpoints => new DebuggerDebuggeesBreakpointsResourceApi(_requester);
|
| -
|
| - DebuggerDebuggeesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Lists all the debuggees that the user has access to.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [clientVersion] - The client version making the call.
|
| - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| - *
|
| - * [includeInactive] - When set to `true`, the result includes all debuggees.
|
| - * Otherwise, the
|
| - * result includes only debuggees that are active.
|
| - *
|
| - * [project] - Project number of a Google Cloud project whose debuggees to
|
| - * list.
|
| - *
|
| - * Completes with a [ListDebuggeesResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListDebuggeesResponse> list({core.String clientVersion, core.bool includeInactive, core.String project}) {
|
| + DebuggerDebuggeesBreakpointsResourceApi get breakpoints =>
|
| + new DebuggerDebuggeesBreakpointsResourceApi(_requester);
|
| +
|
| + DebuggerDebuggeesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Lists all the debuggees that the user has access to.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [clientVersion] - The client version making the call.
|
| + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| + ///
|
| + /// [includeInactive] - When set to `true`, the result includes all
|
| + /// debuggees. Otherwise, the
|
| + /// result includes only debuggees that are active.
|
| + ///
|
| + /// [project] - Project number of a Google Cloud project whose debuggees to
|
| + /// list.
|
| + ///
|
| + /// Completes with a [ListDebuggeesResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListDebuggeesResponse> list(
|
| + {core.String clientVersion,
|
| + core.bool includeInactive,
|
| + core.String project}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -302,46 +307,42 @@ class DebuggerDebuggeesResourceApi {
|
|
|
| _url = 'v2/debugger/debuggees';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ListDebuggeesResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class DebuggerDebuggeesBreakpointsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DebuggerDebuggeesBreakpointsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes the breakpoint from the debuggee.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - ID of the debuggee whose breakpoint to delete.
|
| - *
|
| - * [breakpointId] - ID of the breakpoint to delete.
|
| - *
|
| - * [clientVersion] - The client version making the call.
|
| - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId, {core.String clientVersion}) {
|
| + DebuggerDebuggeesBreakpointsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Deletes the breakpoint from the debuggee.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - ID of the debuggee whose breakpoint to delete.
|
| + ///
|
| + /// [breakpointId] - ID of the breakpoint to delete.
|
| + ///
|
| + /// [clientVersion] - The client version making the call.
|
| + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Empty> delete(core.String debuggeeId, core.String breakpointId,
|
| + {core.String clientVersion}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -359,39 +360,41 @@ class DebuggerDebuggeesBreakpointsResourceApi {
|
| _queryParams["clientVersion"] = [clientVersion];
|
| }
|
|
|
| - _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints/' + commons.Escaper.ecapeVariable('$breakpointId');
|
| + _url = 'v2/debugger/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints/' +
|
| + commons.Escaper.ecapeVariable('$breakpointId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Gets breakpoint information.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - ID of the debuggee whose breakpoint to get.
|
| - *
|
| - * [breakpointId] - ID of the breakpoint to get.
|
| - *
|
| - * [clientVersion] - The client version making the call.
|
| - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| - *
|
| - * Completes with a [GetBreakpointResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<GetBreakpointResponse> get(core.String debuggeeId, core.String breakpointId, {core.String clientVersion}) {
|
| + /// Gets breakpoint information.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - ID of the debuggee whose breakpoint to get.
|
| + ///
|
| + /// [breakpointId] - ID of the breakpoint to get.
|
| + ///
|
| + /// [clientVersion] - The client version making the call.
|
| + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| + ///
|
| + /// Completes with a [GetBreakpointResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<GetBreakpointResponse> get(
|
| + core.String debuggeeId, core.String breakpointId,
|
| + {core.String clientVersion}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -409,62 +412,68 @@ class DebuggerDebuggeesBreakpointsResourceApi {
|
| _queryParams["clientVersion"] = [clientVersion];
|
| }
|
|
|
| - _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints/' + commons.Escaper.ecapeVariable('$breakpointId');
|
| + _url = 'v2/debugger/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints/' +
|
| + commons.Escaper.ecapeVariable('$breakpointId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new GetBreakpointResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists all breakpoints for the debuggee.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - ID of the debuggee whose breakpoints to list.
|
| - *
|
| - * [stripResults] - This field is deprecated. The following fields are always
|
| - * stripped out of
|
| - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
| - *
|
| - * [waitToken] - A wait token that, if specified, blocks the call until the
|
| - * breakpoints
|
| - * list has changed, or a server selected timeout has expired. The value
|
| - * should be set from the last response. The error code
|
| - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
|
| - * should be called again with the same `wait_token`.
|
| - *
|
| - * [clientVersion] - The client version making the call.
|
| - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| - *
|
| - * [action_value] - Only breakpoints with the specified action will pass the
|
| - * filter.
|
| - * Possible string values are:
|
| - * - "CAPTURE" : A CAPTURE.
|
| - * - "LOG" : A LOG.
|
| - *
|
| - * [includeInactive] - When set to `true`, the response includes active and
|
| - * inactive
|
| - * breakpoints. Otherwise, it includes only active breakpoints.
|
| - *
|
| - * [includeAllUsers] - When set to `true`, the response includes the list of
|
| - * breakpoints set by
|
| - * any user. Otherwise, it includes only breakpoints set by the caller.
|
| - *
|
| - * Completes with a [ListBreakpointsResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.bool stripResults, core.String waitToken, core.String clientVersion, core.String action_value, core.bool includeInactive, core.bool includeAllUsers}) {
|
| + /// Lists all breakpoints for the debuggee.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - ID of the debuggee whose breakpoints to list.
|
| + ///
|
| + /// [includeAllUsers] - When set to `true`, the response includes the list of
|
| + /// breakpoints set by
|
| + /// any user. Otherwise, it includes only breakpoints set by the caller.
|
| + ///
|
| + /// [includeInactive] - When set to `true`, the response includes active and
|
| + /// inactive
|
| + /// breakpoints. Otherwise, it includes only active breakpoints.
|
| + ///
|
| + /// [stripResults] - This field is deprecated. The following fields are
|
| + /// always stripped out of
|
| + /// the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
| + ///
|
| + /// [waitToken] - A wait token that, if specified, blocks the call until the
|
| + /// breakpoints
|
| + /// list has changed, or a server selected timeout has expired. The value
|
| + /// should be set from the last response. The error code
|
| + /// `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
|
| + /// should be called again with the same `wait_token`.
|
| + ///
|
| + /// [clientVersion] - The client version making the call.
|
| + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| + ///
|
| + /// [action_value] - Only breakpoints with the specified action will pass the
|
| + /// filter.
|
| + /// Possible string values are:
|
| + /// - "CAPTURE" : A CAPTURE.
|
| + /// - "LOG" : A LOG.
|
| + ///
|
| + /// Completes with a [ListBreakpointsResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ListBreakpointsResponse> list(core.String debuggeeId,
|
| + {core.bool includeAllUsers,
|
| + core.bool includeInactive,
|
| + core.bool stripResults,
|
| + core.String waitToken,
|
| + core.String clientVersion,
|
| + core.String action_value}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -475,6 +484,12 @@ class DebuggerDebuggeesBreakpointsResourceApi {
|
| if (debuggeeId == null) {
|
| throw new core.ArgumentError("Parameter debuggeeId is required.");
|
| }
|
| + if (includeAllUsers != null) {
|
| + _queryParams["includeAllUsers"] = ["${includeAllUsers}"];
|
| + }
|
| + if (includeInactive != null) {
|
| + _queryParams["includeInactive"] = ["${includeInactive}"];
|
| + }
|
| if (stripResults != null) {
|
| _queryParams["stripResults"] = ["${stripResults}"];
|
| }
|
| @@ -487,46 +502,41 @@ class DebuggerDebuggeesBreakpointsResourceApi {
|
| if (action_value != null) {
|
| _queryParams["action.value"] = [action_value];
|
| }
|
| - if (includeInactive != null) {
|
| - _queryParams["includeInactive"] = ["${includeInactive}"];
|
| - }
|
| - if (includeAllUsers != null) {
|
| - _queryParams["includeAllUsers"] = ["${includeAllUsers}"];
|
| - }
|
|
|
| - _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints';
|
| + _url = 'v2/debugger/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ListBreakpointsResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Sets the breakpoint to the debuggee.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [debuggeeId] - ID of the debuggee where the breakpoint is to be set.
|
| - *
|
| - * [clientVersion] - The client version making the call.
|
| - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| - *
|
| - * Completes with a [SetBreakpointResponse].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<SetBreakpointResponse> set(Breakpoint request, core.String debuggeeId, {core.String clientVersion}) {
|
| + /// Sets the breakpoint to the debuggee.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [debuggeeId] - ID of the debuggee where the breakpoint is to be set.
|
| + ///
|
| + /// [clientVersion] - The client version making the call.
|
| + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
| + ///
|
| + /// Completes with a [SetBreakpointResponse].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<SetBreakpointResponse> set(
|
| + Breakpoint request, core.String debuggeeId,
|
| + {core.String clientVersion}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -544,37 +554,34 @@ class DebuggerDebuggeesBreakpointsResourceApi {
|
| _queryParams["clientVersion"] = [clientVersion];
|
| }
|
|
|
| - _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints/set';
|
| + _url = 'v2/debugger/debuggees/' +
|
| + commons.Escaper.ecapeVariable('$debuggeeId') +
|
| + '/breakpoints/set';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new SetBreakpointResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/** An alias to a repo revision. */
|
| +/// An alias to a repo revision.
|
| class AliasContext {
|
| - /**
|
| - * The alias kind.
|
| - * Possible string values are:
|
| - * - "ANY" : Do not use.
|
| - * - "FIXED" : Git tag
|
| - * - "MOVABLE" : Git branch
|
| - * - "OTHER" : OTHER is used to specify non-standard aliases, those not of the
|
| - * kinds
|
| - * above. For example, if a Git repo has a ref named "refs/foo/bar", it
|
| - * is considered to be of kind OTHER.
|
| - */
|
| + /// The alias kind.
|
| + /// Possible string values are:
|
| + /// - "ANY" : Do not use.
|
| + /// - "FIXED" : Git tag
|
| + /// - "MOVABLE" : Git branch
|
| + /// - "OTHER" : OTHER is used to specify non-standard aliases, those not of
|
| + /// the kinds
|
| + /// above. For example, if a Git repo has a ref named "refs/foo/bar", it
|
| + /// is considered to be of kind OTHER.
|
| core.String kind;
|
| - /** The alias name. */
|
| +
|
| + /// The alias name.
|
| core.String name;
|
|
|
| AliasContext();
|
| @@ -589,7 +596,8 @@ class AliasContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -600,118 +608,114 @@ class AliasContext {
|
| }
|
| }
|
|
|
| -/** Represents the breakpoint specification, status and results. */
|
| +/// Represents the breakpoint specification, status and results.
|
| class Breakpoint {
|
| - /**
|
| - * Action that the agent should perform when the code at the
|
| - * breakpoint location is hit.
|
| - * Possible string values are:
|
| - * - "CAPTURE" : Capture stack frame and variables and update the breakpoint.
|
| - * The data is only captured once. After that the breakpoint is set
|
| - * in a final state.
|
| - * - "LOG" : Log each breakpoint hit. The breakpoint remains active until
|
| - * deleted or expired.
|
| - */
|
| + /// Action that the agent should perform when the code at the
|
| + /// breakpoint location is hit.
|
| + /// Possible string values are:
|
| + /// - "CAPTURE" : Capture stack frame and variables and update the
|
| + /// breakpoint.
|
| + /// The data is only captured once. After that the breakpoint is set
|
| + /// in a final state.
|
| + /// - "LOG" : Log each breakpoint hit. The breakpoint remains active until
|
| + /// deleted or expired.
|
| core.String action;
|
| - /**
|
| - * Condition that triggers the breakpoint.
|
| - * The condition is a compound boolean expression composed using expressions
|
| - * in a programming language at the source location.
|
| - */
|
| +
|
| + /// Condition that triggers the breakpoint.
|
| + /// The condition is a compound boolean expression composed using expressions
|
| + /// in a programming language at the source location.
|
| core.String condition;
|
| - /** Time this breakpoint was created by the server in seconds resolution. */
|
| +
|
| + /// Time this breakpoint was created by the server in seconds resolution.
|
| core.String createTime;
|
| - /**
|
| - * Values of evaluated expressions at breakpoint time.
|
| - * The evaluated expressions appear in exactly the same order they
|
| - * are listed in the `expressions` field.
|
| - * The `name` field holds the original expression text, the `value` or
|
| - * `members` field holds the result of the evaluated expression.
|
| - * If the expression cannot be evaluated, the `status` inside the `Variable`
|
| - * will indicate an error and contain the error text.
|
| - */
|
| +
|
| + /// Values of evaluated expressions at breakpoint time.
|
| + /// The evaluated expressions appear in exactly the same order they
|
| + /// are listed in the `expressions` field.
|
| + /// The `name` field holds the original expression text, the `value` or
|
| + /// `members` field holds the result of the evaluated expression.
|
| + /// If the expression cannot be evaluated, the `status` inside the `Variable`
|
| + /// will indicate an error and contain the error text.
|
| core.List<Variable> evaluatedExpressions;
|
| - /**
|
| - * List of read-only expressions to evaluate at the breakpoint location.
|
| - * The expressions are composed using expressions in the programming language
|
| - * at the source location. If the breakpoint action is `LOG`, the evaluated
|
| - * expressions are included in log statements.
|
| - */
|
| +
|
| + /// List of read-only expressions to evaluate at the breakpoint location.
|
| + /// The expressions are composed using expressions in the programming
|
| + /// language
|
| + /// at the source location. If the breakpoint action is `LOG`, the evaluated
|
| + /// expressions are included in log statements.
|
| core.List<core.String> expressions;
|
| - /**
|
| - * Time this breakpoint was finalized as seen by the server in seconds
|
| - * resolution.
|
| - */
|
| +
|
| + /// Time this breakpoint was finalized as seen by the server in seconds
|
| + /// resolution.
|
| core.String finalTime;
|
| - /** Breakpoint identifier, unique in the scope of the debuggee. */
|
| +
|
| + /// Breakpoint identifier, unique in the scope of the debuggee.
|
| core.String id;
|
| - /**
|
| - * When true, indicates that this is a final result and the
|
| - * breakpoint state will not change from here on.
|
| - */
|
| +
|
| + /// When true, indicates that this is a final result and the
|
| + /// breakpoint state will not change from here on.
|
| core.bool isFinalState;
|
| - /**
|
| - * A set of custom breakpoint properties, populated by the agent, to be
|
| - * displayed to the user.
|
| - */
|
| +
|
| + /// A set of custom breakpoint properties, populated by the agent, to be
|
| + /// displayed to the user.
|
| core.Map<core.String, core.String> labels;
|
| - /** Breakpoint source location. */
|
| +
|
| + /// Breakpoint source location.
|
| SourceLocation location;
|
| - /**
|
| - * Indicates the severity of the log. Only relevant when action is `LOG`.
|
| - * Possible string values are:
|
| - * - "INFO" : Information log message.
|
| - * - "WARNING" : Warning log message.
|
| - * - "ERROR" : Error log message.
|
| - */
|
| +
|
| + /// Indicates the severity of the log. Only relevant when action is `LOG`.
|
| + /// Possible string values are:
|
| + /// - "INFO" : Information log message.
|
| + /// - "WARNING" : Warning log message.
|
| + /// - "ERROR" : Error log message.
|
| core.String logLevel;
|
| - /**
|
| - * Only relevant when action is `LOG`. Defines the message to log when
|
| - * the breakpoint hits. The message may include parameter placeholders `$0`,
|
| - * `$1`, etc. These placeholders are replaced with the evaluated value
|
| - * of the appropriate expression. Expressions not referenced in
|
| - * `log_message_format` are not logged.
|
| - *
|
| - * Example: `Message received, id = $0, count = $1` with
|
| - * `expressions` = `[ message.id, message.count ]`.
|
| - */
|
| +
|
| + /// Only relevant when action is `LOG`. Defines the message to log when
|
| + /// the breakpoint hits. The message may include parameter placeholders `$0`,
|
| + /// `$1`, etc. These placeholders are replaced with the evaluated value
|
| + /// of the appropriate expression. Expressions not referenced in
|
| + /// `log_message_format` are not logged.
|
| + ///
|
| + /// Example: `Message received, id = $0, count = $1` with
|
| + /// `expressions` = `[ message.id, message.count ]`.
|
| core.String logMessageFormat;
|
| - /** The stack at breakpoint time. */
|
| +
|
| + /// The stack at breakpoint time.
|
| core.List<StackFrame> stackFrames;
|
| - /**
|
| - * Breakpoint status.
|
| - *
|
| - * The status includes an error flag and a human readable message.
|
| - * This field is usually unset. The message can be either
|
| - * informational or an error message. Regardless, clients should always
|
| - * display the text message back to the user.
|
| - *
|
| - * Error status indicates complete failure of the breakpoint.
|
| - *
|
| - * Example (non-final state): `Still loading symbols...`
|
| - *
|
| - * Examples (final state):
|
| - *
|
| - * * `Invalid line number` referring to location
|
| - * * `Field f not found in class C` referring to condition
|
| - */
|
| +
|
| + /// Breakpoint status.
|
| + ///
|
| + /// The status includes an error flag and a human readable message.
|
| + /// This field is usually unset. The message can be either
|
| + /// informational or an error message. Regardless, clients should always
|
| + /// display the text message back to the user.
|
| + ///
|
| + /// Error status indicates complete failure of the breakpoint.
|
| + ///
|
| + /// Example (non-final state): `Still loading symbols...`
|
| + ///
|
| + /// Examples (final state):
|
| + ///
|
| + /// * `Invalid line number` referring to location
|
| + /// * `Field f not found in class C` referring to condition
|
| StatusMessage status;
|
| - /** E-mail address of the user that created this breakpoint */
|
| +
|
| + /// E-mail address of the user that created this breakpoint
|
| core.String userEmail;
|
| - /**
|
| - * The `variable_table` exists to aid with computation, memory and network
|
| - * traffic optimization. It enables storing a variable once and reference
|
| - * it from multiple variables, including variables stored in the
|
| - * `variable_table` itself.
|
| - * For example, the same `this` object, which may appear at many levels of
|
| - * the stack, can have all of its data stored once in this table. The
|
| - * stack frame variables then would hold only a reference to it.
|
| - *
|
| - * The variable `var_table_index` field is an index into this repeated field.
|
| - * The stored objects are nameless and get their name from the referencing
|
| - * variable. The effective variable is a merge of the referencing variable
|
| - * and the referenced variable.
|
| - */
|
| +
|
| + /// The `variable_table` exists to aid with computation, memory and network
|
| + /// traffic optimization. It enables storing a variable once and reference
|
| + /// it from multiple variables, including variables stored in the
|
| + /// `variable_table` itself.
|
| + /// For example, the same `this` object, which may appear at many levels of
|
| + /// the stack, can have all of its data stored once in this table. The
|
| + /// stack frame variables then would hold only a reference to it.
|
| + ///
|
| + /// The variable `var_table_index` field is an index into this repeated
|
| + /// field.
|
| + /// The stored objects are nameless and get their name from the referencing
|
| + /// variable. The effective variable is a merge of the referencing variable
|
| + /// and the referenced variable.
|
| core.List<Variable> variableTable;
|
|
|
| Breakpoint();
|
| @@ -727,7 +731,9 @@ class Breakpoint {
|
| createTime = _json["createTime"];
|
| }
|
| if (_json.containsKey("evaluatedExpressions")) {
|
| - evaluatedExpressions = _json["evaluatedExpressions"].map((value) => new Variable.fromJson(value)).toList();
|
| + evaluatedExpressions = _json["evaluatedExpressions"]
|
| + .map((value) => new Variable.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("expressions")) {
|
| expressions = _json["expressions"];
|
| @@ -754,7 +760,9 @@ class Breakpoint {
|
| logMessageFormat = _json["logMessageFormat"];
|
| }
|
| if (_json.containsKey("stackFrames")) {
|
| - stackFrames = _json["stackFrames"].map((value) => new StackFrame.fromJson(value)).toList();
|
| + stackFrames = _json["stackFrames"]
|
| + .map((value) => new StackFrame.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("status")) {
|
| status = new StatusMessage.fromJson(_json["status"]);
|
| @@ -763,12 +771,15 @@ class Breakpoint {
|
| userEmail = _json["userEmail"];
|
| }
|
| if (_json.containsKey("variableTable")) {
|
| - variableTable = _json["variableTable"].map((value) => new Variable.fromJson(value)).toList();
|
| + variableTable = _json["variableTable"]
|
| + .map((value) => new Variable.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (action != null) {
|
| _json["action"] = action;
|
| }
|
| @@ -779,7 +790,8 @@ class Breakpoint {
|
| _json["createTime"] = createTime;
|
| }
|
| if (evaluatedExpressions != null) {
|
| - _json["evaluatedExpressions"] = evaluatedExpressions.map((value) => (value).toJson()).toList();
|
| + _json["evaluatedExpressions"] =
|
| + evaluatedExpressions.map((value) => (value).toJson()).toList();
|
| }
|
| if (expressions != null) {
|
| _json["expressions"] = expressions;
|
| @@ -806,7 +818,8 @@ class Breakpoint {
|
| _json["logMessageFormat"] = logMessageFormat;
|
| }
|
| if (stackFrames != null) {
|
| - _json["stackFrames"] = stackFrames.map((value) => (value).toJson()).toList();
|
| + _json["stackFrames"] =
|
| + stackFrames.map((value) => (value).toJson()).toList();
|
| }
|
| if (status != null) {
|
| _json["status"] = (status).toJson();
|
| @@ -815,24 +828,26 @@ class Breakpoint {
|
| _json["userEmail"] = userEmail;
|
| }
|
| if (variableTable != null) {
|
| - _json["variableTable"] = variableTable.map((value) => (value).toJson()).toList();
|
| + _json["variableTable"] =
|
| + variableTable.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * A CloudRepoSourceContext denotes a particular revision in a cloud
|
| - * repo (a repo hosted by the Google Cloud Platform).
|
| - */
|
| +/// A CloudRepoSourceContext denotes a particular revision in a cloud
|
| +/// repo (a repo hosted by the Google Cloud Platform).
|
| class CloudRepoSourceContext {
|
| - /** An alias, which may be a branch or tag. */
|
| + /// An alias, which may be a branch or tag.
|
| AliasContext aliasContext;
|
| - /** The name of an alias (branch, tag, etc.). */
|
| +
|
| + /// The name of an alias (branch, tag, etc.).
|
| core.String aliasName;
|
| - /** The ID of the repo. */
|
| +
|
| + /// The ID of the repo.
|
| RepoId repoId;
|
| - /** A revision ID. */
|
| +
|
| + /// A revision ID.
|
| core.String revisionId;
|
|
|
| CloudRepoSourceContext();
|
| @@ -853,7 +868,8 @@ class CloudRepoSourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (aliasContext != null) {
|
| _json["aliasContext"] = (aliasContext).toJson();
|
| }
|
| @@ -870,18 +886,15 @@ class CloudRepoSourceContext {
|
| }
|
| }
|
|
|
| -/**
|
| - * A CloudWorkspaceId is a unique identifier for a cloud workspace.
|
| - * A cloud workspace is a place associated with a repo where modified files
|
| - * can be stored before they are committed.
|
| - */
|
| +/// A CloudWorkspaceId is a unique identifier for a cloud workspace.
|
| +/// A cloud workspace is a place associated with a repo where modified files
|
| +/// can be stored before they are committed.
|
| class CloudWorkspaceId {
|
| - /**
|
| - * The unique name of the workspace within the repo. This is the name
|
| - * chosen by the client in the Source API's CreateWorkspace method.
|
| - */
|
| + /// The unique name of the workspace within the repo. This is the name
|
| + /// chosen by the client in the Source API's CreateWorkspace method.
|
| core.String name;
|
| - /** The ID of the repo containing the workspace. */
|
| +
|
| + /// The ID of the repo containing the workspace.
|
| RepoId repoId;
|
|
|
| CloudWorkspaceId();
|
| @@ -896,7 +909,8 @@ class CloudWorkspaceId {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| @@ -907,16 +921,13 @@ class CloudWorkspaceId {
|
| }
|
| }
|
|
|
| -/**
|
| - * A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
| - */
|
| +/// A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
| class CloudWorkspaceSourceContext {
|
| - /**
|
| - * The ID of the snapshot.
|
| - * An empty snapshot_id refers to the most recent snapshot.
|
| - */
|
| + /// The ID of the snapshot.
|
| + /// An empty snapshot_id refers to the most recent snapshot.
|
| core.String snapshotId;
|
| - /** The ID of the workspace. */
|
| +
|
| + /// The ID of the workspace.
|
| CloudWorkspaceId workspaceId;
|
|
|
| CloudWorkspaceSourceContext();
|
| @@ -931,7 +942,8 @@ class CloudWorkspaceSourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (snapshotId != null) {
|
| _json["snapshotId"] = snapshotId;
|
| }
|
| @@ -942,76 +954,66 @@ class CloudWorkspaceSourceContext {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents the debugged application. The application may include one or more
|
| - * replicated processes executing the same code. Each of these processes is
|
| - * attached with a debugger agent, carrying out the debugging commands.
|
| - * Agents attached to the same debuggee identify themselves as such by using
|
| - * exactly the same Debuggee message value when registering.
|
| - */
|
| +/// Represents the debugged application. The application may include one or
|
| +/// more
|
| +/// replicated processes executing the same code. Each of these processes is
|
| +/// attached with a debugger agent, carrying out the debugging commands.
|
| +/// Agents attached to the same debuggee identify themselves as such by using
|
| +/// exactly the same Debuggee message value when registering.
|
| class Debuggee {
|
| - /**
|
| - * Version ID of the agent.
|
| - * Schema: `domain/language-platform/vmajor.minor` (for example
|
| - * `google.com/java-gcp/v1.1`).
|
| - */
|
| + /// Version ID of the agent.
|
| + /// Schema: `domain/language-platform/vmajor.minor` (for example
|
| + /// `google.com/java-gcp/v1.1`).
|
| core.String agentVersion;
|
| - /**
|
| - * Human readable description of the debuggee.
|
| - * Including a human-readable project name, environment name and version
|
| - * information is recommended.
|
| - */
|
| +
|
| + /// Human readable description of the debuggee.
|
| + /// Including a human-readable project name, environment name and version
|
| + /// information is recommended.
|
| core.String description;
|
| - /**
|
| - * References to the locations and revisions of the source code used in the
|
| - * deployed application.
|
| - *
|
| - * NOTE: this field is experimental and can be ignored.
|
| - */
|
| +
|
| + /// References to the locations and revisions of the source code used in the
|
| + /// deployed application.
|
| + ///
|
| + /// NOTE: this field is experimental and can be ignored.
|
| core.List<ExtendedSourceContext> extSourceContexts;
|
| - /**
|
| - * Unique identifier for the debuggee generated by the controller service.
|
| - */
|
| +
|
| + /// Unique identifier for the debuggee generated by the controller service.
|
| core.String id;
|
| - /**
|
| - * If set to `true`, indicates that the agent should disable itself and
|
| - * detach from the debuggee.
|
| - */
|
| +
|
| + /// If set to `true`, indicates that the agent should disable itself and
|
| + /// detach from the debuggee.
|
| core.bool isDisabled;
|
| - /**
|
| - * If set to `true`, indicates that Controller service does not detect any
|
| - * activity from the debuggee agents and the application is possibly stopped.
|
| - */
|
| +
|
| + /// If set to `true`, indicates that Controller service does not detect any
|
| + /// activity from the debuggee agents and the application is possibly
|
| + /// stopped.
|
| core.bool isInactive;
|
| - /**
|
| - * A set of custom debuggee properties, populated by the agent, to be
|
| - * displayed to the user.
|
| - */
|
| +
|
| + /// A set of custom debuggee properties, populated by the agent, to be
|
| + /// displayed to the user.
|
| core.Map<core.String, core.String> labels;
|
| - /**
|
| - * Project the debuggee is associated with.
|
| - * Use project number or id when registering a Google Cloud Platform project.
|
| - */
|
| +
|
| + /// Project the debuggee is associated with.
|
| + /// Use project number or id when registering a Google Cloud Platform
|
| + /// project.
|
| core.String project;
|
| - /**
|
| - * References to the locations and revisions of the source code used in the
|
| - * deployed application.
|
| - */
|
| +
|
| + /// References to the locations and revisions of the source code used in the
|
| + /// deployed application.
|
| core.List<SourceContext> sourceContexts;
|
| - /**
|
| - * Human readable message to be displayed to the user about this debuggee.
|
| - * Absence of this field indicates no status. The message can be either
|
| - * informational or an error status.
|
| - */
|
| +
|
| + /// Human readable message to be displayed to the user about this debuggee.
|
| + /// Absence of this field indicates no status. The message can be either
|
| + /// informational or an error status.
|
| StatusMessage status;
|
| - /**
|
| - * Uniquifier to further distiguish the application.
|
| - * It is possible that different applications might have identical values in
|
| - * the debuggee message, thus, incorrectly identified as a single application
|
| - * by the Controller service. This field adds salt to further distiguish the
|
| - * application. Agents should consider seeding this field with value that
|
| - * identifies the code, binary, configuration and environment.
|
| - */
|
| +
|
| + /// Uniquifier to further distiguish the application.
|
| + /// It is possible that different applications might have identical values in
|
| + /// the debuggee message, thus, incorrectly identified as a single
|
| + /// application
|
| + /// by the Controller service. This field adds salt to further distiguish the
|
| + /// application. Agents should consider seeding this field with value that
|
| + /// identifies the code, binary, configuration and environment.
|
| core.String uniquifier;
|
|
|
| Debuggee();
|
| @@ -1024,7 +1026,9 @@ class Debuggee {
|
| description = _json["description"];
|
| }
|
| if (_json.containsKey("extSourceContexts")) {
|
| - extSourceContexts = _json["extSourceContexts"].map((value) => new ExtendedSourceContext.fromJson(value)).toList();
|
| + extSourceContexts = _json["extSourceContexts"]
|
| + .map((value) => new ExtendedSourceContext.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -1042,7 +1046,9 @@ class Debuggee {
|
| project = _json["project"];
|
| }
|
| if (_json.containsKey("sourceContexts")) {
|
| - sourceContexts = _json["sourceContexts"].map((value) => new SourceContext.fromJson(value)).toList();
|
| + sourceContexts = _json["sourceContexts"]
|
| + .map((value) => new SourceContext.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("status")) {
|
| status = new StatusMessage.fromJson(_json["status"]);
|
| @@ -1053,7 +1059,8 @@ class Debuggee {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (agentVersion != null) {
|
| _json["agentVersion"] = agentVersion;
|
| }
|
| @@ -1061,7 +1068,8 @@ class Debuggee {
|
| _json["description"] = description;
|
| }
|
| if (extSourceContexts != null) {
|
| - _json["extSourceContexts"] = extSourceContexts.map((value) => (value).toJson()).toList();
|
| + _json["extSourceContexts"] =
|
| + extSourceContexts.map((value) => (value).toJson()).toList();
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -1079,7 +1087,8 @@ class Debuggee {
|
| _json["project"] = project;
|
| }
|
| if (sourceContexts != null) {
|
| - _json["sourceContexts"] = sourceContexts.map((value) => (value).toJson()).toList();
|
| + _json["sourceContexts"] =
|
| + sourceContexts.map((value) => (value).toJson()).toList();
|
| }
|
| if (status != null) {
|
| _json["status"] = (status).toJson();
|
| @@ -1091,38 +1100,34 @@ class Debuggee {
|
| }
|
| }
|
|
|
| -/**
|
| - * A generic empty message that you can re-use to avoid defining duplicated
|
| - * empty messages in your APIs. A typical example is to use it as the request
|
| - * or the response type of an API method. For instance:
|
| - *
|
| - * service Foo {
|
| - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| - * }
|
| - *
|
| - * The JSON representation for `Empty` is empty JSON object `{}`.
|
| - */
|
| +/// A generic empty message that you can re-use to avoid defining duplicated
|
| +/// empty messages in your APIs. A typical example is to use it as the request
|
| +/// or the response type of an API method. For instance:
|
| +///
|
| +/// service Foo {
|
| +/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| +/// }
|
| +///
|
| +/// The JSON representation for `Empty` is empty JSON object `{}`.
|
| class Empty {
|
| -
|
| Empty();
|
|
|
| - Empty.fromJson(core.Map _json) {
|
| - }
|
| + Empty.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * An ExtendedSourceContext is a SourceContext combined with additional
|
| - * details describing the context.
|
| - */
|
| +/// An ExtendedSourceContext is a SourceContext combined with additional
|
| +/// details describing the context.
|
| class ExtendedSourceContext {
|
| - /** Any source context. */
|
| + /// Any source context.
|
| SourceContext context;
|
| - /** Labels with user defined metadata. */
|
| +
|
| + /// Labels with user defined metadata.
|
| core.Map<core.String, core.String> labels;
|
|
|
| ExtendedSourceContext();
|
| @@ -1137,7 +1142,8 @@ class ExtendedSourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (context != null) {
|
| _json["context"] = (context).toJson();
|
| }
|
| @@ -1148,21 +1154,20 @@ class ExtendedSourceContext {
|
| }
|
| }
|
|
|
| -/** Represents a message with parameters. */
|
| +/// Represents a message with parameters.
|
| class FormatMessage {
|
| - /**
|
| - * Format template for the message. The `format` uses placeholders `$0`,
|
| - * `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
|
| - * character.
|
| - *
|
| - * Examples:
|
| - *
|
| - * * `Failed to load '$0' which helps debug $1 the first time it
|
| - * is loaded. Again, $0 is very important.`
|
| - * * `Please pay $$10 to use $0 instead of $1.`
|
| - */
|
| + /// Format template for the message. The `format` uses placeholders `$0`,
|
| + /// `$1`, etc. to reference parameters. `$$` can be used to denote the `$`
|
| + /// character.
|
| + ///
|
| + /// Examples:
|
| + ///
|
| + /// * `Failed to load '$0' which helps debug $1 the first time it
|
| + /// is loaded. Again, $0 is very important.`
|
| + /// * `Please pay $$10 to use $0 instead of $1.`
|
| core.String format;
|
| - /** Optional parameters to be embedded into the message. */
|
| +
|
| + /// Optional parameters to be embedded into the message.
|
| core.List<core.String> parameters;
|
|
|
| FormatMessage();
|
| @@ -1177,7 +1182,8 @@ class FormatMessage {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (format != null) {
|
| _json["format"] = format;
|
| }
|
| @@ -1188,21 +1194,23 @@ class FormatMessage {
|
| }
|
| }
|
|
|
| -/** A SourceContext referring to a Gerrit project. */
|
| +/// A SourceContext referring to a Gerrit project.
|
| class GerritSourceContext {
|
| - /** An alias, which may be a branch or tag. */
|
| + /// An alias, which may be a branch or tag.
|
| AliasContext aliasContext;
|
| - /** The name of an alias (branch, tag, etc.). */
|
| +
|
| + /// The name of an alias (branch, tag, etc.).
|
| core.String aliasName;
|
| - /**
|
| - * The full project name within the host. Projects may be nested, so
|
| - * "project/subproject" is a valid project name.
|
| - * The "repo name" is hostURI/project.
|
| - */
|
| +
|
| + /// The full project name within the host. Projects may be nested, so
|
| + /// "project/subproject" is a valid project name.
|
| + /// The "repo name" is hostURI/project.
|
| core.String gerritProject;
|
| - /** The URI of a running Gerrit instance. */
|
| +
|
| + /// The URI of a running Gerrit instance.
|
| core.String hostUri;
|
| - /** A revision (commit) ID. */
|
| +
|
| + /// A revision (commit) ID.
|
| core.String revisionId;
|
|
|
| GerritSourceContext();
|
| @@ -1226,7 +1234,8 @@ class GerritSourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (aliasContext != null) {
|
| _json["aliasContext"] = (aliasContext).toJson();
|
| }
|
| @@ -1246,12 +1255,10 @@ class GerritSourceContext {
|
| }
|
| }
|
|
|
| -/** Response for getting breakpoint information. */
|
| +/// Response for getting breakpoint information.
|
| class GetBreakpointResponse {
|
| - /**
|
| - * Complete breakpoint state.
|
| - * The fields `id` and `location` are guaranteed to be set.
|
| - */
|
| + /// Complete breakpoint state.
|
| + /// The fields `id` and `location` are guaranteed to be set.
|
| Breakpoint breakpoint;
|
|
|
| GetBreakpointResponse();
|
| @@ -1263,7 +1270,8 @@ class GetBreakpointResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (breakpoint != null) {
|
| _json["breakpoint"] = (breakpoint).toJson();
|
| }
|
| @@ -1271,17 +1279,14 @@ class GetBreakpointResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * A GitSourceContext denotes a particular revision in a third party Git
|
| - * repository (e.g. GitHub).
|
| - */
|
| +/// A GitSourceContext denotes a particular revision in a third party Git
|
| +/// repository (e.g. GitHub).
|
| class GitSourceContext {
|
| - /**
|
| - * Git commit hash.
|
| - * required.
|
| - */
|
| + /// Git commit hash.
|
| + /// required.
|
| core.String revisionId;
|
| - /** Git repository URL. */
|
| +
|
| + /// Git repository URL.
|
| core.String url;
|
|
|
| GitSourceContext();
|
| @@ -1296,7 +1301,8 @@ class GitSourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (revisionId != null) {
|
| _json["revisionId"] = revisionId;
|
| }
|
| @@ -1307,30 +1313,29 @@ class GitSourceContext {
|
| }
|
| }
|
|
|
| -/** Response for listing active breakpoints. */
|
| +/// Response for listing active breakpoints.
|
| class ListActiveBreakpointsResponse {
|
| - /**
|
| - * List of all active breakpoints.
|
| - * The fields `id` and `location` are guaranteed to be set on each breakpoint.
|
| - */
|
| + /// List of all active breakpoints.
|
| + /// The fields `id` and `location` are guaranteed to be set on each
|
| + /// breakpoint.
|
| core.List<Breakpoint> breakpoints;
|
| - /**
|
| - * A token that can be used in the next method call to block until
|
| - * the list of breakpoints changes.
|
| - */
|
| +
|
| + /// A token that can be used in the next method call to block until
|
| + /// the list of breakpoints changes.
|
| core.String nextWaitToken;
|
| - /**
|
| - * If set to `true`, indicates that there is no change to the
|
| - * list of active breakpoints and the server-selected timeout has expired.
|
| - * The `breakpoints` field would be empty and should be ignored.
|
| - */
|
| +
|
| + /// If set to `true`, indicates that there is no change to the
|
| + /// list of active breakpoints and the server-selected timeout has expired.
|
| + /// The `breakpoints` field would be empty and should be ignored.
|
| core.bool waitExpired;
|
|
|
| ListActiveBreakpointsResponse();
|
|
|
| ListActiveBreakpointsResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("breakpoints")) {
|
| - breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(value)).toList();
|
| + breakpoints = _json["breakpoints"]
|
| + .map((value) => new Breakpoint.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("nextWaitToken")) {
|
| nextWaitToken = _json["nextWaitToken"];
|
| @@ -1341,9 +1346,11 @@ class ListActiveBreakpointsResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (breakpoints != null) {
|
| - _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList();
|
| + _json["breakpoints"] =
|
| + breakpoints.map((value) => (value).toJson()).toList();
|
| }
|
| if (nextWaitToken != null) {
|
| _json["nextWaitToken"] = nextWaitToken;
|
| @@ -1355,26 +1362,27 @@ class ListActiveBreakpointsResponse {
|
| }
|
| }
|
|
|
| -/** Response for listing breakpoints. */
|
| +/// Response for listing breakpoints.
|
| class ListBreakpointsResponse {
|
| - /**
|
| - * List of breakpoints matching the request.
|
| - * The fields `id` and `location` are guaranteed to be set on each breakpoint.
|
| - * The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
|
| - * are cleared on each breakpoint regardless of its status.
|
| - */
|
| + /// List of breakpoints matching the request.
|
| + /// The fields `id` and `location` are guaranteed to be set on each
|
| + /// breakpoint.
|
| + /// The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
|
| + /// are cleared on each breakpoint regardless of its status.
|
| core.List<Breakpoint> breakpoints;
|
| - /**
|
| - * A wait token that can be used in the next call to `list` (REST) or
|
| - * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
|
| - */
|
| +
|
| + /// A wait token that can be used in the next call to `list` (REST) or
|
| + /// `ListBreakpoints` (RPC) to block until the list of breakpoints has
|
| + /// changes.
|
| core.String nextWaitToken;
|
|
|
| ListBreakpointsResponse();
|
|
|
| ListBreakpointsResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("breakpoints")) {
|
| - breakpoints = _json["breakpoints"].map((value) => new Breakpoint.fromJson(value)).toList();
|
| + breakpoints = _json["breakpoints"]
|
| + .map((value) => new Breakpoint.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("nextWaitToken")) {
|
| nextWaitToken = _json["nextWaitToken"];
|
| @@ -1382,9 +1390,11 @@ class ListBreakpointsResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (breakpoints != null) {
|
| - _json["breakpoints"] = breakpoints.map((value) => (value).toJson()).toList();
|
| + _json["breakpoints"] =
|
| + breakpoints.map((value) => (value).toJson()).toList();
|
| }
|
| if (nextWaitToken != null) {
|
| _json["nextWaitToken"] = nextWaitToken;
|
| @@ -1393,26 +1403,27 @@ class ListBreakpointsResponse {
|
| }
|
| }
|
|
|
| -/** Response for listing debuggees. */
|
| +/// Response for listing debuggees.
|
| class ListDebuggeesResponse {
|
| - /**
|
| - * List of debuggees accessible to the calling user.
|
| - * The fields `debuggee.id` and `description` are guaranteed to be set.
|
| - * The `description` field is a human readable field provided by agents and
|
| - * can be displayed to users.
|
| - */
|
| + /// List of debuggees accessible to the calling user.
|
| + /// The fields `debuggee.id` and `description` are guaranteed to be set.
|
| + /// The `description` field is a human readable field provided by agents and
|
| + /// can be displayed to users.
|
| core.List<Debuggee> debuggees;
|
|
|
| ListDebuggeesResponse();
|
|
|
| ListDebuggeesResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("debuggees")) {
|
| - debuggees = _json["debuggees"].map((value) => new Debuggee.fromJson(value)).toList();
|
| + debuggees = _json["debuggees"]
|
| + .map((value) => new Debuggee.fromJson(value))
|
| + .toList();
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (debuggees != null) {
|
| _json["debuggees"] = debuggees.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1420,14 +1431,13 @@ class ListDebuggeesResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * Selects a repo using a Google Cloud Platform project ID
|
| - * (e.g. winged-cargo-31) and a repo name within that project.
|
| - */
|
| +/// Selects a repo using a Google Cloud Platform project ID
|
| +/// (e.g. winged-cargo-31) and a repo name within that project.
|
| class ProjectRepoId {
|
| - /** The ID of the project. */
|
| + /// The ID of the project.
|
| core.String projectId;
|
| - /** The name of the repo. Leave empty for the default repo. */
|
| +
|
| + /// The name of the repo. Leave empty for the default repo.
|
| core.String repoName;
|
|
|
| ProjectRepoId();
|
| @@ -1442,7 +1452,8 @@ class ProjectRepoId {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (projectId != null) {
|
| _json["projectId"] = projectId;
|
| }
|
| @@ -1453,13 +1464,11 @@ class ProjectRepoId {
|
| }
|
| }
|
|
|
| -/** Request to register a debuggee. */
|
| +/// Request to register a debuggee.
|
| class RegisterDebuggeeRequest {
|
| - /**
|
| - * Debuggee information to register.
|
| - * The fields `project`, `uniquifier`, `description` and `agent_version`
|
| - * of the debuggee must be set.
|
| - */
|
| + /// Debuggee information to register.
|
| + /// The fields `project`, `uniquifier`, `description` and `agent_version`
|
| + /// of the debuggee must be set.
|
| Debuggee debuggee;
|
|
|
| RegisterDebuggeeRequest();
|
| @@ -1471,7 +1480,8 @@ class RegisterDebuggeeRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (debuggee != null) {
|
| _json["debuggee"] = (debuggee).toJson();
|
| }
|
| @@ -1479,15 +1489,13 @@ class RegisterDebuggeeRequest {
|
| }
|
| }
|
|
|
| -/** Response for registering a debuggee. */
|
| +/// Response for registering a debuggee.
|
| class RegisterDebuggeeResponse {
|
| - /**
|
| - * Debuggee resource.
|
| - * The field `id` is guranteed to be set (in addition to the echoed fields).
|
| - * If the field `is_disabled` is set to `true`, the agent should disable
|
| - * itself by removing all breakpoints and detaching from the application.
|
| - * It should however continue to poll `RegisterDebuggee` until reenabled.
|
| - */
|
| + /// Debuggee resource.
|
| + /// The field `id` is guranteed to be set (in addition to the echoed fields).
|
| + /// If the field `is_disabled` is set to `true`, the agent should disable
|
| + /// itself by removing all breakpoints and detaching from the application.
|
| + /// It should however continue to poll `RegisterDebuggee` until reenabled.
|
| Debuggee debuggee;
|
|
|
| RegisterDebuggeeResponse();
|
| @@ -1499,7 +1507,8 @@ class RegisterDebuggeeResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (debuggee != null) {
|
| _json["debuggee"] = (debuggee).toJson();
|
| }
|
| @@ -1507,11 +1516,12 @@ class RegisterDebuggeeResponse {
|
| }
|
| }
|
|
|
| -/** A unique identifier for a cloud repo. */
|
| +/// A unique identifier for a cloud repo.
|
| class RepoId {
|
| - /** A combination of a project ID and a repo name. */
|
| + /// A combination of a project ID and a repo name.
|
| ProjectRepoId projectRepoId;
|
| - /** A server-assigned, globally unique identifier. */
|
| +
|
| + /// A server-assigned, globally unique identifier.
|
| core.String uid;
|
|
|
| RepoId();
|
| @@ -1526,7 +1536,8 @@ class RepoId {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (projectRepoId != null) {
|
| _json["projectRepoId"] = (projectRepoId).toJson();
|
| }
|
| @@ -1537,12 +1548,11 @@ class RepoId {
|
| }
|
| }
|
|
|
| -/** Response for setting a breakpoint. */
|
| +/// Response for setting a breakpoint.
|
| class SetBreakpointResponse {
|
| - /**
|
| - * Breakpoint resource.
|
| - * The field `id` is guaranteed to be set (in addition to the echoed fileds).
|
| - */
|
| + /// Breakpoint resource.
|
| + /// The field `id` is guaranteed to be set (in addition to the echoed
|
| + /// fileds).
|
| Breakpoint breakpoint;
|
|
|
| SetBreakpointResponse();
|
| @@ -1554,7 +1564,8 @@ class SetBreakpointResponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (breakpoint != null) {
|
| _json["breakpoint"] = (breakpoint).toJson();
|
| }
|
| @@ -1562,18 +1573,19 @@ class SetBreakpointResponse {
|
| }
|
| }
|
|
|
| -/**
|
| - * A SourceContext is a reference to a tree of files. A SourceContext together
|
| - * with a path point to a unique revision of a single file or directory.
|
| - */
|
| +/// A SourceContext is a reference to a tree of files. A SourceContext together
|
| +/// with a path point to a unique revision of a single file or directory.
|
| class SourceContext {
|
| - /** A SourceContext referring to a revision in a cloud repo. */
|
| + /// A SourceContext referring to a revision in a cloud repo.
|
| CloudRepoSourceContext cloudRepo;
|
| - /** A SourceContext referring to a snapshot in a cloud workspace. */
|
| +
|
| + /// A SourceContext referring to a snapshot in a cloud workspace.
|
| CloudWorkspaceSourceContext cloudWorkspace;
|
| - /** A SourceContext referring to a Gerrit project. */
|
| +
|
| + /// A SourceContext referring to a Gerrit project.
|
| GerritSourceContext gerrit;
|
| - /** A SourceContext referring to any third party Git repo (e.g. GitHub). */
|
| +
|
| + /// A SourceContext referring to any third party Git repo (e.g. GitHub).
|
| GitSourceContext git;
|
|
|
| SourceContext();
|
| @@ -1583,7 +1595,8 @@ class SourceContext {
|
| cloudRepo = new CloudRepoSourceContext.fromJson(_json["cloudRepo"]);
|
| }
|
| if (_json.containsKey("cloudWorkspace")) {
|
| - cloudWorkspace = new CloudWorkspaceSourceContext.fromJson(_json["cloudWorkspace"]);
|
| + cloudWorkspace =
|
| + new CloudWorkspaceSourceContext.fromJson(_json["cloudWorkspace"]);
|
| }
|
| if (_json.containsKey("gerrit")) {
|
| gerrit = new GerritSourceContext.fromJson(_json["gerrit"]);
|
| @@ -1594,7 +1607,8 @@ class SourceContext {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (cloudRepo != null) {
|
| _json["cloudRepo"] = (cloudRepo).toJson();
|
| }
|
| @@ -1611,13 +1625,12 @@ class SourceContext {
|
| }
|
| }
|
|
|
| -/** Represents a location in the source code. */
|
| +/// Represents a location in the source code.
|
| class SourceLocation {
|
| - /** Line inside the file. The first line in the file has the value `1`. */
|
| + /// Line inside the file. The first line in the file has the value `1`.
|
| core.int line;
|
| - /**
|
| - * Path to the source file within the source context of the target binary.
|
| - */
|
| +
|
| + /// Path to the source file within the source context of the target binary.
|
| core.String path;
|
|
|
| SourceLocation();
|
| @@ -1632,7 +1645,8 @@ class SourceLocation {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (line != null) {
|
| _json["line"] = line;
|
| }
|
| @@ -1643,34 +1657,36 @@ class SourceLocation {
|
| }
|
| }
|
|
|
| -/** Represents a stack frame context. */
|
| +/// Represents a stack frame context.
|
| class StackFrame {
|
| - /**
|
| - * Set of arguments passed to this function.
|
| - * Note that this might not be populated for all stack frames.
|
| - */
|
| + /// Set of arguments passed to this function.
|
| + /// Note that this might not be populated for all stack frames.
|
| core.List<Variable> arguments;
|
| - /** Demangled function name at the call site. */
|
| +
|
| + /// Demangled function name at the call site.
|
| core.String function;
|
| - /**
|
| - * Set of local variables at the stack frame location.
|
| - * Note that this might not be populated for all stack frames.
|
| - */
|
| +
|
| + /// Set of local variables at the stack frame location.
|
| + /// Note that this might not be populated for all stack frames.
|
| core.List<Variable> locals;
|
| - /** Source location of the call site. */
|
| +
|
| + /// Source location of the call site.
|
| SourceLocation location;
|
|
|
| StackFrame();
|
|
|
| StackFrame.fromJson(core.Map _json) {
|
| if (_json.containsKey("arguments")) {
|
| - arguments = _json["arguments"].map((value) => new Variable.fromJson(value)).toList();
|
| + arguments = _json["arguments"]
|
| + .map((value) => new Variable.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("function")) {
|
| function = _json["function"];
|
| }
|
| if (_json.containsKey("locals")) {
|
| - locals = _json["locals"].map((value) => new Variable.fromJson(value)).toList();
|
| + locals =
|
| + _json["locals"].map((value) => new Variable.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("location")) {
|
| location = new SourceLocation.fromJson(_json["location"]);
|
| @@ -1678,7 +1694,8 @@ class StackFrame {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (arguments != null) {
|
| _json["arguments"] = arguments.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1695,34 +1712,32 @@ class StackFrame {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents a contextual status message.
|
| - * The message can indicate an error or informational status, and refer to
|
| - * specific parts of the containing object.
|
| - * For example, the `Breakpoint.status` field can indicate an error referring
|
| - * to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
| - */
|
| +/// Represents a contextual status message.
|
| +/// The message can indicate an error or informational status, and refer to
|
| +/// specific parts of the containing object.
|
| +/// For example, the `Breakpoint.status` field can indicate an error referring
|
| +/// to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
| class StatusMessage {
|
| - /** Status message text. */
|
| + /// Status message text.
|
| FormatMessage description;
|
| - /** Distinguishes errors from informational messages. */
|
| +
|
| + /// Distinguishes errors from informational messages.
|
| core.bool isError;
|
| - /**
|
| - * Reference to which the message applies.
|
| - * Possible string values are:
|
| - * - "UNSPECIFIED" : Status doesn't refer to any particular input.
|
| - * - "BREAKPOINT_SOURCE_LOCATION" : Status applies to the breakpoint and is
|
| - * related to its location.
|
| - * - "BREAKPOINT_CONDITION" : Status applies to the breakpoint and is related
|
| - * to its condition.
|
| - * - "BREAKPOINT_EXPRESSION" : Status applies to the breakpoint and is related
|
| - * to its expressions.
|
| - * - "BREAKPOINT_AGE" : Status applies to the breakpoint and is related to its
|
| - * age.
|
| - * - "VARIABLE_NAME" : Status applies to the entire variable.
|
| - * - "VARIABLE_VALUE" : Status applies to variable value (variable name is
|
| - * valid).
|
| - */
|
| +
|
| + /// Reference to which the message applies.
|
| + /// Possible string values are:
|
| + /// - "UNSPECIFIED" : Status doesn't refer to any particular input.
|
| + /// - "BREAKPOINT_SOURCE_LOCATION" : Status applies to the breakpoint and is
|
| + /// related to its location.
|
| + /// - "BREAKPOINT_CONDITION" : Status applies to the breakpoint and is
|
| + /// related to its condition.
|
| + /// - "BREAKPOINT_EXPRESSION" : Status applies to the breakpoint and is
|
| + /// related to its expressions.
|
| + /// - "BREAKPOINT_AGE" : Status applies to the breakpoint and is related to
|
| + /// its age.
|
| + /// - "VARIABLE_NAME" : Status applies to the entire variable.
|
| + /// - "VARIABLE_VALUE" : Status applies to variable value (variable name is
|
| + /// valid).
|
| core.String refersTo;
|
|
|
| StatusMessage();
|
| @@ -1740,7 +1755,8 @@ class StatusMessage {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (description != null) {
|
| _json["description"] = (description).toJson();
|
| }
|
| @@ -1754,13 +1770,11 @@ class StatusMessage {
|
| }
|
| }
|
|
|
| -/** Request to update an active breakpoint. */
|
| +/// Request to update an active breakpoint.
|
| class UpdateActiveBreakpointRequest {
|
| - /**
|
| - * Updated breakpoint information.
|
| - * The field `id` must be set.
|
| - * The agent must echo all Breakpoint specification fields in the update.
|
| - */
|
| + /// Updated breakpoint information.
|
| + /// The field `id` must be set.
|
| + /// The agent must echo all Breakpoint specification fields in the update.
|
| Breakpoint breakpoint;
|
|
|
| UpdateActiveBreakpointRequest();
|
| @@ -1772,7 +1786,8 @@ class UpdateActiveBreakpointRequest {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (breakpoint != null) {
|
| _json["breakpoint"] = (breakpoint).toJson();
|
| }
|
| @@ -1780,182 +1795,179 @@ class UpdateActiveBreakpointRequest {
|
| }
|
| }
|
|
|
| -/**
|
| - * Response for updating an active breakpoint.
|
| - * The message is defined to allow future extensions.
|
| - */
|
| +/// Response for updating an active breakpoint.
|
| +/// The message is defined to allow future extensions.
|
| class UpdateActiveBreakpointResponse {
|
| -
|
| UpdateActiveBreakpointResponse();
|
|
|
| - UpdateActiveBreakpointResponse.fromJson(core.Map _json) {
|
| - }
|
| + UpdateActiveBreakpointResponse.fromJson(core.Map _json) {}
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents a variable or an argument possibly of a compound object type.
|
| - * Note how the following variables are represented:
|
| - *
|
| - * 1) A simple variable:
|
| - *
|
| - * int x = 5
|
| - *
|
| - * { name: "x", value: "5", type: "int" } // Captured variable
|
| - *
|
| - * 2) A compound object:
|
| - *
|
| - * struct T {
|
| - * int m1;
|
| - * int m2;
|
| - * };
|
| - * T x = { 3, 7 };
|
| - *
|
| - * { // Captured variable
|
| - * name: "x",
|
| - * type: "T",
|
| - * members { name: "m1", value: "3", type: "int" },
|
| - * members { name: "m2", value: "7", type: "int" }
|
| - * }
|
| - *
|
| - * 3) A pointer where the pointee was captured:
|
| - *
|
| - * T x = { 3, 7 };
|
| - * T* p = &x;
|
| - *
|
| - * { // Captured variable
|
| - * name: "p",
|
| - * type: "T*",
|
| - * value: "0x00500500",
|
| - * members { name: "m1", value: "3", type: "int" },
|
| - * members { name: "m2", value: "7", type: "int" }
|
| - * }
|
| - *
|
| - * 4) A pointer where the pointee was not captured:
|
| - *
|
| - * T* p = new T;
|
| - *
|
| - * { // Captured variable
|
| - * name: "p",
|
| - * type: "T*",
|
| - * value: "0x00400400"
|
| - * status { is_error: true, description { format: "unavailable" } }
|
| - * }
|
| - *
|
| - * The status should describe the reason for the missing value,
|
| - * such as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.
|
| - *
|
| - * Note that a null pointer should not have members.
|
| - *
|
| - * 5) An unnamed value:
|
| - *
|
| - * int* p = new int(7);
|
| - *
|
| - * { // Captured variable
|
| - * name: "p",
|
| - * value: "0x00500500",
|
| - * type: "int*",
|
| - * members { value: "7", type: "int" } }
|
| - *
|
| - * 6) An unnamed pointer where the pointee was not captured:
|
| - *
|
| - * int* p = new int(7);
|
| - * int** pp = &p;
|
| - *
|
| - * { // Captured variable
|
| - * name: "pp",
|
| - * value: "0x00500500",
|
| - * type: "int**",
|
| - * members {
|
| - * value: "0x00400400",
|
| - * type: "int*"
|
| - * status {
|
| - * is_error: true,
|
| - * description: { format: "unavailable" } }
|
| - * }
|
| - * }
|
| - * }
|
| - *
|
| - * To optimize computation, memory and network traffic, variables that
|
| - * repeat in the output multiple times can be stored once in a shared
|
| - * variable table and be referenced using the `var_table_index` field. The
|
| - * variables stored in the shared table are nameless and are essentially
|
| - * a partition of the complete variable. To reconstruct the complete
|
| - * variable, merge the referencing variable with the referenced variable.
|
| - *
|
| - * When using the shared variable table, the following variables:
|
| - *
|
| - * T x = { 3, 7 };
|
| - * T* p = &x;
|
| - * T& r = x;
|
| - *
|
| - * { name: "x", var_table_index: 3, type: "T" } // Captured variables
|
| - * { name: "p", value "0x00500500", type="T*", var_table_index: 3 }
|
| - * { name: "r", type="T&", var_table_index: 3 }
|
| - *
|
| - * { // Shared variable table entry #3:
|
| - * members { name: "m1", value: "3", type: "int" },
|
| - * members { name: "m2", value: "7", type: "int" }
|
| - * }
|
| - *
|
| - * Note that the pointer address is stored with the referencing variable
|
| - * and not with the referenced variable. This allows the referenced variable
|
| - * to be shared between pointers and references.
|
| - *
|
| - * The type field is optional. The debugger agent may or may not support it.
|
| - */
|
| +/// Represents a variable or an argument possibly of a compound object type.
|
| +/// Note how the following variables are represented:
|
| +///
|
| +/// 1) A simple variable:
|
| +///
|
| +/// int x = 5
|
| +///
|
| +/// { name: "x", value: "5", type: "int" } // Captured variable
|
| +///
|
| +/// 2) A compound object:
|
| +///
|
| +/// struct T {
|
| +/// int m1;
|
| +/// int m2;
|
| +/// };
|
| +/// T x = { 3, 7 };
|
| +///
|
| +/// { // Captured variable
|
| +/// name: "x",
|
| +/// type: "T",
|
| +/// members { name: "m1", value: "3", type: "int" },
|
| +/// members { name: "m2", value: "7", type: "int" }
|
| +/// }
|
| +///
|
| +/// 3) A pointer where the pointee was captured:
|
| +///
|
| +/// T x = { 3, 7 };
|
| +/// T* p = &x;
|
| +///
|
| +/// { // Captured variable
|
| +/// name: "p",
|
| +/// type: "T*",
|
| +/// value: "0x00500500",
|
| +/// members { name: "m1", value: "3", type: "int" },
|
| +/// members { name: "m2", value: "7", type: "int" }
|
| +/// }
|
| +///
|
| +/// 4) A pointer where the pointee was not captured:
|
| +///
|
| +/// T* p = new T;
|
| +///
|
| +/// { // Captured variable
|
| +/// name: "p",
|
| +/// type: "T*",
|
| +/// value: "0x00400400"
|
| +/// status { is_error: true, description { format: "unavailable" } }
|
| +/// }
|
| +///
|
| +/// The status should describe the reason for the missing value,
|
| +/// such as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.
|
| +///
|
| +/// Note that a null pointer should not have members.
|
| +///
|
| +/// 5) An unnamed value:
|
| +///
|
| +/// int* p = new int(7);
|
| +///
|
| +/// { // Captured variable
|
| +/// name: "p",
|
| +/// value: "0x00500500",
|
| +/// type: "int*",
|
| +/// members { value: "7", type: "int" } }
|
| +///
|
| +/// 6) An unnamed pointer where the pointee was not captured:
|
| +///
|
| +/// int* p = new int(7);
|
| +/// int** pp = &p;
|
| +///
|
| +/// { // Captured variable
|
| +/// name: "pp",
|
| +/// value: "0x00500500",
|
| +/// type: "int**",
|
| +/// members {
|
| +/// value: "0x00400400",
|
| +/// type: "int*"
|
| +/// status {
|
| +/// is_error: true,
|
| +/// description: { format: "unavailable" } }
|
| +/// }
|
| +/// }
|
| +/// }
|
| +///
|
| +/// To optimize computation, memory and network traffic, variables that
|
| +/// repeat in the output multiple times can be stored once in a shared
|
| +/// variable table and be referenced using the `var_table_index` field. The
|
| +/// variables stored in the shared table are nameless and are essentially
|
| +/// a partition of the complete variable. To reconstruct the complete
|
| +/// variable, merge the referencing variable with the referenced variable.
|
| +///
|
| +/// When using the shared variable table, the following variables:
|
| +///
|
| +/// T x = { 3, 7 };
|
| +/// T* p = &x;
|
| +/// T& r = x;
|
| +///
|
| +/// { name: "x", var_table_index: 3, type: "T" } // Captured variables
|
| +/// { name: "p", value "0x00500500", type="T*", var_table_index: 3 }
|
| +/// { name: "r", type="T&", var_table_index: 3 }
|
| +///
|
| +/// { // Shared variable table entry #3:
|
| +/// members { name: "m1", value: "3", type: "int" },
|
| +/// members { name: "m2", value: "7", type: "int" }
|
| +/// }
|
| +///
|
| +/// Note that the pointer address is stored with the referencing variable
|
| +/// and not with the referenced variable. This allows the referenced variable
|
| +/// to be shared between pointers and references.
|
| +///
|
| +/// The type field is optional. The debugger agent may or may not support it.
|
| class Variable {
|
| - /** Members contained or pointed to by the variable. */
|
| + /// Members contained or pointed to by the variable.
|
| core.List<Variable> members;
|
| - /** Name of the variable, if any. */
|
| +
|
| + /// Name of the variable, if any.
|
| core.String name;
|
| - /**
|
| - * Status associated with the variable. This field will usually stay
|
| - * unset. A status of a single variable only applies to that variable or
|
| - * expression. The rest of breakpoint data still remains valid. Variables
|
| - * might be reported in error state even when breakpoint is not in final
|
| - * state.
|
| - *
|
| - * The message may refer to variable name with `refers_to` set to
|
| - * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.
|
| - * In either case variable value and members will be unset.
|
| - *
|
| - * Example of error message applied to name: `Invalid expression syntax`.
|
| - *
|
| - * Example of information message applied to value: `Not captured`.
|
| - *
|
| - * Examples of error message applied to value:
|
| - *
|
| - * * `Malformed string`,
|
| - * * `Field f not found in class C`
|
| - * * `Null pointer dereference`
|
| - */
|
| +
|
| + /// Status associated with the variable. This field will usually stay
|
| + /// unset. A status of a single variable only applies to that variable or
|
| + /// expression. The rest of breakpoint data still remains valid. Variables
|
| + /// might be reported in error state even when breakpoint is not in final
|
| + /// state.
|
| + ///
|
| + /// The message may refer to variable name with `refers_to` set to
|
| + /// `VARIABLE_NAME`. Alternatively `refers_to` will be set to
|
| + /// `VARIABLE_VALUE`.
|
| + /// In either case variable value and members will be unset.
|
| + ///
|
| + /// Example of error message applied to name: `Invalid expression syntax`.
|
| + ///
|
| + /// Example of information message applied to value: `Not captured`.
|
| + ///
|
| + /// Examples of error message applied to value:
|
| + ///
|
| + /// * `Malformed string`,
|
| + /// * `Field f not found in class C`
|
| + /// * `Null pointer dereference`
|
| StatusMessage status;
|
| - /**
|
| - * Variable type (e.g. `MyClass`). If the variable is split with
|
| - * `var_table_index`, `type` goes next to `value`. The interpretation of
|
| - * a type is agent specific. It is recommended to include the dynamic type
|
| - * rather than a static type of an object.
|
| - */
|
| +
|
| + /// Variable type (e.g. `MyClass`). If the variable is split with
|
| + /// `var_table_index`, `type` goes next to `value`. The interpretation of
|
| + /// a type is agent specific. It is recommended to include the dynamic type
|
| + /// rather than a static type of an object.
|
| core.String type;
|
| - /** Simple value of the variable. */
|
| +
|
| + /// Simple value of the variable.
|
| core.String value;
|
| - /**
|
| - * Reference to a variable in the shared variable table. More than
|
| - * one variable can reference the same variable in the table. The
|
| - * `var_table_index` field is an index into `variable_table` in Breakpoint.
|
| - */
|
| +
|
| + /// Reference to a variable in the shared variable table. More than
|
| + /// one variable can reference the same variable in the table. The
|
| + /// `var_table_index` field is an index into `variable_table` in Breakpoint.
|
| core.int varTableIndex;
|
|
|
| Variable();
|
|
|
| Variable.fromJson(core.Map _json) {
|
| if (_json.containsKey("members")) {
|
| - members = _json["members"].map((value) => new Variable.fromJson(value)).toList();
|
| + members = _json["members"]
|
| + .map((value) => new Variable.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| @@ -1975,7 +1987,8 @@ class Variable {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (members != null) {
|
| _json["members"] = members.map((value) => (value).toJson()).toList();
|
| }
|
|
|