Debian Codegraph @

googleapis/chromeos/uidetection/v1/ui_detection.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/chromeos/uidetection/v1/ui_detection.proto
20
21 package uidetection
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Request message for UI detection.
44 type UiDetectionRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Required. Required field that represents a PNG image.
50 ImagePng []byte `protobuf:"bytes,1,opt,name=image_png,json=imagePng,proto3" json:"image_png,omitempty"`
51 // Required. Required field that indicates the detection type.
52 Request *DetectionRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
53 // Indicates whether to fall back to resizing the image if no elements are
54 // detected.
55 ResizeImage *bool `protobuf:"varint,3,opt,name=resize_image,json=resizeImage,proto3,oneof" json:"resize_image,omitempty"`
56 // Deprecated as of 2023-03-29. Use test_metadata instead.
57 //
58 // Deprecated: Do not use.
59 TestId string `protobuf:"bytes,4,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
60 // Optional. Metadata about the client for analytics.
61 TestMetadata *TestMetadata `protobuf:"bytes,5,opt,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"`
62 // Optional. Indicates whether to always start by resizing the image.
63 ForceImageResizing bool `protobuf:"varint,6,opt,name=force_image_resizing,json=forceImageResizing,proto3" json:"force_image_resizing,omitempty"`
64 // Optional. Indicates whether to respond with the transformed image png.
65 ReturnTransformedImage bool `protobuf:"varint,7,opt,name=return_transformed_image,json=returnTransformedImage,proto3" json:"return_transformed_image,omitempty"`
66 }
67
68 func (x *UiDetectionRequest) Reset() {
69 *x = UiDetectionRequest{}
70 if protoimpl.UnsafeEnabled {
71 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[0]
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 ms.StoreMessageInfo(mi)
74 }
75 }
76
77 func (x *UiDetectionRequest) String() string {
78 return protoimpl.X.MessageStringOf(x)
79 }
80
81 func (*UiDetectionRequest) ProtoMessage() {}
82
83 func (x *UiDetectionRequest) ProtoReflect() protoreflect.Message {
84 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[0]
85 if protoimpl.UnsafeEnabled && x != nil {
86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87 if ms.LoadMessageInfo() == nil {
88 ms.StoreMessageInfo(mi)
89 }
90 return ms
91 }
92 return mi.MessageOf(x)
93 }
94
95 // Deprecated: Use UiDetectionRequest.ProtoReflect.Descriptor instead.
96 func (*UiDetectionRequest) Descriptor() ([]byte, []int) {
97 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{0}
98 }
99
100 func (x *UiDetectionRequest) GetImagePng() []byte {
101 if x != nil {
102 return x.ImagePng
103 }
104 return nil
105 }
106
107 func (x *UiDetectionRequest) GetRequest() *DetectionRequest {
108 if x != nil {
109 return x.Request
110 }
111 return nil
112 }
113
114 func (x *UiDetectionRequest) GetResizeImage() bool {
115 if x != nil && x.ResizeImage != nil {
116 return *x.ResizeImage
117 }
118 return false
119 }
120
121 // Deprecated: Do not use.
122 func (x *UiDetectionRequest) GetTestId() string {
123 if x != nil {
124 return x.TestId
125 }
126 return ""
127 }
128
129 func (x *UiDetectionRequest) GetTestMetadata() *TestMetadata {
130 if x != nil {
131 return x.TestMetadata
132 }
133 return nil
134 }
135
136 func (x *UiDetectionRequest) GetForceImageResizing() bool {
137 if x != nil {
138 return x.ForceImageResizing
139 }
140 return false
141 }
142
143 func (x *UiDetectionRequest) GetReturnTransformedImage() bool {
144 if x != nil {
145 return x.ReturnTransformedImage
146 }
147 return false
148 }
149
150 // Detection type specifies what to detect in the image.
151 type DetectionRequest struct {
152 state protoimpl.MessageState
153 sizeCache protoimpl.SizeCache
154 unknownFields protoimpl.UnknownFields
155
156 // Types that are assignable to DetectionRequestType:
157 //
158 // *DetectionRequest_WordDetectionRequest
159 // *DetectionRequest_TextBlockDetectionRequest
160 // *DetectionRequest_CustomIconDetectionRequest
161 DetectionRequestType isDetectionRequest_DetectionRequestType `protobuf_oneof:"detection_request_type"`
162 }
163
164 func (x *DetectionRequest) Reset() {
165 *x = DetectionRequest{}
166 if protoimpl.UnsafeEnabled {
167 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[1]
168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169 ms.StoreMessageInfo(mi)
170 }
171 }
172
173 func (x *DetectionRequest) String() string {
174 return protoimpl.X.MessageStringOf(x)
175 }
176
177 func (*DetectionRequest) ProtoMessage() {}
178
179 func (x *DetectionRequest) ProtoReflect() protoreflect.Message {
180 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[1]
181 if protoimpl.UnsafeEnabled && x != nil {
182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183 if ms.LoadMessageInfo() == nil {
184 ms.StoreMessageInfo(mi)
185 }
186 return ms
187 }
188 return mi.MessageOf(x)
189 }
190
191 // Deprecated: Use DetectionRequest.ProtoReflect.Descriptor instead.
192 func (*DetectionRequest) Descriptor() ([]byte, []int) {
193 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{1}
194 }
195
196 func (m *DetectionRequest) GetDetectionRequestType() isDetectionRequest_DetectionRequestType {
197 if m != nil {
198 return m.DetectionRequestType
199 }
200 return nil
201 }
202
203 func (x *DetectionRequest) GetWordDetectionRequest() *WordDetectionRequest {
204 if x, ok := x.GetDetectionRequestType().(*DetectionRequest_WordDetectionRequest); ok {
205 return x.WordDetectionRequest
206 }
207 return nil
208 }
209
210 func (x *DetectionRequest) GetTextBlockDetectionRequest() *TextBlockDetectionRequest {
211 if x, ok := x.GetDetectionRequestType().(*DetectionRequest_TextBlockDetectionRequest); ok {
212 return x.TextBlockDetectionRequest
213 }
214 return nil
215 }
216
217 func (x *DetectionRequest) GetCustomIconDetectionRequest() *CustomIconDetectionRequest {
218 if x, ok := x.GetDetectionRequestType().(*DetectionRequest_CustomIconDetectionRequest); ok {
219 return x.CustomIconDetectionRequest
220 }
221 return nil
222 }
223
224 type isDetectionRequest_DetectionRequestType interface {
225 isDetectionRequest_DetectionRequestType()
226 }
227
228 type DetectionRequest_WordDetectionRequest struct {
229 // Detection type for word detection.
230 WordDetectionRequest *WordDetectionRequest `protobuf:"bytes,1,opt,name=word_detection_request,json=wordDetectionRequest,proto3,oneof"`
231 }
232
233 type DetectionRequest_TextBlockDetectionRequest struct {
234 // Detection type for text block detection.
235 TextBlockDetectionRequest *TextBlockDetectionRequest `protobuf:"bytes,2,opt,name=text_block_detection_request,json=textBlockDetectionRequest,proto3,oneof"`
236 }
237
238 type DetectionRequest_CustomIconDetectionRequest struct {
239 // Detection type for custom icon detection.
240 CustomIconDetectionRequest *CustomIconDetectionRequest `protobuf:"bytes,3,opt,name=custom_icon_detection_request,json=customIconDetectionRequest,proto3,oneof"`
241 }
242
243 func (*DetectionRequest_WordDetectionRequest) isDetectionRequest_DetectionRequestType() {}
244
245 func (*DetectionRequest_TextBlockDetectionRequest) isDetectionRequest_DetectionRequestType() {}
246
247 func (*DetectionRequest_CustomIconDetectionRequest) isDetectionRequest_DetectionRequestType() {}
248
249 // Metadata about the client test and test device.
250 type TestMetadata struct {
251 state protoimpl.MessageState
252 sizeCache protoimpl.SizeCache
253 unknownFields protoimpl.UnknownFields
254
255 // Name of the calling test. For example, 'tast.uidetection.BasicDetections'.
256 TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
257 // Board name of the ChromeOS device under test. For example, 'volteer'.
258 Board string `protobuf:"bytes,2,opt,name=board,proto3" json:"board,omitempty"`
259 // Model name of the ChromeOS device under test. For example, 'volet'.
260 Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
261 // ChromeOS build of the device under test.
262 // For example, 'volteer-release/R110-15275.0.0-75031-8794956681263330561'.
263 CrosBuild string `protobuf:"bytes,4,opt,name=cros_build,json=crosBuild,proto3" json:"cros_build,omitempty"`
264 }
265
266 func (x *TestMetadata) Reset() {
267 *x = TestMetadata{}
268 if protoimpl.UnsafeEnabled {
269 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[2]
270 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
271 ms.StoreMessageInfo(mi)
272 }
273 }
274
275 func (x *TestMetadata) String() string {
276 return protoimpl.X.MessageStringOf(x)
277 }
278
279 func (*TestMetadata) ProtoMessage() {}
280
281 func (x *TestMetadata) ProtoReflect() protoreflect.Message {
282 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[2]
283 if protoimpl.UnsafeEnabled && x != nil {
284 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
285 if ms.LoadMessageInfo() == nil {
286 ms.StoreMessageInfo(mi)
287 }
288 return ms
289 }
290 return mi.MessageOf(x)
291 }
292
293 // Deprecated: Use TestMetadata.ProtoReflect.Descriptor instead.
294 func (*TestMetadata) Descriptor() ([]byte, []int) {
295 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{2}
296 }
297
298 func (x *TestMetadata) GetTestId() string {
299 if x != nil {
300 return x.TestId
301 }
302 return ""
303 }
304
305 func (x *TestMetadata) GetBoard() string {
306 if x != nil {
307 return x.Board
308 }
309 return ""
310 }
311
312 func (x *TestMetadata) GetModel() string {
313 if x != nil {
314 return x.Model
315 }
316 return ""
317 }
318
319 func (x *TestMetadata) GetCrosBuild() string {
320 if x != nil {
321 return x.CrosBuild
322 }
323 return ""
324 }
325
326 // Detection type for word detection.
327 type WordDetectionRequest struct {
328 state protoimpl.MessageState
329 sizeCache protoimpl.SizeCache
330 unknownFields protoimpl.UnknownFields
331
332 // Required. The word to locate in the image.
333 Word string `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"`
334 // Indicating whether the query string is a regex or not.
335 RegexMode bool `protobuf:"varint,2,opt,name=regex_mode,json=regexMode,proto3" json:"regex_mode,omitempty"`
336 // Indicating whether the detection is an approximate match.
337 DisableApproxMatch bool `protobuf:"varint,3,opt,name=disable_approx_match,json=disableApproxMatch,proto3" json:"disable_approx_match,omitempty"`
338 // Levenshtein distance threshold.
339 // Applicable only if regex_mode is False.
340 MaxEditDistance *int32 `protobuf:"varint,4,opt,name=max_edit_distance,json=maxEditDistance,proto3,oneof" json:"max_edit_distance,omitempty"`
341 }
342
343 func (x *WordDetectionRequest) Reset() {
344 *x = WordDetectionRequest{}
345 if protoimpl.UnsafeEnabled {
346 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[3]
347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
348 ms.StoreMessageInfo(mi)
349 }
350 }
351
352 func (x *WordDetectionRequest) String() string {
353 return protoimpl.X.MessageStringOf(x)
354 }
355
356 func (*WordDetectionRequest) ProtoMessage() {}
357
358 func (x *WordDetectionRequest) ProtoReflect() protoreflect.Message {
359 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[3]
360 if protoimpl.UnsafeEnabled && x != nil {
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 if ms.LoadMessageInfo() == nil {
363 ms.StoreMessageInfo(mi)
364 }
365 return ms
366 }
367 return mi.MessageOf(x)
368 }
369
370 // Deprecated: Use WordDetectionRequest.ProtoReflect.Descriptor instead.
371 func (*WordDetectionRequest) Descriptor() ([]byte, []int) {
372 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{3}
373 }
374
375 func (x *WordDetectionRequest) GetWord() string {
376 if x != nil {
377 return x.Word
378 }
379 return ""
380 }
381
382 func (x *WordDetectionRequest) GetRegexMode() bool {
383 if x != nil {
384 return x.RegexMode
385 }
386 return false
387 }
388
389 func (x *WordDetectionRequest) GetDisableApproxMatch() bool {
390 if x != nil {
391 return x.DisableApproxMatch
392 }
393 return false
394 }
395
396 func (x *WordDetectionRequest) GetMaxEditDistance() int32 {
397 if x != nil && x.MaxEditDistance != nil {
398 return *x.MaxEditDistance
399 }
400 return 0
401 }
402
403 // Detection type for text block detection.
404 type TextBlockDetectionRequest struct {
405 state protoimpl.MessageState
406 sizeCache protoimpl.SizeCache
407 unknownFields protoimpl.UnknownFields
408
409 // Required. The text block consisting a list of words to locate in the image.
410 Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
411 // Indicating whether the query string is a regex or not.
412 RegexMode bool `protobuf:"varint,2,opt,name=regex_mode,json=regexMode,proto3" json:"regex_mode,omitempty"`
413 // Indicating whether the detection is an approximate match.
414 DisableApproxMatch bool `protobuf:"varint,3,opt,name=disable_approx_match,json=disableApproxMatch,proto3" json:"disable_approx_match,omitempty"`
415 // Levenshtein distance threshold.
416 // Applicable only if regex_mode is False.
417 MaxEditDistance *int32 `protobuf:"varint,4,opt,name=max_edit_distance,json=maxEditDistance,proto3,oneof" json:"max_edit_distance,omitempty"`
418 // Indicating whether the detection result should only contain the specified
419 // words.
420 SpecifiedWordsOnly bool `protobuf:"varint,5,opt,name=specified_words_only,json=specifiedWordsOnly,proto3" json:"specified_words_only,omitempty"`
421 }
422
423 func (x *TextBlockDetectionRequest) Reset() {
424 *x = TextBlockDetectionRequest{}
425 if protoimpl.UnsafeEnabled {
426 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[4]
427 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
428 ms.StoreMessageInfo(mi)
429 }
430 }
431
432 func (x *TextBlockDetectionRequest) String() string {
433 return protoimpl.X.MessageStringOf(x)
434 }
435
436 func (*TextBlockDetectionRequest) ProtoMessage() {}
437
438 func (x *TextBlockDetectionRequest) ProtoReflect() protoreflect.Message {
439 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[4]
440 if protoimpl.UnsafeEnabled && x != nil {
441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
442 if ms.LoadMessageInfo() == nil {
443 ms.StoreMessageInfo(mi)
444 }
445 return ms
446 }
447 return mi.MessageOf(x)
448 }
449
450 // Deprecated: Use TextBlockDetectionRequest.ProtoReflect.Descriptor instead.
451 func (*TextBlockDetectionRequest) Descriptor() ([]byte, []int) {
452 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{4}
453 }
454
455 func (x *TextBlockDetectionRequest) GetWords() []string {
456 if x != nil {
457 return x.Words
458 }
459 return nil
460 }
461
462 func (x *TextBlockDetectionRequest) GetRegexMode() bool {
463 if x != nil {
464 return x.RegexMode
465 }
466 return false
467 }
468
469 func (x *TextBlockDetectionRequest) GetDisableApproxMatch() bool {
470 if x != nil {
471 return x.DisableApproxMatch
472 }
473 return false
474 }
475
476 func (x *TextBlockDetectionRequest) GetMaxEditDistance() int32 {
477 if x != nil && x.MaxEditDistance != nil {
478 return *x.MaxEditDistance
479 }
480 return 0
481 }
482
483 func (x *TextBlockDetectionRequest) GetSpecifiedWordsOnly() bool {
484 if x != nil {
485 return x.SpecifiedWordsOnly
486 }
487 return false
488 }
489
490 // Detection type for custom icon detection.
491 type CustomIconDetectionRequest struct {
492 state protoimpl.MessageState
493 sizeCache protoimpl.SizeCache
494 unknownFields protoimpl.UnknownFields
495
496 // Required. Required field that represents an icon in PNG format.
497 IconPng []byte `protobuf:"bytes,1,opt,name=icon_png,json=iconPng,proto3" json:"icon_png,omitempty"`
498 // Set match_count to -1 to not limit the number of matches.
499 MatchCount int32 `protobuf:"varint,2,opt,name=match_count,json=matchCount,proto3" json:"match_count,omitempty"`
500 // Confidence threshold in the range [0.0, 1.0] below which the matches will
501 // be considered as non-existent.
502 MinConfidenceThreshold float64 `protobuf:"fixed64,3,opt,name=min_confidence_threshold,json=minConfidenceThreshold,proto3" json:"min_confidence_threshold,omitempty"`
503 }
504
505 func (x *CustomIconDetectionRequest) Reset() {
506 *x = CustomIconDetectionRequest{}
507 if protoimpl.UnsafeEnabled {
508 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[5]
509 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
510 ms.StoreMessageInfo(mi)
511 }
512 }
513
514 func (x *CustomIconDetectionRequest) String() string {
515 return protoimpl.X.MessageStringOf(x)
516 }
517
518 func (*CustomIconDetectionRequest) ProtoMessage() {}
519
520 func (x *CustomIconDetectionRequest) ProtoReflect() protoreflect.Message {
521 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[5]
522 if protoimpl.UnsafeEnabled && x != nil {
523 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
524 if ms.LoadMessageInfo() == nil {
525 ms.StoreMessageInfo(mi)
526 }
527 return ms
528 }
529 return mi.MessageOf(x)
530 }
531
532 // Deprecated: Use CustomIconDetectionRequest.ProtoReflect.Descriptor instead.
533 func (*CustomIconDetectionRequest) Descriptor() ([]byte, []int) {
534 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{5}
535 }
536
537 func (x *CustomIconDetectionRequest) GetIconPng() []byte {
538 if x != nil {
539 return x.IconPng
540 }
541 return nil
542 }
543
544 func (x *CustomIconDetectionRequest) GetMatchCount() int32 {
545 if x != nil {
546 return x.MatchCount
547 }
548 return 0
549 }
550
551 func (x *CustomIconDetectionRequest) GetMinConfidenceThreshold() float64 {
552 if x != nil {
553 return x.MinConfidenceThreshold
554 }
555 return 0
556 }
557
558 // Response message for UI detection.
559 type UiDetectionResponse struct {
560 state protoimpl.MessageState
561 sizeCache protoimpl.SizeCache
562 unknownFields protoimpl.UnknownFields
563
564 // Locations of matching UI elements.
565 BoundingBoxes []*BoundingBox `protobuf:"bytes,1,rep,name=bounding_boxes,json=boundingBoxes,proto3" json:"bounding_boxes,omitempty"`
566 // The transformed detection image PNG, if requested and transformations were
567 // applied.
568 TransformedImagePng []byte `protobuf:"bytes,2,opt,name=transformed_image_png,json=transformedImagePng,proto3" json:"transformed_image_png,omitempty"`
569 // The amount the original image was scaled by to make the transformed image.
570 // 1.0 if the detection result is not based on a resized image.
571 ResizingScaleFactor float32 `protobuf:"fixed32,3,opt,name=resizing_scale_factor,json=resizingScaleFactor,proto3" json:"resizing_scale_factor,omitempty"`
572 }
573
574 func (x *UiDetectionResponse) Reset() {
575 *x = UiDetectionResponse{}
576 if protoimpl.UnsafeEnabled {
577 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[6]
578 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
579 ms.StoreMessageInfo(mi)
580 }
581 }
582
583 func (x *UiDetectionResponse) String() string {
584 return protoimpl.X.MessageStringOf(x)
585 }
586
587 func (*UiDetectionResponse) ProtoMessage() {}
588
589 func (x *UiDetectionResponse) ProtoReflect() protoreflect.Message {
590 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[6]
591 if protoimpl.UnsafeEnabled && x != nil {
592 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
593 if ms.LoadMessageInfo() == nil {
594 ms.StoreMessageInfo(mi)
595 }
596 return ms
597 }
598 return mi.MessageOf(x)
599 }
600
601 // Deprecated: Use UiDetectionResponse.ProtoReflect.Descriptor instead.
602 func (*UiDetectionResponse) Descriptor() ([]byte, []int) {
603 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{6}
604 }
605
606 func (x *UiDetectionResponse) GetBoundingBoxes() []*BoundingBox {
607 if x != nil {
608 return x.BoundingBoxes
609 }
610 return nil
611 }
612
613 func (x *UiDetectionResponse) GetTransformedImagePng() []byte {
614 if x != nil {
615 return x.TransformedImagePng
616 }
617 return nil
618 }
619
620 func (x *UiDetectionResponse) GetResizingScaleFactor() float32 {
621 if x != nil {
622 return x.ResizingScaleFactor
623 }
624 return 0
625 }
626
627 // The location of a UI element.
628 // A bounding box is reprensented by its top-left point [left, top]
629 // and its bottom-right point [right, bottom].
630 type BoundingBox struct {
631 state protoimpl.MessageState
632 sizeCache protoimpl.SizeCache
633 unknownFields protoimpl.UnknownFields
634
635 // The text found in the bounding box.
636 Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
637 // The y-coordinate of the top-left point.
638 Top int32 `protobuf:"varint,2,opt,name=top,proto3" json:"top,omitempty"`
639 // The x-coordinate of the top-left point.
640 Left int32 `protobuf:"varint,3,opt,name=left,proto3" json:"left,omitempty"`
641 // The y-coordinate of the bottom-right point.
642 Bottom int32 `protobuf:"varint,4,opt,name=bottom,proto3" json:"bottom,omitempty"`
643 // The x-coordinate of the bottom-right point.
644 Right int32 `protobuf:"varint,5,opt,name=right,proto3" json:"right,omitempty"`
645 }
646
647 func (x *BoundingBox) Reset() {
648 *x = BoundingBox{}
649 if protoimpl.UnsafeEnabled {
650 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[7]
651 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
652 ms.StoreMessageInfo(mi)
653 }
654 }
655
656 func (x *BoundingBox) String() string {
657 return protoimpl.X.MessageStringOf(x)
658 }
659
660 func (*BoundingBox) ProtoMessage() {}
661
662 func (x *BoundingBox) ProtoReflect() protoreflect.Message {
663 mi := &file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[7]
664 if protoimpl.UnsafeEnabled && x != nil {
665 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
666 if ms.LoadMessageInfo() == nil {
667 ms.StoreMessageInfo(mi)
668 }
669 return ms
670 }
671 return mi.MessageOf(x)
672 }
673
674 // Deprecated: Use BoundingBox.ProtoReflect.Descriptor instead.
675 func (*BoundingBox) Descriptor() ([]byte, []int) {
676 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{7}
677 }
678
679 func (x *BoundingBox) GetText() string {
680 if x != nil {
681 return x.Text
682 }
683 return ""
684 }
685
686 func (x *BoundingBox) GetTop() int32 {
687 if x != nil {
688 return x.Top
689 }
690 return 0
691 }
692
693 func (x *BoundingBox) GetLeft() int32 {
694 if x != nil {
695 return x.Left
696 }
697 return 0
698 }
699
700 func (x *BoundingBox) GetBottom() int32 {
701 if x != nil {
702 return x.Bottom
703 }
704 return 0
705 }
706
707 func (x *BoundingBox) GetRight() int32 {
708 if x != nil {
709 return x.Right
710 }
711 return 0
712 }
713
714 var File_google_chromeos_uidetection_v1_ui_detection_proto protoreflect.FileDescriptor
715
716 var file_google_chromeos_uidetection_v1_ui_detection_proto_rawDesc = []byte{
717 0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f,
718 0x73, 0x2f, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
719 0x2f, 0x75, 0x69, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
720 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f,
721 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
722 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
723 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
724 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c,
725 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
726 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
727 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xab, 0x03, 0x0a, 0x12,
728 0x55, 0x69, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
729 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x6e, 0x67, 0x18,
730 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67,
731 0x65, 0x50, 0x6e, 0x67, 0x12, 0x4f, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18,
732 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
733 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
734 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
735 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x65,
736 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x5f,
737 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0b, 0x72,
738 0x65, 0x73, 0x69, 0x7a, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a,
739 0x07, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
740 0x18, 0x01, 0x52, 0x06, 0x74, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x0d, 0x74, 0x65,
741 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28,
742 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
743 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
744 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42,
745 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
746 0x74, 0x61, 0x12, 0x35, 0x0a, 0x14, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67,
747 0x65, 0x5f, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
748 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x12, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x49, 0x6d, 0x61, 0x67,
749 0x65, 0x52, 0x65, 0x73, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x18, 0x72, 0x65, 0x74,
750 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x5f,
751 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01,
752 0x52, 0x16, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
753 0x6d, 0x65, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x72, 0x65, 0x73,
754 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x99, 0x03, 0x0a, 0x10, 0x44, 0x65,
755 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6c,
756 0x0a, 0x16, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
757 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34,
758 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73,
759 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
760 0x57, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
761 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x14, 0x77, 0x6f, 0x72, 0x64, 0x44, 0x65, 0x74, 0x65,
762 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7c, 0x0a, 0x1c,
763 0x74, 0x65, 0x78, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63,
764 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01,
765 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f,
766 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
767 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x74,
768 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52,
769 0x19, 0x74, 0x65, 0x78, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74,
770 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x7f, 0x0a, 0x1d, 0x63, 0x75,
771 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
772 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
773 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
774 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
775 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x63, 0x6f, 0x6e, 0x44, 0x65, 0x74,
776 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52,
777 0x1a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x63, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x65, 0x63,
778 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x18, 0x0a, 0x16, 0x64,
779 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
780 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x72, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74,
781 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64,
782 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x14,
783 0x0a, 0x05, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62,
784 0x6f, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x03, 0x20,
785 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72,
786 0x6f, 0x73, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
787 0x63, 0x72, 0x6f, 0x73, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x57, 0x6f,
788 0x72, 0x64, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
789 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
790 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72,
791 0x65, 0x67, 0x65, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
792 0x09, 0x72, 0x65, 0x67, 0x65, 0x78, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x69,
793 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x5f, 0x6d, 0x61, 0x74,
794 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
795 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x2f, 0x0a, 0x11,
796 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63,
797 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x45, 0x64,
798 0x69, 0x74, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a,
799 0x12, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x61,
800 0x6e, 0x63, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x19, 0x54, 0x65, 0x78, 0x74, 0x42, 0x6c, 0x6f, 0x63,
801 0x6b, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
802 0x74, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
803 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a,
804 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
805 0x52, 0x09, 0x72, 0x65, 0x67, 0x65, 0x78, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x64,
806 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x5f, 0x6d, 0x61,
807 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62,
808 0x6c, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x2f, 0x0a,
809 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e,
810 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x45,
811 0x64, 0x69, 0x74, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x30,
812 0x0a, 0x14, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x64,
813 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x70,
814 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x4f, 0x6e, 0x6c, 0x79,
815 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x64, 0x69,
816 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x1a, 0x43, 0x75, 0x73, 0x74, 0x6f,
817 0x6d, 0x49, 0x63, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
818 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x70, 0x6e,
819 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x69, 0x63,
820 0x6f, 0x6e, 0x50, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x63,
821 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63,
822 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f,
823 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
824 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x16, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e,
825 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
826 0x22, 0xd1, 0x01, 0x0a, 0x13, 0x55, 0x69, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
827 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0e, 0x62, 0x6f, 0x75, 0x6e,
828 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
829 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65,
830 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
831 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x52, 0x0d, 0x62,
832 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x6f, 0x78, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15,
833 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67,
834 0x65, 0x5f, 0x70, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x74, 0x72, 0x61,
835 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x6e, 0x67,
836 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x63, 0x61,
837 0x6c, 0x65, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52,
838 0x13, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x46, 0x61,
839 0x63, 0x74, 0x6f, 0x72, 0x22, 0x75, 0x0a, 0x0b, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67,
840 0x42, 0x6f, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
841 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6f, 0x70, 0x18, 0x02,
842 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x6f, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x65, 0x66,
843 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x65, 0x66, 0x74, 0x12, 0x16, 0x0a,
844 0x06, 0x62, 0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62,
845 0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05,
846 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x32, 0xdf, 0x01, 0x0a, 0x12,
847 0x55, 0x69, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69,
848 0x63, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x44, 0x65,
849 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
850 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65,
851 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x69, 0x44, 0x65, 0x74, 0x65, 0x63,
852 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f,
853 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69,
854 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x69, 0x44,
855 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
856 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78,
857 0x65, 0x63, 0x75, 0x74, 0x65, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x65,
858 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x25, 0xca, 0x41, 0x22, 0x63, 0x68, 0x72, 0x6f, 0x6d,
859 0x65, 0x6f, 0x73, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67,
860 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x83, 0x01,
861 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, 0x72,
862 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2e, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f,
863 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x55, 0x69, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f,
864 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
865 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
866 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
867 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x6f, 0x73, 0x2f, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63,
868 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x69, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74,
869 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
870 }
871
872 var (
873 file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescOnce sync.Once
874 file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescData = file_google_chromeos_uidetection_v1_ui_detection_proto_rawDesc
875 )
876
877 func file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP() []byte {
878 file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescOnce.Do(func() {
879 file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescData)
880 })
881 return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescData
882 }
883
884 var file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
885 var file_google_chromeos_uidetection_v1_ui_detection_proto_goTypes = []interface{}{
886 (*UiDetectionRequest)(nil), // 0: google.chromeos.uidetection.v1.UiDetectionRequest
887 (*DetectionRequest)(nil), // 1: google.chromeos.uidetection.v1.DetectionRequest
888 (*TestMetadata)(nil), // 2: google.chromeos.uidetection.v1.TestMetadata
889 (*WordDetectionRequest)(nil), // 3: google.chromeos.uidetection.v1.WordDetectionRequest
890 (*TextBlockDetectionRequest)(nil), // 4: google.chromeos.uidetection.v1.TextBlockDetectionRequest
891 (*CustomIconDetectionRequest)(nil), // 5: google.chromeos.uidetection.v1.CustomIconDetectionRequest
892 (*UiDetectionResponse)(nil), // 6: google.chromeos.uidetection.v1.UiDetectionResponse
893 (*BoundingBox)(nil), // 7: google.chromeos.uidetection.v1.BoundingBox
894 }
895 var file_google_chromeos_uidetection_v1_ui_detection_proto_depIdxs = []int32{
896 1, // 0: google.chromeos.uidetection.v1.UiDetectionRequest.request:type_name -> google.chromeos.uidetection.v1.DetectionRequest
897 2, // 1: google.chromeos.uidetection.v1.UiDetectionRequest.test_metadata:type_name -> google.chromeos.uidetection.v1.TestMetadata
898 3, // 2: google.chromeos.uidetection.v1.DetectionRequest.word_detection_request:type_name -> google.chromeos.uidetection.v1.WordDetectionRequest
899 4, // 3: google.chromeos.uidetection.v1.DetectionRequest.text_block_detection_request:type_name -> google.chromeos.uidetection.v1.TextBlockDetectionRequest
900 5, // 4: google.chromeos.uidetection.v1.DetectionRequest.custom_icon_detection_request:type_name -> google.chromeos.uidetection.v1.CustomIconDetectionRequest
901 7, // 5: google.chromeos.uidetection.v1.UiDetectionResponse.bounding_boxes:type_name -> google.chromeos.uidetection.v1.BoundingBox
902 0, // 6: google.chromeos.uidetection.v1.UiDetectionService.ExecuteDetection:input_type -> google.chromeos.uidetection.v1.UiDetectionRequest
903 6, // 7: google.chromeos.uidetection.v1.UiDetectionService.ExecuteDetection:output_type -> google.chromeos.uidetection.v1.UiDetectionResponse
904 7, // [7:8] is the sub-list for method output_type
905 6, // [6:7] is the sub-list for method input_type
906 6, // [6:6] is the sub-list for extension type_name
907 6, // [6:6] is the sub-list for extension extendee
908 0, // [0:6] is the sub-list for field type_name
909 }
910
911 func init() { file_google_chromeos_uidetection_v1_ui_detection_proto_init() }
912 func file_google_chromeos_uidetection_v1_ui_detection_proto_init() {
913 if File_google_chromeos_uidetection_v1_ui_detection_proto != nil {
914 return
915 }
916 if !protoimpl.UnsafeEnabled {
917 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
918 switch v := v.(*UiDetectionRequest); i {
919 case 0:
920 return &v.state
921 case 1:
922 return &v.sizeCache
923 case 2:
924 return &v.unknownFields
925 default:
926 return nil
927 }
928 }
929 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
930 switch v := v.(*DetectionRequest); i {
931 case 0:
932 return &v.state
933 case 1:
934 return &v.sizeCache
935 case 2:
936 return &v.unknownFields
937 default:
938 return nil
939 }
940 }
941 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
942 switch v := v.(*TestMetadata); i {
943 case 0:
944 return &v.state
945 case 1:
946 return &v.sizeCache
947 case 2:
948 return &v.unknownFields
949 default:
950 return nil
951 }
952 }
953 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
954 switch v := v.(*WordDetectionRequest); i {
955 case 0:
956 return &v.state
957 case 1:
958 return &v.sizeCache
959 case 2:
960 return &v.unknownFields
961 default:
962 return nil
963 }
964 }
965 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
966 switch v := v.(*TextBlockDetectionRequest); i {
967 case 0:
968 return &v.state
969 case 1:
970 return &v.sizeCache
971 case 2:
972 return &v.unknownFields
973 default:
974 return nil
975 }
976 }
977 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
978 switch v := v.(*CustomIconDetectionRequest); i {
979 case 0:
980 return &v.state
981 case 1:
982 return &v.sizeCache
983 case 2:
984 return &v.unknownFields
985 default:
986 return nil
987 }
988 }
989 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
990 switch v := v.(*UiDetectionResponse); i {
991 case 0:
992 return &v.state
993 case 1:
994 return &v.sizeCache
995 case 2:
996 return &v.unknownFields
997 default:
998 return nil
999 }
1000 }
1001 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1002 switch v := v.(*BoundingBox); i {
1003 case 0:
1004 return &v.state
1005 case 1:
1006 return &v.sizeCache
1007 case 2:
1008 return &v.unknownFields
1009 default:
1010 return nil
1011 }
1012 }
1013 }
1014 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[0].OneofWrappers = []interface{}{}
1015 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[1].OneofWrappers = []interface{}{
1016 (*DetectionRequest_WordDetectionRequest)(nil),
1017 (*DetectionRequest_TextBlockDetectionRequest)(nil),
1018 (*DetectionRequest_CustomIconDetectionRequest)(nil),
1019 }
1020 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[3].OneofWrappers = []interface{}{}
1021 file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes[4].OneofWrappers = []interface{}{}
1022 type x struct{}
1023 out := protoimpl.TypeBuilder{
1024 File: protoimpl.DescBuilder{
1025 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1026 RawDescriptor: file_google_chromeos_uidetection_v1_ui_detection_proto_rawDesc,
1027 NumEnums: 0,
1028 NumMessages: 8,
1029 NumExtensions: 0,
1030 NumServices: 1,
1031 },
1032 GoTypes: file_google_chromeos_uidetection_v1_ui_detection_proto_goTypes,
1033 DependencyIndexes: file_google_chromeos_uidetection_v1_ui_detection_proto_depIdxs,
1034 MessageInfos: file_google_chromeos_uidetection_v1_ui_detection_proto_msgTypes,
1035 }.Build()
1036 File_google_chromeos_uidetection_v1_ui_detection_proto = out.File
1037 file_google_chromeos_uidetection_v1_ui_detection_proto_rawDesc = nil
1038 file_google_chromeos_uidetection_v1_ui_detection_proto_goTypes = nil
1039 file_google_chromeos_uidetection_v1_ui_detection_proto_depIdxs = nil
1040 }
1041
1042 // Reference imports to suppress errors if they are not otherwise used.
1043 var _ context.Context
1044 var _ grpc.ClientConnInterface
1045
1046 // This is a compile-time assertion to ensure that this generated file
1047 // is compatible with the grpc package it is being compiled against.
1048 const _ = grpc.SupportPackageIsVersion6
1049
1050 // UiDetectionServiceClient is the client API for UiDetectionService service.
1051 //
1052 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1053 type UiDetectionServiceClient interface {
1054 // Runs the detection.
1055 ExecuteDetection(ctx context.Context, in *UiDetectionRequest, opts ...grpc.CallOption) (*UiDetectionResponse, error)
1056 }
1057
1058 type uiDetectionServiceClient struct {
1059 cc grpc.ClientConnInterface
1060 }
1061
1062 func NewUiDetectionServiceClient(cc grpc.ClientConnInterface) UiDetectionServiceClient {
1063 return &uiDetectionServiceClient{cc}
1064 }
1065
1066 func (c *uiDetectionServiceClient) ExecuteDetection(ctx context.Context, in *UiDetectionRequest, opts ...grpc.CallOption) (*UiDetectionResponse, error) {
1067 out := new(UiDetectionResponse)
1068 err := c.cc.Invoke(ctx, "/google.chromeos.uidetection.v1.UiDetectionService/ExecuteDetection", in, out, opts...)
1069 if err != nil {
1070 return nil, err
1071 }
1072 return out, nil
1073 }
1074
1075 // UiDetectionServiceServer is the server API for UiDetectionService service.
1076 type UiDetectionServiceServer interface {
1077 // Runs the detection.
1078 ExecuteDetection(context.Context, *UiDetectionRequest) (*UiDetectionResponse, error)
1079 }
1080
1081 // UnimplementedUiDetectionServiceServer can be embedded to have forward compatible implementations.
1082 type UnimplementedUiDetectionServiceServer struct {
1083 }
1084
1085 func (*UnimplementedUiDetectionServiceServer) ExecuteDetection(context.Context, *UiDetectionRequest) (*UiDetectionResponse, error) {
1086 return nil, status.Errorf(codes.Unimplemented, "method ExecuteDetection not implemented")
1087 }
1088
1089 func RegisterUiDetectionServiceServer(s *grpc.Server, srv UiDetectionServiceServer) {
1090 s.RegisterService(&_UiDetectionService_serviceDesc, srv)
1091 }
1092
1093 func _UiDetectionService_ExecuteDetection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1094 in := new(UiDetectionRequest)
1095 if err := dec(in); err != nil {
1096 return nil, err
1097 }
1098 if interceptor == nil {
1099 return srv.(UiDetectionServiceServer).ExecuteDetection(ctx, in)
1100 }
1101 info := &grpc.UnaryServerInfo{
1102 Server: srv,
1103 FullMethod: "/google.chromeos.uidetection.v1.UiDetectionService/ExecuteDetection",
1104 }
1105 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1106 return srv.(UiDetectionServiceServer).ExecuteDetection(ctx, req.(*UiDetectionRequest))
1107 }
1108 return interceptor(ctx, in, info, handler)
1109 }
1110
1111 var _UiDetectionService_serviceDesc = grpc.ServiceDesc{
1112 ServiceName: "google.chromeos.uidetection.v1.UiDetectionService",
1113 HandlerType: (*UiDetectionServiceServer)(nil),
1114 Methods: []grpc.MethodDesc{
1115 {
1116 MethodName: "ExecuteDetection",
1117 Handler: _UiDetectionService_ExecuteDetection_Handler,
1118 },
1119 },
1120 Streams: []grpc.StreamDesc{},
1121 Metadata: "google/chromeos/uidetection/v1/ui_detection.proto",
1122 }