Skip to content

Commit a8aece2

Browse files
Google APIscopybara-github
authored andcommitted
feat: replace test_id with an expanded metadata message
PiperOrigin-RevId: 520657524
1 parent c0b5730 commit a8aece2

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

google/chromeos/uidetection/v1/ui_detection.proto

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ message UiDetectionRequest {
4848
// Indicates whether to resize the image when detecting.
4949
optional bool resize_image = 3;
5050

51-
// Name of the calling test, as it should appear in analytics. For example,
52-
// 'tast.uidetection.BasicDetections'.
53-
string test_id = 4;
51+
// Deprecated as of 2023-03-29. Use test_metadata instead.
52+
string test_id = 4 [deprecated = true];
53+
54+
// Optional. Metadata about the client for analytics.
55+
TestMetadata test_metadata = 5 [(google.api.field_behavior) = OPTIONAL];
5456
}
5557

5658
// Detection type specifies what to detect in the image.
@@ -67,6 +69,22 @@ message DetectionRequest {
6769
}
6870
}
6971

72+
// Metadata about the client test and test device.
73+
message TestMetadata {
74+
// Name of the calling test. For example, 'tast.uidetection.BasicDetections'.
75+
string test_id = 1;
76+
77+
// Board name of the ChromeOS device under test. For example, 'volteer'.
78+
string board = 2;
79+
80+
// Model name of the ChromeOS device under test. For example, 'volet'.
81+
string model = 3;
82+
83+
// ChromeOS build of the device under test.
84+
// For example, 'volteer-release/R110-15275.0.0-75031-8794956681263330561'.
85+
string cros_build = 4;
86+
}
87+
7088
// Detection type for word detection.
7189
message WordDetectionRequest {
7290
// Required. The word to locate in the image.

0 commit comments

Comments
 (0)