google-cloud-device_streaming-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/LICENSE.md +201 -0
- data/README.md +153 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/client.rb +978 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/credentials.rb +47 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/paths.rb +64 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/rest/client.rb +827 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/rest/service_stub.rb +389 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service/rest.rb +61 -0
- data/lib/google/cloud/device_streaming/v1/direct_access_service.rb +64 -0
- data/lib/google/cloud/device_streaming/v1/rest.rb +37 -0
- data/lib/google/cloud/device_streaming/v1/version.rb +28 -0
- data/lib/google/cloud/device_streaming/v1.rb +45 -0
- data/lib/google/cloud/devicestreaming/v1/adb_service_pb.rb +53 -0
- data/lib/google/cloud/devicestreaming/v1/service_pb.rb +64 -0
- data/lib/google/cloud/devicestreaming/v1/service_services_pb.rb +74 -0
- data/lib/google-cloud-device_streaming-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/devicestreaming/v1/adb_service.rb +192 -0
- data/proto_docs/google/cloud/devicestreaming/v1/service.rb +234 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- metadata +99 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/devicestreaming/v1/adb_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n1google/cloud/devicestreaming/v1/adb_service.proto\x12\x1fgoogle.cloud.devicestreaming.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xef\x01\n\rDeviceMessage\x12\x46\n\rstatus_update\x18\x01 \x01(\x0b\x32-.google.cloud.devicestreaming.v1.StatusUpdateH\x00\x12\x46\n\rstream_status\x18\x02 \x01(\x0b\x32-.google.cloud.devicestreaming.v1.StreamStatusH\x00\x12\x42\n\x0bstream_data\x18\x03 \x01(\x0b\x32+.google.cloud.devicestreaming.v1.StreamDataH\x00\x42\n\n\x08\x63ontents\"\x93\x01\n\nAdbMessage\x12\x35\n\x04open\x18\x01 \x01(\x0b\x32%.google.cloud.devicestreaming.v1.OpenH\x00\x12\x42\n\x0bstream_data\x18\x02 \x01(\x0b\x32+.google.cloud.devicestreaming.v1.StreamDataH\x00\x42\n\n\x08\x63ontents\"\x9f\x03\n\x0cStatusUpdate\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState\x12Q\n\nproperties\x18\x02 \x03(\x0b\x32=.google.cloud.devicestreaming.v1.StatusUpdate.PropertiesEntry\x12\x10\n\x08\x66\x65\x61tures\x18\x03 \x01(\t\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xac\x01\n\x0b\x44\x65viceState\x12\x1c\n\x18\x44\x45VICE_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45VICE\x10\x01\x12\x0c\n\x08RECOVERY\x10\x02\x12\n\n\x06RESCUE\x10\x03\x12\x0c\n\x08SIDELOAD\x10\x04\x12\x0b\n\x07MISSING\x10\n\x12\x0b\n\x07OFFLINE\x10\x0b\x12\x10\n\x0cUNAUTHORIZED\x10\x0c\x12\x0f\n\x0b\x41UTHORIZING\x10\r\x12\x0e\n\nCONNECTING\x10\x0e\"\x99\x01\n\x0cStreamStatus\x12\x11\n\tstream_id\x18\x01 \x01(\x05\x12\x35\n\x04okay\x18\x02 \x01(\x0b\x32%.google.cloud.devicestreaming.v1.OkayH\x00\x12\x35\n\x04\x66\x61il\x18\x03 \x01(\x0b\x32%.google.cloud.devicestreaming.v1.FailH\x00\x42\x08\n\x06status\"4\n\x04Open\x12\x16\n\tstream_id\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x01\"y\n\nStreamData\x12\x16\n\tstream_id\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x0e\n\x04\x64\x61ta\x18\x02 \x01(\x0cH\x00\x12\x37\n\x05\x63lose\x18\x03 \x01(\x0b\x32&.google.cloud.devicestreaming.v1.CloseH\x00\x42\n\n\x08\x63ontents\"\x06\n\x04Okay\"\x16\n\x04\x46\x61il\x12\x0e\n\x06reason\x18\x01 \x01(\t\"\x07\n\x05\x43loseB\xf0\x01\n#com.google.cloud.devicestreaming.v1B\x0f\x41\x64\x62ServiceProtoP\x01ZMcloud.google.com/go/devicestreaming/apiv1/devicestreamingpb;devicestreamingpb\xaa\x02\x1fGoogle.Cloud.DeviceStreaming.V1\xca\x02\x1fGoogle\\Cloud\\DeviceStreaming\\V1\xea\x02\"Google::Cloud::DeviceStreaming::V1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module DeviceStreaming
|
39
|
+
module V1
|
40
|
+
DeviceMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceMessage").msgclass
|
41
|
+
AdbMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.AdbMessage").msgclass
|
42
|
+
StatusUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StatusUpdate").msgclass
|
43
|
+
StatusUpdate::DeviceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StatusUpdate.DeviceState").enummodule
|
44
|
+
StreamStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StreamStatus").msgclass
|
45
|
+
Open = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Open").msgclass
|
46
|
+
StreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StreamData").msgclass
|
47
|
+
Okay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Okay").msgclass
|
48
|
+
Fail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Fail").msgclass
|
49
|
+
Close = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Close").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/devicestreaming/v1/service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/devicestreaming/v1/adb_service_pb'
|
12
|
+
require 'google/protobuf/duration_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/timestamp_pb'
|
16
|
+
|
17
|
+
|
18
|
+
descriptor_data = "\n-google/cloud/devicestreaming/v1/service.proto\x12\x1fgoogle.cloud.devicestreaming.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/devicestreaming/v1/adb_service.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\x01\n\x1a\x43reateDeviceSessionRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12K\n\x0e\x64\x65vice_session\x18\x02 \x01(\x0b\x32..google.cloud.devicestreaming.v1.DeviceSessionB\x03\xe0\x41\x02\x12\x1e\n\x11\x64\x65vice_session_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa6\x01\n\x19ListDeviceSessionsRequest\x12\x43\n\x06parent\x18\x04 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListDeviceSessionsResponse\x12G\n\x0f\x64\x65vice_sessions\x18\x01 \x03(\x0b\x32..google.cloud.devicestreaming.v1.DeviceSession\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x17GetDeviceSessionRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,devicestreaming.googleapis.com/DeviceSession\"`\n\x1a\x43\x61ncelDeviceSessionRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,devicestreaming.googleapis.com/DeviceSession\"\x9f\x01\n\x1aUpdateDeviceSessionRequest\x12K\n\x0e\x64\x65vice_session\x18\x01 \x01(\x0b\x32..google.cloud.devicestreaming.v1.DeviceSessionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xb5\x08\n\rDeviceSession\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.devicestreaming.v1.DeviceSession.SessionStateB\x03\xe0\x41\x03\x12^\n\x0fstate_histories\x18\x0e \x03(\x0b\x32@.google.cloud.devicestreaming.v1.DeviceSession.SessionStateEventB\x03\xe0\x41\x03\x12-\n\x03ttl\x18\r \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01H\x00\x12\x36\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00\x12:\n\x12inactivity_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11\x61\x63tive_start_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\x0e\x61ndroid_device\x18\x0f \x01(\x0b\x32..google.cloud.devicestreaming.v1.AndroidDeviceB\x03\xe0\x41\x02\x1a\xbd\x01\n\x11SessionStateEvent\x12W\n\rsession_state\x18\x01 \x01(\x0e\x32;.google.cloud.devicestreaming.v1.DeviceSession.SessionStateB\x03\xe0\x41\x03\x12\x33\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\x8c\x01\n\x0cSessionState\x12\x1d\n\x19SESSION_STATE_UNSPECIFIED\x10\x00\x12\r\n\tREQUESTED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x0c\n\x08\x46INISHED\x10\x05\x12\x0f\n\x0bUNAVAILABLE\x10\x06\x12\t\n\x05\x45RROR\x10\x07:\x85\x01\xea\x41\x81\x01\n,devicestreaming.googleapis.com/DeviceSession\x12\x32projects/{project}/deviceSessions/{device_session}*\x0e\x64\x65viceSessions2\rdeviceSessionB\x0c\n\nexpiration\"~\n\rAndroidDevice\x12\x1d\n\x10\x61ndroid_model_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12\x61ndroid_version_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06locale\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0borientation\x18\x04 \x01(\tB\x03\xe0\x41\x01\x32\xe0\t\n\x13\x44irectAccessService\x12\xec\x01\n\x13\x43reateDeviceSession\x12;.google.cloud.devicestreaming.v1.CreateDeviceSessionRequest\x1a..google.cloud.devicestreaming.v1.DeviceSession\"h\xda\x41\'parent,device_session,device_session_id\x82\xd3\xe4\x93\x02\x38\"&/v1/{parent=projects/*}/deviceSessions:\x0e\x64\x65vice_session\x12\xc6\x01\n\x12ListDeviceSessions\x12:.google.cloud.devicestreaming.v1.ListDeviceSessionsRequest\x1a;.google.cloud.devicestreaming.v1.ListDeviceSessionsResponse\"7\xda\x41\x06parent\x82\xd3\xe4\x93\x02(\x12&/v1/{parent=projects/*}/deviceSessions\x12\xb3\x01\n\x10GetDeviceSession\x12\x38.google.cloud.devicestreaming.v1.GetDeviceSessionRequest\x1a..google.cloud.devicestreaming.v1.DeviceSession\"5\xda\x41\x04name\x82\xd3\xe4\x93\x02(\x12&/v1/{name=projects/*/deviceSessions/*}\x12\xa4\x01\n\x13\x43\x61ncelDeviceSession\x12;.google.cloud.devicestreaming.v1.CancelDeviceSessionRequest\x1a\x16.google.protobuf.Empty\"8\x82\xd3\xe4\x93\x02\x32\"-/v1/{name=projects/*/deviceSessions/*}:cancel:\x01*\x12\xee\x01\n\x13UpdateDeviceSession\x12;.google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest\x1a..google.cloud.devicestreaming.v1.DeviceSession\"j\xda\x41\x1a\x64\x65vice_session,update_mask\x82\xd3\xe4\x93\x02G25/v1/{device_session.name=projects/*/deviceSessions/*}:\x0e\x64\x65vice_session\x12o\n\nAdbConnect\x12+.google.cloud.devicestreaming.v1.AdbMessage\x1a..google.cloud.devicestreaming.v1.DeviceMessage\"\x00(\x01\x30\x01\x1aR\xca\x41\x1e\x64\x65vicestreaming.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xed\x01\n#com.google.cloud.devicestreaming.v1B\x0cServiceProtoP\x01ZMcloud.google.com/go/devicestreaming/apiv1/devicestreamingpb;devicestreamingpb\xaa\x02\x1fGoogle.Cloud.DeviceStreaming.V1\xca\x02\x1fGoogle\\Cloud\\DeviceStreaming\\V1\xea\x02\"Google::Cloud::DeviceStreaming::V1b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
34
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
35
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Cloud
|
49
|
+
module DeviceStreaming
|
50
|
+
module V1
|
51
|
+
CreateDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.CreateDeviceSessionRequest").msgclass
|
52
|
+
ListDeviceSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.ListDeviceSessionsRequest").msgclass
|
53
|
+
ListDeviceSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.ListDeviceSessionsResponse").msgclass
|
54
|
+
GetDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.GetDeviceSessionRequest").msgclass
|
55
|
+
CancelDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.CancelDeviceSessionRequest").msgclass
|
56
|
+
UpdateDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest").msgclass
|
57
|
+
DeviceSession = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession").msgclass
|
58
|
+
DeviceSession::SessionStateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent").msgclass
|
59
|
+
DeviceSession::SessionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession.SessionState").enummodule
|
60
|
+
AndroidDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.AndroidDevice").msgclass
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/devicestreaming/v1/service.proto for package 'Google.Cloud.DeviceStreaming.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2025 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/devicestreaming/v1/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DeviceStreaming
|
25
|
+
module V1
|
26
|
+
module DirectAccessService
|
27
|
+
# A service for allocating Android devices and interacting with the
|
28
|
+
# live-allocated devices.
|
29
|
+
#
|
30
|
+
# Each Session will wait for available capacity, at a higher
|
31
|
+
# priority over Test Execution. When allocated, the session will be exposed
|
32
|
+
# through a stream for integration.
|
33
|
+
#
|
34
|
+
# DirectAccessService is currently available as a preview to select developers.
|
35
|
+
# You can register today on behalf of you and your team at
|
36
|
+
# https://developer.android.com/studio/preview/android-device-streaming
|
37
|
+
class Service
|
38
|
+
|
39
|
+
include ::GRPC::GenericService
|
40
|
+
|
41
|
+
self.marshal_class_method = :encode
|
42
|
+
self.unmarshal_class_method = :decode
|
43
|
+
self.service_name = 'google.cloud.devicestreaming.v1.DirectAccessService'
|
44
|
+
|
45
|
+
# Creates a DeviceSession.
|
46
|
+
rpc :CreateDeviceSession, ::Google::Cloud::DeviceStreaming::V1::CreateDeviceSessionRequest, ::Google::Cloud::DeviceStreaming::V1::DeviceSession
|
47
|
+
# Lists DeviceSessions owned by the project user.
|
48
|
+
rpc :ListDeviceSessions, ::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsRequest, ::Google::Cloud::DeviceStreaming::V1::ListDeviceSessionsResponse
|
49
|
+
# Gets a DeviceSession, which documents the allocation status and
|
50
|
+
# whether the device is allocated. Clients making requests from this API
|
51
|
+
# must poll GetDeviceSession.
|
52
|
+
rpc :GetDeviceSession, ::Google::Cloud::DeviceStreaming::V1::GetDeviceSessionRequest, ::Google::Cloud::DeviceStreaming::V1::DeviceSession
|
53
|
+
# Cancel a DeviceSession.
|
54
|
+
# This RPC changes the DeviceSession to state FINISHED and terminates all
|
55
|
+
# connections.
|
56
|
+
# Canceled sessions are not deleted and can be retrieved or
|
57
|
+
# listed by the user until they expire based on the 28 day deletion policy.
|
58
|
+
rpc :CancelDeviceSession, ::Google::Cloud::DeviceStreaming::V1::CancelDeviceSessionRequest, ::Google::Protobuf::Empty
|
59
|
+
# Updates the current DeviceSession to the fields described by the
|
60
|
+
# update_mask.
|
61
|
+
rpc :UpdateDeviceSession, ::Google::Cloud::DeviceStreaming::V1::UpdateDeviceSessionRequest, ::Google::Cloud::DeviceStreaming::V1::DeviceSession
|
62
|
+
# Exposes an ADB connection if the device supports ADB.
|
63
|
+
# gRPC headers are used to authenticate the Connect RPC, as well as
|
64
|
+
# associate to a particular DeviceSession.
|
65
|
+
# In particular, the user must specify the "X-Omnilab-Session-Name" header.
|
66
|
+
rpc :AdbConnect, stream(::Google::Cloud::DeviceStreaming::V1::AdbMessage), stream(::Google::Cloud::DeviceStreaming::V1::DeviceMessage)
|
67
|
+
end
|
68
|
+
|
69
|
+
Stub = Service.rpc_stub_class
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/device_streaming/v1"
|