# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/identity/v1/keyapis_identity_authorization_v1.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n;keyapis/identity/v1/keyapis_identity_authorization_v1.proto\x12\x13keyapis.identity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"[\n\tUserToken\x12\x19\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\nexpired_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\",\n\x07\x43\x61ptcha\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd3\x01\n\rCaptchaAnswer\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\x9d\x01\n\x05\x45rror\x12L\n\x0cwrong_answer\x18\x01 \x01(\x0b\x32\x34.keyapis.identity.v1.CaptchaAnswer.Error.WrongAnswerH\x00\x12-\n\x07\x63\x61ptcha\x18\x02 \x01(\x0b\x32\x1c.keyapis.identity.v1.Captcha\x1a\r\n\x0bWrongAnswerB\x08\n\x06reason\"\xbc\x03\n\x07OtpCode\x12\x14\n\x07\x63ode_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07timeout\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1a\x84\x03\n\x05\x45rror\x12O\n\x11life_time_expired\x18\x01 \x01(\x0b\x32\x32.keyapis.identity.v1.OtpCode.Error.LifeTimeExpiredH\x00\x12\x44\n\x0bno_attempts\x18\x02 \x01(\x0b\x32-.keyapis.identity.v1.OtpCode.Error.NoAttemptsH\x00\x12O\n\x11\x61\x64\x64ress_not_found\x18\x03 \x01(\x0b\x32\x32.keyapis.identity.v1.OtpCode.Error.AddressNotFoundH\x00\x12\x46\n\x0cinvalid_code\x18\x04 \x01(\x0b\x32..keyapis.identity.v1.OtpCode.Error.InvalidCodeH\x00\x1a\x11\n\x0fLifeTimeExpired\x1a\x0c\n\nNoAttempts\x1a\x11\n\x0f\x41\x64\x64ressNotFound\x1a\r\n\x0bInvalidCodeB\x08\n\x06reason\"\xae\x04\n\x08SsoError\x12Y\n\x19user_is_temporary_blocked\x18\x01 \x01(\x0b\x32\x34.keyapis.identity.v1.SsoError.UserIsTemporaryBlockedH\x00\x12\x44\n\x0euser_not_found\x18\x02 \x01(\x0b\x32*.keyapis.identity.v1.SsoError.UserNotFoundH\x00\x12K\n\x11wrong_credentials\x18\x03 \x01(\x0b\x32..keyapis.identity.v1.SsoError.WrongCredentialsH\x00\x12\x46\n\x0fuser_is_blocked\x18\x04 \x01(\x0b\x32+.keyapis.identity.v1.SsoError.UserIsBlockedH\x00\x12K\n\x11interval_exceeded\x18\x05 \x01(\x0b\x32..keyapis.identity.v1.SsoError.IntervalExceededH\x00\x1a\x18\n\x16UserIsTemporaryBlocked\x1a\x0e\n\x0cUserNotFound\x1a\x46\n\x10WrongCredentials\x12\x32\n\x07\x63\x61ptcha\x18\x01 \x01(\x0b\x32\x1c.keyapis.identity.v1.CaptchaB\x03\xe0\x41\x01\x1a\x0f\n\rUserIsBlocked\x1a\x12\n\x10IntervalExceededB\x08\n\x06reason\"i\n\x08KeyError\x12\x43\n\ruser_creation\x18\x01 \x01(\x0b\x32*.keyapis.identity.v1.KeyError.UserCreationH\x00\x1a\x0e\n\x0cUserCreationB\x08\n\x06reason\"\x87\x01\n PostAuthorizationSendCodeRequest\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x12?\n\x0e\x63\x61ptcha_answer\x18\x02 \x01(\x0b\x32\".keyapis.identity.v1.CaptchaAnswerB\x03\xe0\x41\x01\x42\n\n\x08otp_text\"\xae\x02\n!PostAuthorizationSendCodeResponse\x12,\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1c.keyapis.identity.v1.OtpCodeH\x00\x12M\n\x05\x65rror\x18\x02 \x01(\x0b\x32<.keyapis.identity.v1.PostAuthorizationSendCodeResponse.ErrorH\x00\x1a\x83\x01\n\x05\x45rror\x12\x42\n\x0e\x63\x61ptcha_answer\x18\x01 \x01(\x0b\x32(.keyapis.identity.v1.CaptchaAnswer.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"H\n\x1dPostAuthorizationLoginRequest\x12\x14\n\x07\x63ode_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xcc\x02\n\x1ePostAuthorizationLoginResponse\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1e.keyapis.identity.v1.UserTokenH\x00\x12J\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x39.keyapis.identity.v1.PostAuthorizationLoginResponse.ErrorH\x00\x1a\xa5\x01\n\x05\x45rror\x12\x36\n\x08otp_code\x18\x01 \x01(\x0b\x32\".keyapis.identity.v1.OtpCode.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x12,\n\x03key\x18\x03 \x01(\x0b\x32\x1d.keyapis.identity.v1.KeyErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\xc3\x01\n\'PostAuthorizationLoginByPasswordRequest\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x65mail\x18\x02 \x01(\tH\x00\x12\x0f\n\x05login\x18\x03 \x01(\tH\x00\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12?\n\x0e\x63\x61ptcha_answer\x18\x05 \x01(\x0b\x32\".keyapis.identity.v1.CaptchaAnswerB\x03\xe0\x41\x01\x42\x06\n\x04type\"\xec\x02\n(PostAuthorizationLoginByPasswordResponse\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1e.keyapis.identity.v1.UserTokenH\x00\x12T\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x43.keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse.ErrorH\x00\x1a\xb1\x01\n\x05\x45rror\x12\x42\n\x0e\x63\x61ptcha_answer\x18\x01 \x01(\x0b\x32(.keyapis.identity.v1.CaptchaAnswer.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x12,\n\x03key\x18\x03 \x01(\x0b\x32\x1d.keyapis.identity.v1.KeyErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type2\xec\x04\n\x14\x41uthorizationService\x12\xb2\x01\n\x16PostAuthorizationLogin\x12\x32.keyapis.identity.v1.PostAuthorizationLoginRequest\x1a\x33.keyapis.identity.v1.PostAuthorizationLoginResponse\"/\x82\xd3\xe4\x93\x02)\"$/identity/api/v1/authorization/login:\x01*\x12\xbf\x01\n\x19PostAuthorizationSendCode\x12\x35.keyapis.identity.v1.PostAuthorizationSendCodeRequest\x1a\x36.keyapis.identity.v1.PostAuthorizationSendCodeResponse\"3\x82\xd3\xe4\x93\x02-\"(/identity/api/v1/authorization/send_code:\x01*\x12\xdc\x01\n PostAuthorizationLoginByPassword\x12<.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequest\x1a=.keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse\";\x82\xd3\xe4\x93\x02\x35\"0/identity/api/v1/authorization/login_by_password:\x01*B\xa8\x01\n\x16ru.keyapis.identity.v1B\x16KeyapisIdentityV1ProtoH\x03P\x00Z\x14/keyapis_identity_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x11KEYAPISIDENTITYV1\xaa\x02\x13Keyapis.Identity.V1\xca\x02\x13Keyapis\\Identity\\V1\xea\x02\x15Keyapis::Identity::V1b\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'keyapis.identity.v1.keyapis_identity_authorization_v1_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\026ru.keyapis.identity.v1B\026KeyapisIdentityV1ProtoH\003P\000Z\024/keyapis_identity_v1\330\001\001\370\001\001\242\002\021KEYAPISIDENTITYV1\252\002\023Keyapis.Identity.V1\312\002\023Keyapis\\Identity\\V1\352\002\025Keyapis::Identity::V1'
  _USERTOKEN.fields_by_name['access_token']._options = None
  _USERTOKEN.fields_by_name['access_token']._serialized_options = b'\340A\002'
  _USERTOKEN.fields_by_name['expired_at']._options = None
  _USERTOKEN.fields_by_name['expired_at']._serialized_options = b'\340A\002'
  _CAPTCHA.fields_by_name['id']._options = None
  _CAPTCHA.fields_by_name['id']._serialized_options = b'\340A\002'
  _CAPTCHA.fields_by_name['url']._options = None
  _CAPTCHA.fields_by_name['url']._serialized_options = b'\340A\002'
  _CAPTCHAANSWER.fields_by_name['id']._options = None
  _CAPTCHAANSWER.fields_by_name['id']._serialized_options = b'\340A\002'
  _CAPTCHAANSWER.fields_by_name['code']._options = None
  _CAPTCHAANSWER.fields_by_name['code']._serialized_options = b'\340A\002'
  _OTPCODE.fields_by_name['code_id']._options = None
  _OTPCODE.fields_by_name['code_id']._serialized_options = b'\340A\002'
  _OTPCODE.fields_by_name['timeout']._options = None
  _OTPCODE.fields_by_name['timeout']._serialized_options = b'\340A\002'
  _SSOERROR_WRONGCREDENTIALS.fields_by_name['captcha']._options = None
  _SSOERROR_WRONGCREDENTIALS.fields_by_name['captcha']._serialized_options = b'\340A\001'
  _POSTAUTHORIZATIONSENDCODEREQUEST.fields_by_name['captcha_answer']._options = None
  _POSTAUTHORIZATIONSENDCODEREQUEST.fields_by_name['captcha_answer']._serialized_options = b'\340A\001'
  _POSTAUTHORIZATIONLOGINREQUEST.fields_by_name['code_id']._options = None
  _POSTAUTHORIZATIONLOGINREQUEST.fields_by_name['code_id']._serialized_options = b'\340A\002'
  _POSTAUTHORIZATIONLOGINREQUEST.fields_by_name['code']._options = None
  _POSTAUTHORIZATIONLOGINREQUEST.fields_by_name['code']._serialized_options = b'\340A\002'
  _POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST.fields_by_name['password']._options = None
  _POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST.fields_by_name['password']._serialized_options = b'\340A\002'
  _POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST.fields_by_name['captcha_answer']._options = None
  _POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST.fields_by_name['captcha_answer']._serialized_options = b'\340A\001'
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationLogin']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationLogin']._serialized_options = b'\202\323\344\223\002)\"$/identity/api/v1/authorization/login:\001*'
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationSendCode']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationSendCode']._serialized_options = b'\202\323\344\223\002-\"(/identity/api/v1/authorization/send_code:\001*'
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationLoginByPassword']._options = None
  _AUTHORIZATIONSERVICE.methods_by_name['PostAuthorizationLoginByPassword']._serialized_options = b'\202\323\344\223\0025\"0/identity/api/v1/authorization/login_by_password:\001*'
  _globals['_USERTOKEN']._serialized_start=180
  _globals['_USERTOKEN']._serialized_end=271
  _globals['_CAPTCHA']._serialized_start=273
  _globals['_CAPTCHA']._serialized_end=317
  _globals['_CAPTCHAANSWER']._serialized_start=320
  _globals['_CAPTCHAANSWER']._serialized_end=531
  _globals['_CAPTCHAANSWER_ERROR']._serialized_start=374
  _globals['_CAPTCHAANSWER_ERROR']._serialized_end=531
  _globals['_CAPTCHAANSWER_ERROR_WRONGANSWER']._serialized_start=508
  _globals['_CAPTCHAANSWER_ERROR_WRONGANSWER']._serialized_end=521
  _globals['_OTPCODE']._serialized_start=534
  _globals['_OTPCODE']._serialized_end=978
  _globals['_OTPCODE_ERROR']._serialized_start=590
  _globals['_OTPCODE_ERROR']._serialized_end=978
  _globals['_OTPCODE_ERROR_LIFETIMEEXPIRED']._serialized_start=903
  _globals['_OTPCODE_ERROR_LIFETIMEEXPIRED']._serialized_end=920
  _globals['_OTPCODE_ERROR_NOATTEMPTS']._serialized_start=922
  _globals['_OTPCODE_ERROR_NOATTEMPTS']._serialized_end=934
  _globals['_OTPCODE_ERROR_ADDRESSNOTFOUND']._serialized_start=936
  _globals['_OTPCODE_ERROR_ADDRESSNOTFOUND']._serialized_end=953
  _globals['_OTPCODE_ERROR_INVALIDCODE']._serialized_start=955
  _globals['_OTPCODE_ERROR_INVALIDCODE']._serialized_end=968
  _globals['_SSOERROR']._serialized_start=981
  _globals['_SSOERROR']._serialized_end=1539
  _globals['_SSOERROR_USERISTEMPORARYBLOCKED']._serialized_start=1380
  _globals['_SSOERROR_USERISTEMPORARYBLOCKED']._serialized_end=1404
  _globals['_SSOERROR_USERNOTFOUND']._serialized_start=1406
  _globals['_SSOERROR_USERNOTFOUND']._serialized_end=1420
  _globals['_SSOERROR_WRONGCREDENTIALS']._serialized_start=1422
  _globals['_SSOERROR_WRONGCREDENTIALS']._serialized_end=1492
  _globals['_SSOERROR_USERISBLOCKED']._serialized_start=1494
  _globals['_SSOERROR_USERISBLOCKED']._serialized_end=1509
  _globals['_SSOERROR_INTERVALEXCEEDED']._serialized_start=1511
  _globals['_SSOERROR_INTERVALEXCEEDED']._serialized_end=1529
  _globals['_KEYERROR']._serialized_start=1541
  _globals['_KEYERROR']._serialized_end=1646
  _globals['_KEYERROR_USERCREATION']._serialized_start=1622
  _globals['_KEYERROR_USERCREATION']._serialized_end=1636
  _globals['_POSTAUTHORIZATIONSENDCODEREQUEST']._serialized_start=1649
  _globals['_POSTAUTHORIZATIONSENDCODEREQUEST']._serialized_end=1784
  _globals['_POSTAUTHORIZATIONSENDCODERESPONSE']._serialized_start=1787
  _globals['_POSTAUTHORIZATIONSENDCODERESPONSE']._serialized_end=2089
  _globals['_POSTAUTHORIZATIONSENDCODERESPONSE_ERROR']._serialized_start=1950
  _globals['_POSTAUTHORIZATIONSENDCODERESPONSE_ERROR']._serialized_end=2081
  _globals['_POSTAUTHORIZATIONLOGINREQUEST']._serialized_start=2091
  _globals['_POSTAUTHORIZATIONLOGINREQUEST']._serialized_end=2163
  _globals['_POSTAUTHORIZATIONLOGINRESPONSE']._serialized_start=2166
  _globals['_POSTAUTHORIZATIONLOGINRESPONSE']._serialized_end=2498
  _globals['_POSTAUTHORIZATIONLOGINRESPONSE_ERROR']._serialized_start=2325
  _globals['_POSTAUTHORIZATIONLOGINRESPONSE_ERROR']._serialized_end=2490
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST']._serialized_start=2501
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDREQUEST']._serialized_end=2696
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDRESPONSE']._serialized_start=2699
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDRESPONSE']._serialized_end=3063
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDRESPONSE_ERROR']._serialized_start=2878
  _globals['_POSTAUTHORIZATIONLOGINBYPASSWORDRESPONSE_ERROR']._serialized_end=3055
  _globals['_AUTHORIZATIONSERVICE']._serialized_start=3066
  _globals['_AUTHORIZATIONSERVICE']._serialized_end=3686
# @@protoc_insertion_point(module_scope)
