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: 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::Cloud::Devicestreaming::V1::Service::DeviceSession)

    Required. A DeviceSession to create.

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

    Type: String

    Optional. 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: 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::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: 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::Cloud::Devicestreaming::V1::Service::GetDeviceSessionRequest

Request message for DirectAccessService.GetDeviceSession.

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::Cloud::Devicestreaming::V1::Service::CancelDeviceSessionRequest

Request message for DirectAccessService.CancelDeviceSession.

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::Cloud::Devicestreaming::V1::Service::UpdateDeviceSessionRequest

Request message for DirectAccessService.UpdateDeviceSession.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Devicestreaming::V1::Service::DeviceSession

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

Inherits from Protobuf::Message.

Accessors

Enum: DeviceSession::SessionState

  • SESSION_STATE_UNSPECIFIED => 0

  • REQUESTED => 1

  • PENDING => 2

  • ACTIVE => 3

  • EXPIRED => 4

  • FINISHED => 5

  • UNAVAILABLE => 6

  • ERROR => 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: String

    Required. Client name, such as gcloud. The maximum length is 64 characters.

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

    Type: String

    Optional. 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: String

    Required. 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: String

    Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.

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

    Type: String

    Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.

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

    Type: String

    Optional. 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.