Service Client: Google::Cloud::Devicestreaming::V1::Service::DirectAccessServiceClient
Client stub representing the remote DirectAccessService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to devicestreaming.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Devicestreaming::V1::Service - Compiled Protocol Buffers messages for google/cloud/devicestreaming/v1/service.proto
SYNOPSIS
use Google::Cloud::Devicestreaming::V1::Service;
my $msg = Google::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest->new({
parent => $parent,
device_session => $device_session,
device_session_id => $device_session_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/devicestreaming/v1/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::Cloud::Devicestreaming::V1::Service::CreateDeviceSessionRequest
Request message for DirectAccessService.CreateDeviceSession.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The Compute Engine project under which this device will be allocated. "projects/{project_id}"
$msg->device_session()/$msg->device_session($value)Type:
Message(Google::Cloud::Devicestreaming::V1::Service::DeviceSession)Required. A DeviceSession to create.
$msg->device_session_id()/$msg->device_session_id($value)Type:
StringOptional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsRequest
Request message for DirectAccessService.ListDeviceSessions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent to request, e.g. "projects/{project_id}"
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of DeviceSessions to return.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A continuation token for paging.
$msg->filter()/$msg->filter($value)Type:
StringOptional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state.
Google::Cloud::Devicestreaming::V1::Service::ListDeviceSessionsResponse
Response message for DirectAccessService.ListDeviceSessions.
Inherits from Protobuf::Message.
Accessors
$msg->device_sessions()/$msg->device_sessions($value)Type:
Message(Google::Cloud::Devicestreaming::V1::Service::DeviceSession)The sessions matching the specified filter in the given cloud project.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Devicestreaming::V1::Service::GetDeviceSessionRequest
Request message for DirectAccessService.GetDeviceSession.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
Google::Cloud::Devicestreaming::V1::Service::CancelDeviceSessionRequest
Request message for DirectAccessService.CancelDeviceSession.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
Google::Cloud::Devicestreaming::V1::Service::UpdateDeviceSessionRequest
Request message for DirectAccessService.UpdateDeviceSession.
Inherits from Protobuf::Message.
Accessors
$msg->device_session()/$msg->device_session($value)Type:
Message(Google::Cloud::Devicestreaming::V1::Service::DeviceSession)Required. DeviceSession to update. The DeviceSession's `name` field is used to identify the session to update "projects/{project_id}/deviceSessions/{session_id}"
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update.
Google::Cloud::Devicestreaming::V1::Service::DeviceSession
Protobuf message describing the device message, used from several RPCs.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The title of the DeviceSession to be presented in the UI.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Devicestreaming::V1::DeviceSession::SessionState)Output only. Current state of the DeviceSession.
$msg->state_histories()/$msg->state_histories($value)Type:
Message(Google::Cloud::Devicestreaming::V1::Service::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::Cloud::Devicestreaming::V1::Service::AndroidDevice)Required. The requested device.
$msg->client_info()/$msg->client_info($value)Type:
Message(Google::Cloud::Devicestreaming::V1::Service::ClientInfo)Optional. Information about the client which invoked the device session.
Enum: DeviceSession::SessionState
SESSION_STATE_UNSPECIFIED=>0REQUESTED=>1PENDING=>2ACTIVE=>3EXPIRED=>4FINISHED=>5UNAVAILABLE=>6ERROR=>7
Google::Cloud::Devicestreaming::V1::Service::ClientInfo
Information about the client which invoked the device session.
Inherits from Protobuf::Message.
Accessors
$msg->client()/$msg->client($value)Type:
StringRequired. Client name, such as gcloud. The maximum length is 64 characters.
$msg->version()/$msg->version($value)Type:
StringOptional. Client version. The maximum length is 64 characters.
Google::Cloud::Devicestreaming::V1::Service::AndroidDevice
A single Android device.
Inherits from Protobuf::Message.
Accessors
$msg->android_model_id()/$msg->android_model_id($value)Type:
StringRequired. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->android_version_id()/$msg->android_version_id($value)Type:
StringRequired. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->locale()/$msg->locale($value)Type:
StringOptional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->orientation()/$msg->orientation($value)Type:
StringOptional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Devicestreaming::V1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.