- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- SuggestionClusterProto
- SuggestionCategory
- SuggestionProto
- SafeHtmlProto
- SuggestionPriority
- RegionProto
- Try it!
Lists accessibility clusters for a given Step
May return any of the following canonical error codes:
- PERMISSION_DENIED - if the user is not authorized to read project
- INVALID_ARGUMENT - if the request is malformed
- FAILED_PRECONDITION - if an argument in the request happens to be invalid; e.g. if the locale format is incorrect
- NOT_FOUND - if the containing Step does not exist
HTTP request
GET https://toolresults.googleapis.com/toolresults/v1beta3/{name=projects/*/histories/*/executions/*/steps/*}:accessibilityClusters
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Required. |
Query parameters
Parameters | |
---|---|
locale |
The accepted format is the canonical Unicode format with hyphen as a delimiter. Language must be lowercase, Language Script - Capitalized, Region - UPPERCASE. See http://www.unicode.org/reports/tr35/#Unicode_locale_identifier for details. Required. |
Request body
The request body must be empty.
Response body
Response message for AccessibilityService.ListStepAccessibilityClusters.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"name": string,
"clusters": [
{
object ( |
Fields | |
---|---|
name |
A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Always presents. |
clusters[] |
A sequence of accessibility suggestions, grouped into clusters. Within the sequence, clusters that belong to the same SuggestionCategory should be adjacent. Within each category, clusters should be ordered by their SuggestionPriority (ERRORs first). The categories should be ordered by their highest priority cluster. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
SuggestionClusterProto
A set of similar suggestions that we suspect are closely related.
This proto and most of the nested protos are branched from foxandcrown.prelaunchreport.service.SuggestionClusterProto, replacing PLR's dependencies with FTL's.
JSON representation |
---|
{ "category": enum ( |
Fields | |
---|---|
category |
Category in which these types of suggestions should appear. Always set. |
suggestions[] |
A sequence of suggestions. All of the suggestions within a cluster must have the same SuggestionPriority and belong to the same SuggestionCategory. Suggestions with the same screenshot URL should be adjacent. |
SuggestionCategory
Enums | |
---|---|
unknownCategory |
|
contentLabeling |
|
touchTargetSize |
|
lowContrast |
|
implementation |
SuggestionProto
JSON representation |
---|
{ "title": string, "shortMessage": { object ( |
Fields | |
---|---|
title |
General title for the suggestion, in the user's language, without markup. Always set. |
shortMessage |
Concise message, in the user's language, representing the suggestion, which may contain markup. Always set. |
longMessage |
Message, in the user's language, explaining the suggestion, which may contain markup. Always set. |
priority |
Relative importance of a suggestion. Always set. |
helpUrl |
Reference to a help center article concerning this type of suggestion. Always set. |
region |
Region within the screenshot that is relevant to this suggestion. Optional. |
secondaryPriority |
Relative importance of a suggestion as compared with other suggestions that have the same priority and category. This is a meaningless value that can be used to order suggestions that are in the same category and have the same priority. The larger values have higher priority (i.e., are more important). Optional. |
screenId |
ID of the screen for the suggestion. It is used for getting the corresponding screenshot path. For example, screenId "1" corresponds to "1.png" file in GCS. Always set. |
Union field
|
|
resourceName |
Reference to a view element, identified by its resource name, if it has one. |
pseudoResourceId |
A somewhat human readable identifier of the source view, if it does not have a resourceName. This is a path within the accessibility hierarchy, an element with resource name; similar to an XPath. |
SafeHtmlProto
IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.
JSON representation |
---|
{ "privateDoNotAccessOrElseSafeHtmlWrappedValue": string } |
Fields | |
---|---|
privateDoNotAccessOrElseSafeHtmlWrappedValue |
IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message. |
SuggestionPriority
Enums | |
---|---|
unknownPriority |
|
error |
|
warning |
|
info |
RegionProto
A rectangular region.
JSON representation |
---|
{ "topPx": integer, "leftPx": integer, "heightPx": integer, "widthPx": integer } |
Fields | |
---|---|
topPx |
The top of the rectangle, in pixels. Always set. |
leftPx |
The left side of the rectangle, in pixels. Always set. |
heightPx |
The height, in pixels. Always set. |
widthPx |
The width, in pixels. Always set. |