# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/subscription/v1/keyapis_subscription_privilege_v1.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/protobuf/descriptor_pb'


descriptor_data = "\n?keyapis/subscription/v1/keyapis_subscription_privilege_v1.proto\x12\x17keyapis.subscription.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/descriptor.proto\"\xb8\x06\n\tPrivilege\x12\x12\n\x05orpon\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x18\n\x0b\x66lat_number\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x04type\x18\x03 \x01(\x0e\x32\'.keyapis.subscription.v1.Privilege.TypeB\x03\xe0\x41\x02\x12\x45\n\nstate_type\x18\x04 \x01(\x0e\x32,.keyapis.subscription.v1.Privilege.StateTypeB\x03\xe0\x41\x02\"\x91\x04\n\x04Type\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x10\n\x0cINTERCOM_USE\x10\x01\x12\x11\n\rINTERCOM_OPEN\x10\x02\x12\x15\n\x11INTERCOM_CODE_USE\x10\x03\x12\x15\n\x11INTERCOM_RFID_USE\x10\x04\x12\x16\n\x12INTERCOM_EVENT_USE\x10\x05\x12\x17\n\x13INTERCOM_CAMERA_USE\x10\x06\x12\x1b\n\x17INTERCOM_CAMERA_ARCHIVE\x10\x07\x12\x1d\n\x19INTERCOM_CALLREDIRECT_APP\x10\x08\x12\x1e\n\x1aINTERCOM_CALLREDIRECT_PSTN\x10\t\x12\x1d\n\x19INTERCOM_CALLREDIRECT_SIP\x10\n\x12\x0f\n\x0b\x42\x41RRIER_USE\x10\x0b\x12\x10\n\x0c\x42\x41RRIER_OPEN\x10\x0c\x12\x14\n\x10\x42\x41RRIER_CODE_USE\x10\r\x12\x15\n\x11\x42\x41RRIER_EVENT_USE\x10\x0e\x12\x16\n\x12\x42\x41RRIER_CAMERA_USE\x10\x0f\x12\x1a\n\x16\x42\x41RRIER_CAMERA_ARCHIVE\x10\x10\x12\n\n\x06\x46R_USE\x10\x11\x12\x11\n\rTELEMETRY_USE\x10\x12\x12\x0e\n\nCAMERA_USE\x10\x13\x12\x12\n\x0e\x43\x41MERA_ARCHIVE\x10\x14\x12\x1b\n\x17INTERCOM_CMS_PHONES_USE\x10\x15\x12\x14\n\x10\x43\x41MERA_EVENT_USE\x10\x16\"f\n\tStateType\x12\x16\n\x12STATE_TYPE_UNKNOWN\x10\x00\x12\x0f\n\x0b\x43\x41N_BE_PAID\x10\x01\x12\x0c\n\x08NOT_PAID\x10\x02\x12\r\n\tTURNS_OFF\x10\x03\x12\t\n\x05PROMO\x10\x04\x12\x08\n\x04PAID\x10\x05\"\xb6\x03\n\x0fPrivilegeFilter\x12\x0e\n\x06orpons\x18\x01 \x03(\x03\x12\x14\n\x0c\x66lat_numbers\x18\x02 \x03(\t\x12\x36\n\x05types\x18\x03 \x03(\x0e\x32\'.keyapis.subscription.v1.Privilege.Type\x12\x41\n\x0bstate_types\x18\x04 \x03(\x0e\x32,.keyapis.subscription.v1.Privilege.StateType\x1a\x81\x02\n\x0fValidationError\x12X\n\x06orpons\x18\x01 \x01(\x0b\x32\x46.keyapis.subscription.v1.PrivilegeFilter.ValidationError.OrponsInvalidH\x00\x12\x63\n\x0c\x66lat_numbers\x18\x02 \x01(\x0b\x32K.keyapis.subscription.v1.PrivilegeFilter.ValidationError.FlatNumbersInvalidH\x00\x1a\x0f\n\rOrponsInvalid\x1a\x14\n\x12\x46latNumbersInvalidB\x08\n\x06reason\"\xb1\x04\n\x0fPrivilegePaging\x12K\n\rorder_by_type\x18\x01 \x01(\x0e\x32\x34.keyapis.subscription.v1.PrivilegePaging.OrderByType\x12N\n\x0e\x64irection_type\x18\x02 \x01(\x0e\x32\x36.keyapis.subscription.v1.PrivilegePaging.DirectionType\x12\r\n\x05limit\x18\x03 \x01(\x05\x12\x0e\n\x06offset\x18\x04 \x01(\x05\x1a\xee\x01\n\x0fValidationError\x12V\n\x05limit\x18\x01 \x01(\x0b\x32\x45.keyapis.subscription.v1.PrivilegePaging.ValidationError.LimitInvalidH\x00\x12X\n\x06offset\x18\x02 \x01(\x0b\x32\x46.keyapis.subscription.v1.PrivilegePaging.ValidationError.OffsetInvalidH\x00\x1a\x0e\n\x0cLimitInvalid\x1a\x0f\n\rOffsetInvalidB\x08\n\x06reason\"1\n\x0bOrderByType\x12\x19\n\x15ORDER_BY_TYPE_UNKNOWN\x10\x00\x12\x07\n\x03KEY\x10\x01\">\n\rDirectionType\x12\x1a\n\x16\x44IRECTION_TYPE_UNKNOWN\x10\x00\x12\x08\n\x04\x44\x45SC\x10\x01\x12\x07\n\x03\x41SC\x10\x02\"\x9d\x01\n\x17GetPrivilegeListRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.keyapis.subscription.v1.PrivilegeFilter\x12:\n\x06paging\x18\x02 \x01(\x0b\x32(.keyapis.subscription.v1.PrivilegePagingH\x00\x42\x0c\n\npagination\"\xf6\x02\n\x18GetPrivilegeListResponse\x12\x32\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\".keyapis.subscription.v1.PrivilegeH\x00\x12H\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x37.keyapis.subscription.v1.GetPrivilegeListResponse.ErrorH\x00\x1a\xd3\x01\n\x05\x45rror\x12_\n\x1bprivilege_filter_validation\x18\x01 \x01(\x0b\x32\x38.keyapis.subscription.v1.PrivilegeFilter.ValidationErrorH\x00\x12_\n\x1bprivilege_paging_validation\x18\x02 \x01(\x0b\x32\x38.keyapis.subscription.v1.PrivilegePaging.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"T\n\x18GetPrivilegeCountRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.keyapis.subscription.v1.PrivilegeFilter\"\xf2\x01\n\x19GetPrivilegeCountResponse\x12\x0e\n\x04\x64\x61ta\x18\x01 \x01(\x05H\x00\x12I\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x38.keyapis.subscription.v1.GetPrivilegeCountResponse.ErrorH\x00\x1ar\n\x05\x45rror\x12_\n\x1bprivilege_filter_validation\x18\x01 \x01(\x0b\x32\x38.keyapis.subscription.v1.PrivilegeFilter.ValidationErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\x8e\x01\n\x18GetPrivilegeCheckRequest\x12\x12\n\x05orpon\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x18\n\x0b\x66lat_number\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0eprivilege_type\x18\x03 \x01(\x0e\x32\'.keyapis.subscription.v1.Privilege.TypeB\x03\xe0\x41\x02\"3\n\x19GetPrivilegeCheckResponse\x12\x0e\n\x04\x64\x61ta\x18\x01 \x01(\x08H\x00\x42\x06\n\x04type2\xb8\x04\n\x10PrivilegeService\x12\xa6\x01\n\x10GetPrivilegeList\x12\x30.keyapis.subscription.v1.GetPrivilegeListRequest\x1a\x31.keyapis.subscription.v1.GetPrivilegeListResponse\"+\x82\xd3\xe4\x93\x02%\x12#/subscription/api/v1/privilege/list0\x01\x12\xa8\x01\n\x11GetPrivilegeCount\x12\x31.keyapis.subscription.v1.GetPrivilegeCountRequest\x1a\x32.keyapis.subscription.v1.GetPrivilegeCountResponse\",\x82\xd3\xe4\x93\x02&\x12$/subscription/api/v1/privilege/count\x12\xcf\x01\n\x11GetPrivilegeCheck\x12\x31.keyapis.subscription.v1.GetPrivilegeCheckRequest\x1a\x32.keyapis.subscription.v1.GetPrivilegeCheckResponse\"S\x82\xd3\xe4\x93\x02M\x12K/subscription/api/v1/privilege/check/{orpon}/{flat_number}/{privilege_type}B\xc4\x01\n\x1aru.keyapis.subscription.v1B\x1aKeyapisSubscriptionV1ProtoH\x03P\x00Z\x18/keyapis_subscription_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x15KEYAPISSUBSCRIPTIONV1\xaa\x02\x17Keyapis.Subscription.V1\xca\x02\x17Keyapis\\Subscription\\V1\xea\x02\x19Keyapis::Subscription::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 = [
  ]
  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 Keyapis
  module Subscription
    module V1
      Privilege = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.Privilege").msgclass
      Privilege::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.Privilege.Type").enummodule
      Privilege::StateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.Privilege.StateType").enummodule
      PrivilegeFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegeFilter").msgclass
      PrivilegeFilter::ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegeFilter.ValidationError").msgclass
      PrivilegeFilter::ValidationError::OrponsInvalid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegeFilter.ValidationError.OrponsInvalid").msgclass
      PrivilegeFilter::ValidationError::FlatNumbersInvalid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegeFilter.ValidationError.FlatNumbersInvalid").msgclass
      PrivilegePaging = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging").msgclass
      PrivilegePaging::ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging.ValidationError").msgclass
      PrivilegePaging::ValidationError::LimitInvalid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging.ValidationError.LimitInvalid").msgclass
      PrivilegePaging::ValidationError::OffsetInvalid = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging.ValidationError.OffsetInvalid").msgclass
      PrivilegePaging::OrderByType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging.OrderByType").enummodule
      PrivilegePaging::DirectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.PrivilegePaging.DirectionType").enummodule
      GetPrivilegeListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeListRequest").msgclass
      GetPrivilegeListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeListResponse").msgclass
      GetPrivilegeListResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeListResponse.Error").msgclass
      GetPrivilegeCountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeCountRequest").msgclass
      GetPrivilegeCountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeCountResponse").msgclass
      GetPrivilegeCountResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeCountResponse.Error").msgclass
      GetPrivilegeCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeCheckRequest").msgclass
      GetPrivilegeCheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.subscription.v1.GetPrivilegeCheckResponse").msgclass
    end
  end
end
