# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_reader_v1.proto

require 'google/protobuf'

require 'deviceapis/device/v1/deviceapis_device_common_v1_pb'
require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/protobuf/field_mask_pb'


descriptor_data = "\n6deviceapis/device/v1/deviceapis_device_reader_v1.proto\x12\x14\x64\x65viceapis.device.v1\x1a\x36\x64\x65viceapis/device/v1/deviceapis_device_common_v1.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"u\n\x11\x45\x64itReaderRequest\x12/\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1c.deviceapis.device.v1.ReaderB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xea\x01\n\x12\x45\x64itReaderResponse\x12?\n\x05\x65rror\x18\x01 \x01(\x0b\x32..deviceapis.device.v1.EditReaderResponse.ErrorH\x00\x1a\x8a\x01\n\x05\x45rror\x12;\n\nvalidation\x18\x01 \x01(\x0b\x32%.deviceapis.device.v1.ValidationErrorH\x00\x12:\n\x06saving\x18\x02 \x01(\x0b\x32(.deviceapis.device.v1.Reader.SavingErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"#\n\x10GetReaderRequest\x12\x0f\n\x02id\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\"I\n\x11GetReaderResponse\x12,\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1c.deviceapis.device.v1.ReaderH\x00\x42\x06\n\x04type\"\xfb\x04\n\x06Reader\x12\x0f\n\x02id\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12#\n\x16\x65ncryption_profile_ids\x18\x02 \x03(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rrelay_indexes\x18\x03 \x03(\x05\x42\x03\xe0\x41\x02\x12 \n\x13is_none_secure_mode\x18\x04 \x01(\x08\x42\x03\xe0\x41\x02\x12\x42\n\x0e\x64irection_type\x18\x05 \x01(\x0e\x32*.deviceapis.device.v1.Reader.DirectionType\x1a\xfa\x02\n\x0bSavingError\x12S\n\x10reader_not_found\x18\x01 \x01(\x0b\x32\x37.deviceapis.device.v1.Reader.SavingError.ReaderNotFoundH\x00\x12\x62\n\x18profile_is_not_supported\x18\x02 \x01(\x0b\x32>.deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupportedH\x00\x12U\n\x11profile_not_found\x18\x03 \x01(\x0b\x32\x38.deviceapis.device.v1.Reader.SavingError.ProfileNotFoundH\x00\x1a,\n\x15ProfileIsNotSupported\x12\x13\n\x0bprofile_ids\x18\x01 \x03(\x05\x1a\x11\n\x0fProfileNotFound\x1a\x10\n\x0eReaderNotFoundB\x08\n\x06reason\"<\n\rDirectionType\x12\x1a\n\x16\x44IRECTION_TYPE_UNKNOWN\x10\x00\x12\x06\n\x02IN\x10\x01\x12\x07\n\x03OUT\x10\x02\x32\xa3\x02\n\rReaderService\x12\x8e\x01\n\nEditReader\x12\'.deviceapis.device.v1.EditReaderRequest\x1a(.deviceapis.device.v1.EditReaderResponse\"-\x82\xd3\xe4\x93\x02\'2\x1f/device/api/v1/reader/{data.id}:\x04\x64\x61ta\x12\x80\x01\n\tGetReader\x12&.deviceapis.device.v1.GetReaderRequest\x1a\'.deviceapis.device.v1.GetReaderResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/device/api/v1/reader/{id}B\xaf\x01\n\x17ru.deviceapis.device.v1B\x17\x44\x65viceapisDeviceV1ProtoH\x03P\x00Z\x15/deviceapis_device_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x12\x44\x45VICEAPISDEVICEV1\xaa\x02\x14\x44\x65viceapis.Device.V1\xca\x02\x14\x44\x65viceapis\\Device\\V1\xea\x02\x16\x44\x65viceapis::Device::V1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError => e
  # 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"],
    ["deviceapis.device.v1.ValidationError", "deviceapis/device/v1/deviceapis_device_common_v1.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 Deviceapis
  module Device
    module V1
      EditReaderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditReaderRequest").msgclass
      EditReaderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditReaderResponse").msgclass
      EditReaderResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.EditReaderResponse.Error").msgclass
      GetReaderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.GetReaderRequest").msgclass
      GetReaderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.GetReaderResponse").msgclass
      Reader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader").msgclass
      Reader::SavingError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader.SavingError").msgclass
      Reader::SavingError::ProfileIsNotSupported = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader.SavingError.ProfileIsNotSupported").msgclass
      Reader::SavingError::ProfileNotFound = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader.SavingError.ProfileNotFound").msgclass
      Reader::SavingError::ReaderNotFound = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader.SavingError.ReaderNotFound").msgclass
      Reader::DirectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("deviceapis.device.v1.Reader.DirectionType").enummodule
    end
  end
end
