# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/devicestreaming/v1/service.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/devicestreaming/v1/adb_service_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


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"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
    ["google.protobuf.Duration", "google/protobuf/duration.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Cloud
    module DeviceStreaming
      module V1
        CreateDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.CreateDeviceSessionRequest").msgclass
        ListDeviceSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.ListDeviceSessionsRequest").msgclass
        ListDeviceSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.ListDeviceSessionsResponse").msgclass
        GetDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.GetDeviceSessionRequest").msgclass
        CancelDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.CancelDeviceSessionRequest").msgclass
        UpdateDeviceSessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest").msgclass
        DeviceSession = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession").msgclass
        DeviceSession::SessionStateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent").msgclass
        DeviceSession::SessionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceSession.SessionState").enummodule
        AndroidDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.AndroidDevice").msgclass
      end
    end
  end
end
