Index: discovery/googleapis/clouddebugger__v2.json |
diff --git a/discovery/googleapis/clouddebugger__v2.json b/discovery/googleapis/clouddebugger__v2.json |
index fd217dbae7cce0a1c61542eee2b01b3790644727..0546110256355c9931c1fc91d63b4694e14456cb 100644 |
--- a/discovery/googleapis/clouddebugger__v2.json |
+++ b/discovery/googleapis/clouddebugger__v2.json |
@@ -28,27 +28,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -104,13 +83,34 @@ |
"location": "query", |
"type": "string" |
}, |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"access_token": { |
"description": "OAuth access token.", |
"location": "query", |
"type": "string" |
}, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
} |
@@ -333,12 +333,6 @@ |
"breakpointId" |
], |
"parameters": { |
- "debuggeeId": { |
- "description": "ID of the debuggee whose breakpoint to get.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
"clientVersion": { |
"description": "The client version making the call.\nFollowing: `domain/type/version` (e.g., `google.com/intellij/v1`).", |
"location": "query", |
@@ -349,6 +343,12 @@ |
"location": "path", |
"required": true, |
"type": "string" |
+ }, |
+ "debuggeeId": { |
+ "description": "ID of the debuggee whose breakpoint to get.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
} |
}, |
"path": "v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}", |
@@ -425,380 +425,117 @@ |
} |
} |
}, |
- "revision": "20170208", |
+ "revision": "20170214", |
"rootUrl": "https://clouddebugger.googleapis.com/", |
"schemas": { |
- "RegisterDebuggeeRequest": { |
- "description": "Request to register a debuggee.", |
- "id": "RegisterDebuggeeRequest", |
- "properties": { |
- "debuggee": { |
- "$ref": "Debuggee", |
- "description": "Debuggee information to register.\nThe fields `project`, `uniquifier`, `description` and `agent_version`\nof the debuggee must be set." |
- } |
- }, |
- "type": "object" |
- }, |
- "RegisterDebuggeeResponse": { |
- "description": "Response for registering a debuggee.", |
- "id": "RegisterDebuggeeResponse", |
- "properties": { |
- "debuggee": { |
- "$ref": "Debuggee", |
- "description": "Debuggee resource.\nThe field `id` is guranteed to be set (in addition to the echoed fields)." |
- } |
- }, |
- "type": "object" |
- }, |
- "GetBreakpointResponse": { |
- "description": "Response for getting breakpoint information.", |
- "id": "GetBreakpointResponse", |
- "properties": { |
- "breakpoint": { |
- "$ref": "Breakpoint", |
- "description": "Complete breakpoint state.\nThe fields `id` and `location` are guaranteed to be set." |
- } |
- }, |
- "type": "object" |
- }, |
- "StatusMessage": { |
- "description": "Represents a contextual status message.\nThe message can indicate an error or informational status, and refer to\nspecific parts of the containing object.\nFor example, the `Breakpoint.status` field can indicate an error referring\nto the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.", |
- "id": "StatusMessage", |
+ "Debuggee": { |
+ "description": "Represents the application to debug. The application may include one or more\nreplicated processes executing the same code. Each of these processes is\nattached with a debugger agent, carrying out the debugging commands.\nThe agents attached to the same debuggee are identified by using exactly the\nsame field values when registering.", |
+ "id": "Debuggee", |
"properties": { |
- "isError": { |
- "description": "Distinguishes errors from informational messages.", |
- "type": "boolean" |
+ "uniquifier": { |
+ "description": "Debuggee uniquifier within the project.\nAny string that identifies the application within the project can be used.\nIncluding environment and version or build IDs is recommended.", |
+ "type": "string" |
}, |
"description": { |
- "$ref": "FormatMessage", |
- "description": "Status message text." |
- }, |
- "refersTo": { |
- "description": "Reference to which the message applies.", |
- "enum": [ |
- "UNSPECIFIED", |
- "BREAKPOINT_SOURCE_LOCATION", |
- "BREAKPOINT_CONDITION", |
- "BREAKPOINT_EXPRESSION", |
- "BREAKPOINT_AGE", |
- "VARIABLE_NAME", |
- "VARIABLE_VALUE" |
- ], |
- "enumDescriptions": [ |
- "Status doesn't refer to any particular input.", |
- "Status applies to the breakpoint and is related to its location.", |
- "Status applies to the breakpoint and is related to its condition.", |
- "Status applies to the breakpoint and is related to its expressions.", |
- "Status applies to the breakpoint and is related to its age.", |
- "Status applies to the entire variable.", |
- "Status applies to variable value (variable name is valid)." |
- ], |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "GitSourceContext": { |
- "description": "A GitSourceContext denotes a particular revision in a third party Git\nrepository (e.g. GitHub).", |
- "id": "GitSourceContext", |
- "properties": { |
- "revisionId": { |
- "description": "Git commit hash.\nrequired.", |
+ "description": "Human readable description of the debuggee.\nIncluding a human-readable project name, environment name and version\ninformation is recommended.", |
"type": "string" |
}, |
- "url": { |
- "description": "Git repository URL.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "Variable": { |
- "description": "Represents a variable or an argument possibly of a compound object type.\nNote how the following variables are represented:\n\n1) A simple variable:\n\n int x = 5\n\n { name: \"x\", value: \"5\", type: \"int\" } // Captured variable\n\n2) A compound object:\n\n struct T {\n int m1;\n int m2;\n };\n T x = { 3, 7 };\n\n { // Captured variable\n name: \"x\",\n type: \"T\",\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\n3) A pointer where the pointee was captured:\n\n T x = { 3, 7 };\n T* p = &x;\n\n { // Captured variable\n name: \"p\",\n type: \"T*\",\n value: \"0x00500500\",\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\n4) A pointer where the pointee was not captured:\n\n T* p = new T;\n\n { // Captured variable\n name: \"p\",\n type: \"T*\",\n value: \"0x00400400\"\n status { is_error: true, description { format: \"unavailable\" } }\n }\n\nThe status should describe the reason for the missing value,\nsuch as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.\n\nNote that a null pointer should not have members.\n\n5) An unnamed value:\n\n int* p = new int(7);\n\n { // Captured variable\n name: \"p\",\n value: \"0x00500500\",\n type: \"int*\",\n members { value: \"7\", type: \"int\" } }\n\n6) An unnamed pointer where the pointee was not captured:\n\n int* p = new int(7);\n int** pp = &p;\n\n { // Captured variable\n name: \"pp\",\n value: \"0x00500500\",\n type: \"int**\",\n members {\n value: \"0x00400400\",\n type: \"int*\"\n status {\n is_error: true,\n description: { format: \"unavailable\" } }\n }\n }\n }\n\nTo optimize computation, memory and network traffic, variables that\nrepeat in the output multiple times can be stored once in a shared\nvariable table and be referenced using the `var_table_index` field. The\nvariables stored in the shared table are nameless and are essentially\na partition of the complete variable. To reconstruct the complete\nvariable, merge the referencing variable with the referenced variable.\n\nWhen using the shared variable table, the following variables:\n\n T x = { 3, 7 };\n T* p = &x;\n T& r = x;\n\n { name: \"x\", var_table_index: 3, type: \"T\" } // Captured variables\n { name: \"p\", value \"0x00500500\", type=\"T*\", var_table_index: 3 }\n { name: \"r\", type=\"T&\", var_table_index: 3 }\n\n { // Shared variable table entry #3:\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\nNote that the pointer address is stored with the referencing variable\nand not with the referenced variable. This allows the referenced variable\nto be shared between pointers and references.\n\nThe type field is optional. The debugger agent may or may not support it.", |
- "id": "Variable", |
- "properties": { |
- "members": { |
- "description": "Members contained or pointed to by the variable.", |
+ "sourceContexts": { |
+ "description": "References to the locations and revisions of the source code used in the\ndeployed application.\n\nNOTE: This field is deprecated. Consumers should use\n`ext_source_contexts` if it is not empty. Debug agents should populate\nboth this field and `ext_source_contexts`.", |
"items": { |
- "$ref": "Variable" |
+ "$ref": "SourceContext" |
+ }, |
+ "type": "array" |
+ }, |
+ "extSourceContexts": { |
+ "description": "References to the locations and revisions of the source code used in the\ndeployed application.\n\nContexts describing a remote repo related to the source code\nhave a `category` label of `remote_repo`. Source snapshot source\ncontexts have a `category` of `snapshot`.", |
+ "items": { |
+ "$ref": "ExtendedSourceContext" |
}, |
"type": "array" |
}, |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "A set of custom debuggee properties, populated by the agent, to be\ndisplayed to the user.", |
+ "type": "object" |
+ }, |
+ "isInactive": { |
+ "description": "If set to `true`, indicates that the debuggee is considered as inactive by\nthe Controller service.", |
+ "type": "boolean" |
+ }, |
"status": { |
"$ref": "StatusMessage", |
- "description": "Status associated with the variable. This field will usually stay\nunset. A status of a single variable only applies to that variable or\nexpression. The rest of breakpoint data still remains valid. Variables\nmight be reported in error state even when breakpoint is not in final\nstate.\n\nThe message may refer to variable name with `refers_to` set to\n`VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.\nIn either case variable value and members will be unset.\n\nExample of error message applied to name: `Invalid expression syntax`.\n\nExample of information message applied to value: `Not captured`.\n\nExamples of error message applied to value:\n\n* `Malformed string`,\n* `Field f not found in class C`\n* `Null pointer dereference`" |
+ "description": "Human readable message to be displayed to the user about this debuggee.\nAbsence of this field indicates no status. The message can be either\ninformational or an error status." |
}, |
- "name": { |
- "description": "Name of the variable, if any.", |
+ "project": { |
+ "description": "Project the debuggee is associated with.\nUse the project number when registering a Google Cloud Platform project.", |
"type": "string" |
}, |
- "type": { |
- "description": "Variable type (e.g. `MyClass`). If the variable is split with\n`var_table_index`, `type` goes next to `value`. The interpretation of\na type is agent specific. It is recommended to include the dynamic type\nrather than a static type of an object.", |
- "type": "string" |
+ "isDisabled": { |
+ "description": "If set to `true`, indicates that the agent should disable itself and\ndetach from the debuggee.", |
+ "type": "boolean" |
}, |
- "varTableIndex": { |
- "description": "Reference to a variable in the shared variable table. More than\none variable can reference the same variable in the table. The\n`var_table_index` field is an index into `variable_table` in Breakpoint.", |
- "format": "int32", |
- "type": "integer" |
+ "agentVersion": { |
+ "description": "Version ID of the agent release. The version ID is structured as\nfollowing: `domain/type/vmajor.minor` (for example\n`google.com/gcp-java/v1.1`).", |
+ "type": "string" |
}, |
- "value": { |
- "description": "Simple value of the variable.", |
+ "id": { |
+ "description": "Unique identifier for the debuggee generated by the controller service.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "StackFrame": { |
- "description": "Represents a stack frame context.", |
- "id": "StackFrame", |
+ "ListActiveBreakpointsResponse": { |
+ "description": "Response for listing active breakpoints.", |
+ "id": "ListActiveBreakpointsResponse", |
"properties": { |
- "locals": { |
- "description": "Set of local variables at the stack frame location.\nNote that this might not be populated for all stack frames.", |
- "items": { |
- "$ref": "Variable" |
- }, |
- "type": "array" |
- }, |
- "location": { |
- "$ref": "SourceLocation", |
- "description": "Source location of the call site." |
- }, |
- "function": { |
- "description": "Demangled function name at the call site.", |
+ "nextWaitToken": { |
+ "description": "A wait token that can be used in the next method call to block until\nthe list of breakpoints changes.", |
"type": "string" |
}, |
- "arguments": { |
- "description": "Set of arguments passed to this function.\nNote that this might not be populated for all stack frames.", |
+ "breakpoints": { |
+ "description": "List of all active breakpoints.\nThe fields `id` and `location` are guaranteed to be set on each breakpoint.", |
"items": { |
- "$ref": "Variable" |
+ "$ref": "Breakpoint" |
}, |
"type": "array" |
+ }, |
+ "waitExpired": { |
+ "description": "The `wait_expired` field is set to true by the server when the\nrequest times out and the field `success_on_timeout` is set to true.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "RepoId": { |
- "description": "A unique identifier for a cloud repo.", |
- "id": "RepoId", |
+ "ProjectRepoId": { |
+ "description": "Selects a repo using a Google Cloud Platform project ID\n(e.g. winged-cargo-31) and a repo name within that project.", |
+ "id": "ProjectRepoId", |
"properties": { |
- "projectRepoId": { |
- "$ref": "ProjectRepoId", |
- "description": "A combination of a project ID and a repo name." |
+ "projectId": { |
+ "description": "The ID of the project.", |
+ "type": "string" |
}, |
- "uid": { |
- "description": "A server-assigned, globally unique identifier.", |
+ "repoName": { |
+ "description": "The name of the repo. Leave empty for the default repo.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "FormatMessage": { |
- "description": "Represents a message with parameters.", |
- "id": "FormatMessage", |
+ "CloudWorkspaceSourceContext": { |
+ "description": "A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.", |
+ "id": "CloudWorkspaceSourceContext", |
"properties": { |
- "format": { |
- "description": "Format template for the message. The `format` uses placeholders `$0`,\n`$1`, etc. to reference parameters. `$$` can be used to denote the `$`\ncharacter.\n\nExamples:\n\n* `Failed to load '$0' which helps debug $1 the first time it\n is loaded. Again, $0 is very important.`\n* `Please pay $$10 to use $0 instead of $1.`", |
- "type": "string" |
+ "workspaceId": { |
+ "$ref": "CloudWorkspaceId", |
+ "description": "The ID of the workspace." |
}, |
- "parameters": { |
- "description": "Optional parameters to be embedded into the message.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "ExtendedSourceContext": { |
- "description": "An ExtendedSourceContext is a SourceContext combined with additional\ndetails describing the context.", |
- "id": "ExtendedSourceContext", |
- "properties": { |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Labels with user defined metadata.", |
- "type": "object" |
- }, |
- "context": { |
- "$ref": "SourceContext", |
- "description": "Any source context." |
- } |
- }, |
- "type": "object" |
- }, |
- "AliasContext": { |
- "description": "An alias to a repo revision.", |
- "id": "AliasContext", |
- "properties": { |
- "name": { |
- "description": "The alias name.", |
- "type": "string" |
- }, |
- "kind": { |
- "description": "The alias kind.", |
- "enum": [ |
- "ANY", |
- "FIXED", |
- "MOVABLE", |
- "OTHER" |
- ], |
- "enumDescriptions": [ |
- "Do not use.", |
- "Git tag", |
- "Git branch", |
- "OTHER is used to specify non-standard aliases, those not of the kinds\nabove. For example, if a Git repo has a ref named \"refs/foo/bar\", it\nis considered to be of kind OTHER." |
- ], |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListDebuggeesResponse": { |
- "description": "Response for listing debuggees.", |
- "id": "ListDebuggeesResponse", |
- "properties": { |
- "debuggees": { |
- "description": "List of debuggees accessible to the calling user.\nNote that the `description` field is the only human readable field\nthat should be displayed to the user.\nThe fields `debuggee.id` and `description` fields are guaranteed to be\nset on each debuggee.", |
- "items": { |
- "$ref": "Debuggee" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Empty": { |
- "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
- "id": "Empty", |
- "properties": {}, |
- "type": "object" |
- }, |
- "SourceLocation": { |
- "description": "Represents a location in the source code.", |
- "id": "SourceLocation", |
- "properties": { |
- "path": { |
- "description": "Path to the source file within the source context of the target binary.", |
- "type": "string" |
- }, |
- "line": { |
- "description": "Line inside the file. The first line in the file has the value `1`.", |
- "format": "int32", |
- "type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "Debuggee": { |
- "description": "Represents the application to debug. The application may include one or more\nreplicated processes executing the same code. Each of these processes is\nattached with a debugger agent, carrying out the debugging commands.\nThe agents attached to the same debuggee are identified by using exactly the\nsame field values when registering.", |
- "id": "Debuggee", |
- "properties": { |
- "description": { |
- "description": "Human readable description of the debuggee.\nIncluding a human-readable project name, environment name and version\ninformation is recommended.", |
- "type": "string" |
- }, |
- "uniquifier": { |
- "description": "Debuggee uniquifier within the project.\nAny string that identifies the application within the project can be used.\nIncluding environment and version or build IDs is recommended.", |
- "type": "string" |
- }, |
- "sourceContexts": { |
- "description": "References to the locations and revisions of the source code used in the\ndeployed application.\n\nNOTE: This field is deprecated. Consumers should use\n`ext_source_contexts` if it is not empty. Debug agents should populate\nboth this field and `ext_source_contexts`.", |
- "items": { |
- "$ref": "SourceContext" |
- }, |
- "type": "array" |
- }, |
- "extSourceContexts": { |
- "description": "References to the locations and revisions of the source code used in the\ndeployed application.\n\nContexts describing a remote repo related to the source code\nhave a `category` label of `remote_repo`. Source snapshot source\ncontexts have a `category` of `snapshot`.", |
- "items": { |
- "$ref": "ExtendedSourceContext" |
- }, |
- "type": "array" |
- }, |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "A set of custom debuggee properties, populated by the agent, to be\ndisplayed to the user.", |
- "type": "object" |
- }, |
- "isInactive": { |
- "description": "If set to `true`, indicates that the debuggee is considered as inactive by\nthe Controller service.", |
- "type": "boolean" |
- }, |
- "status": { |
- "$ref": "StatusMessage", |
- "description": "Human readable message to be displayed to the user about this debuggee.\nAbsence of this field indicates no status. The message can be either\ninformational or an error status." |
- }, |
- "project": { |
- "description": "Project the debuggee is associated with.\nUse the project number when registering a Google Cloud Platform project.", |
- "type": "string" |
- }, |
- "isDisabled": { |
- "description": "If set to `true`, indicates that the agent should disable itself and\ndetach from the debuggee.", |
- "type": "boolean" |
- }, |
- "agentVersion": { |
- "description": "Version ID of the agent release. The version ID is structured as\nfollowing: `domain/type/vmajor.minor` (for example\n`google.com/gcp-java/v1.1`).", |
- "type": "string" |
- }, |
- "id": { |
- "description": "Unique identifier for the debuggee generated by the controller service.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListActiveBreakpointsResponse": { |
- "description": "Response for listing active breakpoints.", |
- "id": "ListActiveBreakpointsResponse", |
- "properties": { |
- "nextWaitToken": { |
- "description": "A wait token that can be used in the next method call to block until\nthe list of breakpoints changes.", |
- "type": "string" |
- }, |
- "breakpoints": { |
- "description": "List of all active breakpoints.\nThe fields `id` and `location` are guaranteed to be set on each breakpoint.", |
- "items": { |
- "$ref": "Breakpoint" |
- }, |
- "type": "array" |
- }, |
- "waitExpired": { |
- "description": "The `wait_expired` field is set to true by the server when the\nrequest times out and the field `success_on_timeout` is set to true.", |
- "type": "boolean" |
- } |
- }, |
- "type": "object" |
- }, |
- "ProjectRepoId": { |
- "description": "Selects a repo using a Google Cloud Platform project ID\n(e.g. winged-cargo-31) and a repo name within that project.", |
- "id": "ProjectRepoId", |
- "properties": { |
- "projectId": { |
- "description": "The ID of the project.", |
- "type": "string" |
- }, |
- "repoName": { |
- "description": "The name of the repo. Leave empty for the default repo.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "CloudWorkspaceSourceContext": { |
- "description": "A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.", |
- "id": "CloudWorkspaceSourceContext", |
- "properties": { |
"snapshotId": { |
"description": "The ID of the snapshot.\nAn empty snapshot_id refers to the most recent snapshot.", |
"type": "string" |
- }, |
- "workspaceId": { |
- "$ref": "CloudWorkspaceId", |
- "description": "The ID of the workspace." |
} |
}, |
"type": "object" |
@@ -813,14 +550,6 @@ |
"description": "A SourceContext referring to a Gerrit project.", |
"id": "GerritSourceContext", |
"properties": { |
- "gerritProject": { |
- "description": "The full project name within the host. Projects may be nested, so\n\"project/subproject\" is a valid project name.\nThe \"repo name\" is hostURI/project.", |
- "type": "string" |
- }, |
- "aliasContext": { |
- "$ref": "AliasContext", |
- "description": "An alias, which may be a branch or tag." |
- }, |
"hostUri": { |
"description": "The URI of a running Gerrit instance.", |
"type": "string" |
@@ -832,6 +561,14 @@ |
"aliasName": { |
"description": "The name of an alias (branch, tag, etc.).", |
"type": "string" |
+ }, |
+ "gerritProject": { |
+ "description": "The full project name within the host. Projects may be nested, so\n\"project/subproject\" is a valid project name.\nThe \"repo name\" is hostURI/project.", |
+ "type": "string" |
+ }, |
+ "aliasContext": { |
+ "$ref": "AliasContext", |
+ "description": "An alias, which may be a branch or tag." |
} |
}, |
"type": "object" |
@@ -873,45 +610,6 @@ |
"description": "Represents the breakpoint specification, status and results.", |
"id": "Breakpoint", |
"properties": { |
- "location": { |
- "$ref": "SourceLocation", |
- "description": "Breakpoint source location." |
- }, |
- "finalTime": { |
- "description": "Time this breakpoint was finalized as seen by the server in seconds\nresolution.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "variableTable": { |
- "description": "The `variable_table` exists to aid with computation, memory and network\ntraffic optimization. It enables storing a variable once and reference\nit from multiple variables, including variables stored in the\n`variable_table` itself.\nFor example, the same `this` object, which may appear at many levels of\nthe stack, can have all of its data stored once in this table. The\nstack frame variables then would hold only a reference to it.\n\nThe variable `var_table_index` field is an index into this repeated field.\nThe stored objects are nameless and get their name from the referencing\nvariable. The effective variable is a merge of the referencing variable\nand the referenced variable.", |
- "items": { |
- "$ref": "Variable" |
- }, |
- "type": "array" |
- }, |
- "createTime": { |
- "description": "Time this breakpoint was created by the server in seconds resolution.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "A set of custom breakpoint properties, populated by the agent, to be\ndisplayed to the user.", |
- "type": "object" |
- }, |
- "logMessageFormat": { |
- "description": "Only relevant when action is `LOG`. Defines the message to log when\nthe breakpoint hits. The message may include parameter placeholders `$0`,\n`$1`, etc. These placeholders are replaced with the evaluated value\nof the appropriate expression. Expressions not referenced in\n`log_message_format` are not logged.\n\nExample: `Message received, id = $0, count = $1` with\n`expressions` = `[ message.id, message.count ]`.", |
- "type": "string" |
- }, |
- "expressions": { |
- "description": "List of read-only expressions to evaluate at the breakpoint location.\nThe expressions are composed using expressions in the programming language\nat the source location. If the breakpoint action is `LOG`, the evaluated\nexpressions are included in log statements.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
"evaluatedExpressions": { |
"description": "Values of evaluated expressions at breakpoint time.\nThe evaluated expressions appear in exactly the same order they\nare listed in the `expressions` field.\nThe `name` field holds the original expression text, the `value` or\n`members` field holds the result of the evaluated expression.\nIf the expression cannot be evaluated, the `status` inside the `Variable`\nwill indicate an error and contain the error text.", |
"items": { |
@@ -971,12 +669,51 @@ |
"id": { |
"description": "Breakpoint identifier, unique in the scope of the debuggee.", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "SetBreakpointResponse": { |
- "description": "Response for setting a breakpoint.", |
+ }, |
+ "location": { |
+ "$ref": "SourceLocation", |
+ "description": "Breakpoint source location." |
+ }, |
+ "finalTime": { |
+ "description": "Time this breakpoint was finalized as seen by the server in seconds\nresolution.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "variableTable": { |
+ "description": "The `variable_table` exists to aid with computation, memory and network\ntraffic optimization. It enables storing a variable once and reference\nit from multiple variables, including variables stored in the\n`variable_table` itself.\nFor example, the same `this` object, which may appear at many levels of\nthe stack, can have all of its data stored once in this table. The\nstack frame variables then would hold only a reference to it.\n\nThe variable `var_table_index` field is an index into this repeated field.\nThe stored objects are nameless and get their name from the referencing\nvariable. The effective variable is a merge of the referencing variable\nand the referenced variable.", |
+ "items": { |
+ "$ref": "Variable" |
+ }, |
+ "type": "array" |
+ }, |
+ "createTime": { |
+ "description": "Time this breakpoint was created by the server in seconds resolution.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "logMessageFormat": { |
+ "description": "Only relevant when action is `LOG`. Defines the message to log when\nthe breakpoint hits. The message may include parameter placeholders `$0`,\n`$1`, etc. These placeholders are replaced with the evaluated value\nof the appropriate expression. Expressions not referenced in\n`log_message_format` are not logged.\n\nExample: `Message received, id = $0, count = $1` with\n`expressions` = `[ message.id, message.count ]`.", |
+ "type": "string" |
+ }, |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "A set of custom breakpoint properties, populated by the agent, to be\ndisplayed to the user.", |
+ "type": "object" |
+ }, |
+ "expressions": { |
+ "description": "List of read-only expressions to evaluate at the breakpoint location.\nThe expressions are composed using expressions in the programming language\nat the source location. If the breakpoint action is `LOG`, the evaluated\nexpressions are included in log statements.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SetBreakpointResponse": { |
+ "description": "Response for setting a breakpoint.", |
"id": "SetBreakpointResponse", |
"properties": { |
"breakpoint": { |
@@ -1024,6 +761,14 @@ |
"description": "A CloudRepoSourceContext denotes a particular revision in a cloud\nrepo (a repo hosted by the Google Cloud Platform).", |
"id": "CloudRepoSourceContext", |
"properties": { |
+ "revisionId": { |
+ "description": "A revision ID.", |
+ "type": "string" |
+ }, |
+ "aliasName": { |
+ "description": "The name of an alias (branch, tag, etc.).", |
+ "type": "string" |
+ }, |
"repoId": { |
"$ref": "RepoId", |
"description": "The ID of the repo." |
@@ -1031,17 +776,272 @@ |
"aliasContext": { |
"$ref": "AliasContext", |
"description": "An alias, which may be a branch or tag." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RegisterDebuggeeResponse": { |
+ "description": "Response for registering a debuggee.", |
+ "id": "RegisterDebuggeeResponse", |
+ "properties": { |
+ "debuggee": { |
+ "$ref": "Debuggee", |
+ "description": "Debuggee resource.\nThe field `id` is guranteed to be set (in addition to the echoed fields)." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RegisterDebuggeeRequest": { |
+ "description": "Request to register a debuggee.", |
+ "id": "RegisterDebuggeeRequest", |
+ "properties": { |
+ "debuggee": { |
+ "$ref": "Debuggee", |
+ "description": "Debuggee information to register.\nThe fields `project`, `uniquifier`, `description` and `agent_version`\nof the debuggee must be set." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "GetBreakpointResponse": { |
+ "description": "Response for getting breakpoint information.", |
+ "id": "GetBreakpointResponse", |
+ "properties": { |
+ "breakpoint": { |
+ "$ref": "Breakpoint", |
+ "description": "Complete breakpoint state.\nThe fields `id` and `location` are guaranteed to be set." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "StatusMessage": { |
+ "description": "Represents a contextual status message.\nThe message can indicate an error or informational status, and refer to\nspecific parts of the containing object.\nFor example, the `Breakpoint.status` field can indicate an error referring\nto the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.", |
+ "id": "StatusMessage", |
+ "properties": { |
+ "isError": { |
+ "description": "Distinguishes errors from informational messages.", |
+ "type": "boolean" |
}, |
+ "description": { |
+ "$ref": "FormatMessage", |
+ "description": "Status message text." |
+ }, |
+ "refersTo": { |
+ "description": "Reference to which the message applies.", |
+ "enum": [ |
+ "UNSPECIFIED", |
+ "BREAKPOINT_SOURCE_LOCATION", |
+ "BREAKPOINT_CONDITION", |
+ "BREAKPOINT_EXPRESSION", |
+ "BREAKPOINT_AGE", |
+ "VARIABLE_NAME", |
+ "VARIABLE_VALUE" |
+ ], |
+ "enumDescriptions": [ |
+ "Status doesn't refer to any particular input.", |
+ "Status applies to the breakpoint and is related to its location.", |
+ "Status applies to the breakpoint and is related to its condition.", |
+ "Status applies to the breakpoint and is related to its expressions.", |
+ "Status applies to the breakpoint and is related to its age.", |
+ "Status applies to the entire variable.", |
+ "Status applies to variable value (variable name is valid)." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "GitSourceContext": { |
+ "description": "A GitSourceContext denotes a particular revision in a third party Git\nrepository (e.g. GitHub).", |
+ "id": "GitSourceContext", |
+ "properties": { |
"revisionId": { |
- "description": "A revision ID.", |
+ "description": "Git commit hash.\nrequired.", |
"type": "string" |
}, |
- "aliasName": { |
- "description": "The name of an alias (branch, tag, etc.).", |
+ "url": { |
+ "description": "Git repository URL.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Variable": { |
+ "description": "Represents a variable or an argument possibly of a compound object type.\nNote how the following variables are represented:\n\n1) A simple variable:\n\n int x = 5\n\n { name: \"x\", value: \"5\", type: \"int\" } // Captured variable\n\n2) A compound object:\n\n struct T {\n int m1;\n int m2;\n };\n T x = { 3, 7 };\n\n { // Captured variable\n name: \"x\",\n type: \"T\",\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\n3) A pointer where the pointee was captured:\n\n T x = { 3, 7 };\n T* p = &x;\n\n { // Captured variable\n name: \"p\",\n type: \"T*\",\n value: \"0x00500500\",\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\n4) A pointer where the pointee was not captured:\n\n T* p = new T;\n\n { // Captured variable\n name: \"p\",\n type: \"T*\",\n value: \"0x00400400\"\n status { is_error: true, description { format: \"unavailable\" } }\n }\n\nThe status should describe the reason for the missing value,\nsuch as `<optimized out>`, `<inaccessible>`, `<pointers limit reached>`.\n\nNote that a null pointer should not have members.\n\n5) An unnamed value:\n\n int* p = new int(7);\n\n { // Captured variable\n name: \"p\",\n value: \"0x00500500\",\n type: \"int*\",\n members { value: \"7\", type: \"int\" } }\n\n6) An unnamed pointer where the pointee was not captured:\n\n int* p = new int(7);\n int** pp = &p;\n\n { // Captured variable\n name: \"pp\",\n value: \"0x00500500\",\n type: \"int**\",\n members {\n value: \"0x00400400\",\n type: \"int*\"\n status {\n is_error: true,\n description: { format: \"unavailable\" } }\n }\n }\n }\n\nTo optimize computation, memory and network traffic, variables that\nrepeat in the output multiple times can be stored once in a shared\nvariable table and be referenced using the `var_table_index` field. The\nvariables stored in the shared table are nameless and are essentially\na partition of the complete variable. To reconstruct the complete\nvariable, merge the referencing variable with the referenced variable.\n\nWhen using the shared variable table, the following variables:\n\n T x = { 3, 7 };\n T* p = &x;\n T& r = x;\n\n { name: \"x\", var_table_index: 3, type: \"T\" } // Captured variables\n { name: \"p\", value \"0x00500500\", type=\"T*\", var_table_index: 3 }\n { name: \"r\", type=\"T&\", var_table_index: 3 }\n\n { // Shared variable table entry #3:\n members { name: \"m1\", value: \"3\", type: \"int\" },\n members { name: \"m2\", value: \"7\", type: \"int\" }\n }\n\nNote that the pointer address is stored with the referencing variable\nand not with the referenced variable. This allows the referenced variable\nto be shared between pointers and references.\n\nThe type field is optional. The debugger agent may or may not support it.", |
+ "id": "Variable", |
+ "properties": { |
+ "members": { |
+ "description": "Members contained or pointed to by the variable.", |
+ "items": { |
+ "$ref": "Variable" |
+ }, |
+ "type": "array" |
+ }, |
+ "status": { |
+ "$ref": "StatusMessage", |
+ "description": "Status associated with the variable. This field will usually stay\nunset. A status of a single variable only applies to that variable or\nexpression. The rest of breakpoint data still remains valid. Variables\nmight be reported in error state even when breakpoint is not in final\nstate.\n\nThe message may refer to variable name with `refers_to` set to\n`VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`.\nIn either case variable value and members will be unset.\n\nExample of error message applied to name: `Invalid expression syntax`.\n\nExample of information message applied to value: `Not captured`.\n\nExamples of error message applied to value:\n\n* `Malformed string`,\n* `Field f not found in class C`\n* `Null pointer dereference`" |
+ }, |
+ "name": { |
+ "description": "Name of the variable, if any.", |
+ "type": "string" |
+ }, |
+ "type": { |
+ "description": "Variable type (e.g. `MyClass`). If the variable is split with\n`var_table_index`, `type` goes next to `value`. The interpretation of\na type is agent specific. It is recommended to include the dynamic type\nrather than a static type of an object.", |
+ "type": "string" |
+ }, |
+ "varTableIndex": { |
+ "description": "Reference to a variable in the shared variable table. More than\none variable can reference the same variable in the table. The\n`var_table_index` field is an index into `variable_table` in Breakpoint.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "value": { |
+ "description": "Simple value of the variable.", |
"type": "string" |
} |
}, |
"type": "object" |
+ }, |
+ "StackFrame": { |
+ "description": "Represents a stack frame context.", |
+ "id": "StackFrame", |
+ "properties": { |
+ "arguments": { |
+ "description": "Set of arguments passed to this function.\nNote that this might not be populated for all stack frames.", |
+ "items": { |
+ "$ref": "Variable" |
+ }, |
+ "type": "array" |
+ }, |
+ "locals": { |
+ "description": "Set of local variables at the stack frame location.\nNote that this might not be populated for all stack frames.", |
+ "items": { |
+ "$ref": "Variable" |
+ }, |
+ "type": "array" |
+ }, |
+ "location": { |
+ "$ref": "SourceLocation", |
+ "description": "Source location of the call site." |
+ }, |
+ "function": { |
+ "description": "Demangled function name at the call site.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RepoId": { |
+ "description": "A unique identifier for a cloud repo.", |
+ "id": "RepoId", |
+ "properties": { |
+ "projectRepoId": { |
+ "$ref": "ProjectRepoId", |
+ "description": "A combination of a project ID and a repo name." |
+ }, |
+ "uid": { |
+ "description": "A server-assigned, globally unique identifier.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "FormatMessage": { |
+ "description": "Represents a message with parameters.", |
+ "id": "FormatMessage", |
+ "properties": { |
+ "format": { |
+ "description": "Format template for the message. The `format` uses placeholders `$0`,\n`$1`, etc. to reference parameters. `$$` can be used to denote the `$`\ncharacter.\n\nExamples:\n\n* `Failed to load '$0' which helps debug $1 the first time it\n is loaded. Again, $0 is very important.`\n* `Please pay $$10 to use $0 instead of $1.`", |
+ "type": "string" |
+ }, |
+ "parameters": { |
+ "description": "Optional parameters to be embedded into the message.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ExtendedSourceContext": { |
+ "description": "An ExtendedSourceContext is a SourceContext combined with additional\ndetails describing the context.", |
+ "id": "ExtendedSourceContext", |
+ "properties": { |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Labels with user defined metadata.", |
+ "type": "object" |
+ }, |
+ "context": { |
+ "$ref": "SourceContext", |
+ "description": "Any source context." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListDebuggeesResponse": { |
+ "description": "Response for listing debuggees.", |
+ "id": "ListDebuggeesResponse", |
+ "properties": { |
+ "debuggees": { |
+ "description": "List of debuggees accessible to the calling user.\nNote that the `description` field is the only human readable field\nthat should be displayed to the user.\nThe fields `debuggee.id` and `description` fields are guaranteed to be\nset on each debuggee.", |
+ "items": { |
+ "$ref": "Debuggee" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "AliasContext": { |
+ "description": "An alias to a repo revision.", |
+ "id": "AliasContext", |
+ "properties": { |
+ "name": { |
+ "description": "The alias name.", |
+ "type": "string" |
+ }, |
+ "kind": { |
+ "description": "The alias kind.", |
+ "enum": [ |
+ "ANY", |
+ "FIXED", |
+ "MOVABLE", |
+ "OTHER" |
+ ], |
+ "enumDescriptions": [ |
+ "Do not use.", |
+ "Git tag", |
+ "Git branch", |
+ "OTHER is used to specify non-standard aliases, those not of the kinds\nabove. For example, if a Git repo has a ref named \"refs/foo/bar\", it\nis considered to be of kind OTHER." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
+ "id": "Empty", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
+ "SourceLocation": { |
+ "description": "Represents a location in the source code.", |
+ "id": "SourceLocation", |
+ "properties": { |
+ "path": { |
+ "description": "Path to the source file within the source context of the target binary.", |
+ "type": "string" |
+ }, |
+ "line": { |
+ "description": "Line inside the file. The first line in the file has the value `1`.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
} |
}, |
"servicePath": "", |