Service Client: Google::Devtools::Testing::V1::DirectAccessService::DirectAccessServiceClient

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

target

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

credentials

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

NAME

Google::Devtools::Testing::V1::DirectAccessService - Compiled Protocol Buffers messages for google/devtools/testing/v1/direct_access_service.proto

SYNOPSIS

use Google::Devtools::Testing::V1::DirectAccessService;

my $msg = Google::Devtools::Testing::V1::DirectAccessService::CreateDeviceSessionRequest->new({
    parent => $parent,
    device_session => $device_session,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Testing::V1::DirectAccessService::CreateDeviceSessionRequest->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Devtools::Testing::V1::DirectAccessService::CreateDeviceSessionRequest

A Request for the device session from the session service.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

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

    Type: Message (Google::Devtools::Testing::V1::DirectAccessService::DeviceSession)

    Required. A device session to create.

Google::Devtools::Testing::V1::DirectAccessService::ListDeviceSessionsRequest

Request a list of device sessions in the provided parent matching the given filter.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the parent to request, e.g. "projects/{project_id}"

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

    Type: Int32

    Optional. The maximum number of DeviceSessions to return.

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

    Type: String

    Optional. A continuation token for paging.

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

    Type: String

    Optional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state.

Google::Devtools::Testing::V1::DirectAccessService::ListDeviceSessionsResponse

A list of device sessions.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Devtools::Testing::V1::DirectAccessService::DeviceSession)

    The sessions matching the specified filter in the given cloud project.

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

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Devtools::Testing::V1::DirectAccessService::GetDeviceSessionRequest

The request object for a Device Session.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

Google::Devtools::Testing::V1::DirectAccessService::CancelDeviceSessionRequest

The request object for cancelling a Device Session.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

Google::Devtools::Testing::V1::DirectAccessService::UpdateDeviceSessionRequest

The request object for the UpdateDeviceSession RPC.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Testing::V1::DirectAccessService::DeviceSession

Protobuf message describing the device message, used from several RPCs.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

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

    Type: String

    Output only. The title of the DeviceSession to be presented in the UI.

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

    Type: Enum (Google::Devtools::Testing::V1::DeviceSession::SessionState)

    Output only. Current state of the DeviceSession.

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

    Type: Message (Google::Devtools::Testing::V1::DirectAccessService::DeviceSession::SessionStateEvent)

    Output only. The historical state transitions of the session_state message including the current session state.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time that the Session was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp that the session first became ACTIVE.

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

    Type: Message (Google::Devtools::Testing::V1::TestExecution::AndroidDevice)

    Required. The requested device

Enum: DeviceSession::SessionState

  • SESSION_STATE_UNSPECIFIED => 0

  • REQUESTED => 1

  • PENDING => 2

  • ACTIVE => 3

  • EXPIRED => 4

  • FINISHED => 5

  • UNAVAILABLE => 6

  • ERROR => 7

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Testing::V1::DirectAccessService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.