# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/identity/v1/keyapis_identity_oauth2_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
from keyapis.identity.v1 import keyapis_identity_authorization_v1_pb2 as keyapis_dot_identity_dot_v1_dot_keyapis__identity__authorization__v1__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4keyapis/identity/v1/keyapis_identity_oauth2_v1.proto\x12\x13keyapis.identity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a;keyapis/identity/v1/keyapis_identity_authorization_v1.proto\"j\n\x10\x41uthServiceError\x12?\n\x04\x61uth\x18\x01 \x01(\x0b\x32/.keyapis.identity.v1.AuthServiceError.AuthErrorH\x00\x1a\x0b\n\tAuthErrorB\x08\n\x06reason\"e\n\x1cPostOauth2LoginByCodeRequest\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\x12\x1c\n\x0flogin_challenge\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd9\x02\n\x1dPostOauth2LoginByCodeResponse\x12I\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x38.keyapis.identity.v1.PostOauth2LoginByCodeResponse.ErrorH\x00\x1a\xe4\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\x12=\n\x0c\x61uth_service\x18\x04 \x01(\x0b\x32%.keyapis.identity.v1.AuthServiceErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\xda\x01\n PostOauth2LoginByPasswordRequest\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\x12\x1c\n\x0flogin_challenge\x18\x06 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04type\"\xed\x02\n!PostOauth2LoginByPasswordResponse\x12M\n\x05\x65rror\x18\x01 \x01(\x0b\x32<.keyapis.identity.v1.PostOauth2LoginByPasswordResponse.ErrorH\x00\x1a\xf0\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\x12=\n\x0c\x61uth_service\x18\x04 \x01(\x0b\x32%.keyapis.identity.v1.AuthServiceErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"9\n\x17GetOauth2ConsentRequest\x12\x1e\n\x11\x63onsent_challenge\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xba\x01\n\x18GetOauth2ConsentResponse\x12\x44\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x33.keyapis.identity.v1.GetOauth2ConsentResponse.ErrorH\x00\x1aP\n\x05\x45rror\x12=\n\x0c\x61uth_service\x18\x01 \x01(\x0b\x32%.keyapis.identity.v1.AuthServiceErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type2\xa0\x04\n\rOauth2Service\x12\xb0\x01\n\x15PostOauth2LoginByCode\x12\x31.keyapis.identity.v1.PostOauth2LoginByCodeRequest\x1a\x32.keyapis.identity.v1.PostOauth2LoginByCodeResponse\"0\x82\xd3\xe4\x93\x02*\"%/identity/api/v1/oauth2/login_by_code:\x01*\x12\xc0\x01\n\x19PostOauth2LoginByPassword\x12\x35.keyapis.identity.v1.PostOauth2LoginByPasswordRequest\x1a\x36.keyapis.identity.v1.PostOauth2LoginByPasswordResponse\"4\x82\xd3\xe4\x93\x02.\")/identity/api/v1/oauth2/login_by_password:\x01*\x12\x98\x01\n\x10GetOauth2Consent\x12,.keyapis.identity.v1.GetOauth2ConsentRequest\x1a-.keyapis.identity.v1.GetOauth2ConsentResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/identity/api/v1/oauth2/consentB\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_oauth2_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'
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['code_id']._options = None
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['code_id']._serialized_options = b'\340A\002'
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['code']._options = None
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['code']._serialized_options = b'\340A\002'
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['login_challenge']._options = None
  _POSTOAUTH2LOGINBYCODEREQUEST.fields_by_name['login_challenge']._serialized_options = b'\340A\002'
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['password']._options = None
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['password']._serialized_options = b'\340A\002'
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['captcha_answer']._options = None
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['captcha_answer']._serialized_options = b'\340A\001'
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['login_challenge']._options = None
  _POSTOAUTH2LOGINBYPASSWORDREQUEST.fields_by_name['login_challenge']._serialized_options = b'\340A\002'
  _GETOAUTH2CONSENTREQUEST.fields_by_name['consent_challenge']._options = None
  _GETOAUTH2CONSENTREQUEST.fields_by_name['consent_challenge']._serialized_options = b'\340A\002'
  _OAUTH2SERVICE.methods_by_name['PostOauth2LoginByCode']._options = None
  _OAUTH2SERVICE.methods_by_name['PostOauth2LoginByCode']._serialized_options = b'\202\323\344\223\002*\"%/identity/api/v1/oauth2/login_by_code:\001*'
  _OAUTH2SERVICE.methods_by_name['PostOauth2LoginByPassword']._options = None
  _OAUTH2SERVICE.methods_by_name['PostOauth2LoginByPassword']._serialized_options = b'\202\323\344\223\002.\")/identity/api/v1/oauth2/login_by_password:\001*'
  _OAUTH2SERVICE.methods_by_name['GetOauth2Consent']._options = None
  _OAUTH2SERVICE.methods_by_name['GetOauth2Consent']._serialized_options = b'\202\323\344\223\002!\022\037/identity/api/v1/oauth2/consent'
  _globals['_AUTHSERVICEERROR']._serialized_start=234
  _globals['_AUTHSERVICEERROR']._serialized_end=340
  _globals['_AUTHSERVICEERROR_AUTHERROR']._serialized_start=319
  _globals['_AUTHSERVICEERROR_AUTHERROR']._serialized_end=330
  _globals['_POSTOAUTH2LOGINBYCODEREQUEST']._serialized_start=342
  _globals['_POSTOAUTH2LOGINBYCODEREQUEST']._serialized_end=443
  _globals['_POSTOAUTH2LOGINBYCODERESPONSE']._serialized_start=446
  _globals['_POSTOAUTH2LOGINBYCODERESPONSE']._serialized_end=791
  _globals['_POSTOAUTH2LOGINBYCODERESPONSE_ERROR']._serialized_start=555
  _globals['_POSTOAUTH2LOGINBYCODERESPONSE_ERROR']._serialized_end=783
  _globals['_POSTOAUTH2LOGINBYPASSWORDREQUEST']._serialized_start=794
  _globals['_POSTOAUTH2LOGINBYPASSWORDREQUEST']._serialized_end=1012
  _globals['_POSTOAUTH2LOGINBYPASSWORDRESPONSE']._serialized_start=1015
  _globals['_POSTOAUTH2LOGINBYPASSWORDRESPONSE']._serialized_end=1380
  _globals['_POSTOAUTH2LOGINBYPASSWORDRESPONSE_ERROR']._serialized_start=1132
  _globals['_POSTOAUTH2LOGINBYPASSWORDRESPONSE_ERROR']._serialized_end=1372
  _globals['_GETOAUTH2CONSENTREQUEST']._serialized_start=1382
  _globals['_GETOAUTH2CONSENTREQUEST']._serialized_end=1439
  _globals['_GETOAUTH2CONSENTRESPONSE']._serialized_start=1442
  _globals['_GETOAUTH2CONSENTRESPONSE']._serialized_end=1628
  _globals['_GETOAUTH2CONSENTRESPONSE_ERROR']._serialized_start=1540
  _globals['_GETOAUTH2CONSENTRESPONSE_ERROR']._serialized_end=1620
  _globals['_OAUTH2SERVICE']._serialized_start=1631
  _globals['_OAUTH2SERVICE']._serialized_end=2175
# @@protoc_insertion_point(module_scope)
