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

require 'google/protobuf'

require 'google/api/field_behavior_pb'


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"

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 = [
  ]
  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
        DeviceMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.DeviceMessage").msgclass
        AdbMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.AdbMessage").msgclass
        StatusUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StatusUpdate").msgclass
        StatusUpdate::DeviceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StatusUpdate.DeviceState").enummodule
        StreamStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StreamStatus").msgclass
        Open = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Open").msgclass
        StreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.StreamData").msgclass
        Okay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Okay").msgclass
        Fail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Fail").msgclass
        Close = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.devicestreaming.v1.Close").msgclass
      end
    end
  end
end
