Service Client: Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionServiceClient

Client stub representing the remote UiDetectionService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to chromeos.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Chromeos::Uidetection::V1::UiDetection - Compiled Protocol Buffers messages for google/chromeos/uidetection/v1/ui_detection.proto

SYNOPSIS

use Google::Chromeos::Uidetection::V1::UiDetection;

my $msg = Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest->new({
    image_png => $image_png,
    request => $request,
    resize_image => $resize_image,
    test_id => $test_id,
});

# Read or update a field
my $val = $msg->image_png();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/chromeos/uidetection/v1/ui_detection.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionRequest

Request message for UI detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->image_png() / $msg->image_png($value)

    Type: Bytes

    Required. Required field that represents a PNG image.

  • $msg->request() / $msg->request($value)

    Type: Message (Google::Chromeos::Uidetection::V1::UiDetection::DetectionRequest)

    Required. Required field that indicates the detection type.

  • $msg->resize_image() / $msg->resize_image($value)

    Type: Bool

    Indicates whether to fall back to resizing the image if no elements are detected.

  • $msg->test_id() / $msg->test_id($value)

    Type: String

    Deprecated as of 2023-03-29. Use test_metadata instead.

  • $msg->test_metadata() / $msg->test_metadata($value)

    Type: Message (Google::Chromeos::Uidetection::V1::UiDetection::TestMetadata)

    Optional. Metadata about the client for analytics.

  • $msg->force_image_resizing() / $msg->force_image_resizing($value)

    Type: Bool

    Optional. Indicates whether to always start by resizing the image.

  • $msg->return_transformed_image() / $msg->return_transformed_image($value)

    Type: Bool

    Optional. Indicates whether to respond with the transformed image png.

Google::Chromeos::Uidetection::V1::UiDetection::DetectionRequest

Detection type specifies what to detect in the image.

Inherits from Protobuf::Message.

Accessors

Google::Chromeos::Uidetection::V1::UiDetection::TestMetadata

Metadata about the client test and test device.

Inherits from Protobuf::Message.

Accessors

  • $msg->test_id() / $msg->test_id($value)

    Type: String

    Name of the calling test. For example, 'tast.uidetection.BasicDetections'.

  • $msg->board() / $msg->board($value)

    Type: String

    Board name of the ChromeOS device under test. For example, 'volteer'.

  • $msg->model() / $msg->model($value)

    Type: String

    Model name of the ChromeOS device under test. For example, 'volet'.

  • $msg->cros_build() / $msg->cros_build($value)

    Type: String

    ChromeOS build of the device under test. For example, 'volteer-release/R110-15275.0.0-75031-8794956681263330561'.

Google::Chromeos::Uidetection::V1::UiDetection::WordDetectionRequest

Detection type for word detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->word() / $msg->word($value)

    Type: String

    Required. The word to locate in the image.

  • $msg->regex_mode() / $msg->regex_mode($value)

    Type: Bool

    Indicating whether the query string is a regex or not.

  • $msg->disable_approx_match() / $msg->disable_approx_match($value)

    Type: Bool

    Indicating whether the detection is an approximate match.

  • $msg->max_edit_distance() / $msg->max_edit_distance($value)

    Type: Int32

    Levenshtein distance threshold. Applicable only if regex_mode is False.

Google::Chromeos::Uidetection::V1::UiDetection::TextBlockDetectionRequest

Detection type for text block detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->words() / $msg->words($value)

    Type: String

    Required. The text block consisting a list of words to locate in the image.

  • $msg->regex_mode() / $msg->regex_mode($value)

    Type: Bool

    Indicating whether the query string is a regex or not.

  • $msg->disable_approx_match() / $msg->disable_approx_match($value)

    Type: Bool

    Indicating whether the detection is an approximate match.

  • $msg->max_edit_distance() / $msg->max_edit_distance($value)

    Type: Int32

    Levenshtein distance threshold. Applicable only if regex_mode is False.

  • $msg->specified_words_only() / $msg->specified_words_only($value)

    Type: Bool

    Indicating whether the detection result should only contain the specified words.

Google::Chromeos::Uidetection::V1::UiDetection::CustomIconDetectionRequest

Detection type for custom icon detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->icon_png() / $msg->icon_png($value)

    Type: Bytes

    Required. Required field that represents an icon in PNG format.

  • $msg->match_count() / $msg->match_count($value)

    Type: Int32

    Set match_count to -1 to not limit the number of matches.

  • $msg->min_confidence_threshold() / $msg->min_confidence_threshold($value)

    Type: Double

    Confidence threshold in the range [0.0, 1.0] below which the matches will be considered as non-existent.

Google::Chromeos::Uidetection::V1::UiDetection::UiDetectionResponse

Response message for UI detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->bounding_boxes() / $msg->bounding_boxes($value)

    Type: Message (Google::Chromeos::Uidetection::V1::UiDetection::BoundingBox)

    Locations of matching UI elements.

  • $msg->transformed_image_png() / $msg->transformed_image_png($value)

    Type: Bytes

    The transformed detection image PNG, if requested and transformations were applied.

  • $msg->resizing_scale_factor() / $msg->resizing_scale_factor($value)

    Type: Float

    The amount the original image was scaled by to make the transformed image. 1.0 if the detection result is not based on a resized image.

Google::Chromeos::Uidetection::V1::UiDetection::BoundingBox

The location of a UI element. A bounding box is reprensented by its top-left point [left, top] and its bottom-right point [right, bottom].

Inherits from Protobuf::Message.

Accessors

  • $msg->text() / $msg->text($value)

    Type: String

    The text found in the bounding box.

  • $msg->top() / $msg->top($value)

    Type: Int32

    The y-coordinate of the top-left point.

  • $msg->left() / $msg->left($value)

    Type: Int32

    The x-coordinate of the top-left point.

  • $msg->bottom() / $msg->bottom($value)

    Type: Int32

    The y-coordinate of the bottom-right point.

  • $msg->right() / $msg->right($value)

    Type: Int32

    The x-coordinate of the bottom-right point.

SEE ALSO

Protobuf, Protobuf::Message, Google::Chromeos::Uidetection::V1::UiDetection::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.