# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: speechly/identity/v2/identity_api.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from speechly.identity.v2 import identity_pb2 as speechly_dot_identity_dot_v2_dot_identity__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='speechly/identity/v2/identity_api.proto',
  package='speechly.identity.v2',
  syntax='proto3',
  serialized_options=b'\n\030com.speechly.identity.v2B\020IdentityApiProtoP\001Z\037speechly/identity/v2;identityv2\242\002\003SIX\252\002\024Speechly.Identity.V2\312\002\024Speechly\\Identity\\V2',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\'speechly/identity/v2/identity_api.proto\x12\x14speechly.identity.v2\x1a#speechly/identity/v2/identity.proto\"\xa0\x01\n\x0cLoginRequest\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12=\n\x0b\x61pplication\x18\x02 \x01(\x0b\x32&.speechly.identity.v2.ApplicationScopeH\x00\x12\x35\n\x07project\x18\x03 \x01(\x0b\x32\".speechly.identity.v2.ProjectScopeH\x00\x42\x07\n\x05scope\"a\n\rLoginResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x13\n\x0bvalid_for_s\x18\x02 \x01(\r\x12\x18\n\x10\x65xpires_at_epoch\x18\x03 \x01(\x04\x12\x12\n\nexpires_at\x18\x04 \x01(\t2_\n\x0bIdentityAPI\x12P\n\x05Login\x12\".speechly.identity.v2.LoginRequest\x1a#.speechly.identity.v2.LoginResponseB\x83\x01\n\x18\x63om.speechly.identity.v2B\x10IdentityApiProtoP\x01Z\x1fspeechly/identity/v2;identityv2\xa2\x02\x03SIX\xaa\x02\x14Speechly.Identity.V2\xca\x02\x14Speechly\\Identity\\V2b\x06proto3'
  ,
  dependencies=[speechly_dot_identity_dot_v2_dot_identity__pb2.DESCRIPTOR,])




_LOGINREQUEST = _descriptor.Descriptor(
  name='LoginRequest',
  full_name='speechly.identity.v2.LoginRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='device_id', full_name='speechly.identity.v2.LoginRequest.device_id', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='application', full_name='speechly.identity.v2.LoginRequest.application', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='project', full_name='speechly.identity.v2.LoginRequest.project', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='scope', full_name='speechly.identity.v2.LoginRequest.scope',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=103,
  serialized_end=263,
)


_LOGINRESPONSE = _descriptor.Descriptor(
  name='LoginResponse',
  full_name='speechly.identity.v2.LoginResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='token', full_name='speechly.identity.v2.LoginResponse.token', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='valid_for_s', full_name='speechly.identity.v2.LoginResponse.valid_for_s', index=1,
      number=2, type=13, cpp_type=3, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='expires_at_epoch', full_name='speechly.identity.v2.LoginResponse.expires_at_epoch', index=2,
      number=3, type=4, cpp_type=4, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='expires_at', full_name='speechly.identity.v2.LoginResponse.expires_at', index=3,
      number=4, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=265,
  serialized_end=362,
)

_LOGINREQUEST.fields_by_name['application'].message_type = speechly_dot_identity_dot_v2_dot_identity__pb2._APPLICATIONSCOPE
_LOGINREQUEST.fields_by_name['project'].message_type = speechly_dot_identity_dot_v2_dot_identity__pb2._PROJECTSCOPE
_LOGINREQUEST.oneofs_by_name['scope'].fields.append(
  _LOGINREQUEST.fields_by_name['application'])
_LOGINREQUEST.fields_by_name['application'].containing_oneof = _LOGINREQUEST.oneofs_by_name['scope']
_LOGINREQUEST.oneofs_by_name['scope'].fields.append(
  _LOGINREQUEST.fields_by_name['project'])
_LOGINREQUEST.fields_by_name['project'].containing_oneof = _LOGINREQUEST.oneofs_by_name['scope']
DESCRIPTOR.message_types_by_name['LoginRequest'] = _LOGINREQUEST
DESCRIPTOR.message_types_by_name['LoginResponse'] = _LOGINRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

LoginRequest = _reflection.GeneratedProtocolMessageType('LoginRequest', (_message.Message,), {
  'DESCRIPTOR' : _LOGINREQUEST,
  '__module__' : 'speechly.identity.v2.identity_api_pb2'
  # @@protoc_insertion_point(class_scope:speechly.identity.v2.LoginRequest)
  })
_sym_db.RegisterMessage(LoginRequest)

LoginResponse = _reflection.GeneratedProtocolMessageType('LoginResponse', (_message.Message,), {
  'DESCRIPTOR' : _LOGINRESPONSE,
  '__module__' : 'speechly.identity.v2.identity_api_pb2'
  # @@protoc_insertion_point(class_scope:speechly.identity.v2.LoginResponse)
  })
_sym_db.RegisterMessage(LoginResponse)


DESCRIPTOR._options = None

_IDENTITYAPI = _descriptor.ServiceDescriptor(
  name='IdentityAPI',
  full_name='speechly.identity.v2.IdentityAPI',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=364,
  serialized_end=459,
  methods=[
  _descriptor.MethodDescriptor(
    name='Login',
    full_name='speechly.identity.v2.IdentityAPI.Login',
    index=0,
    containing_service=None,
    input_type=_LOGINREQUEST,
    output_type=_LOGINRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_IDENTITYAPI)

DESCRIPTOR.services_by_name['IdentityAPI'] = _IDENTITYAPI

# @@protoc_insertion_point(module_scope)
