# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: cogneed-protos/audio-stream/audio-web-middleware/audio-web-middleware-service.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
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 cogneed_protos.audio_stream.common import common_pb2 as cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='cogneed-protos/audio-stream/audio-web-middleware/audio-web-middleware-service.proto',
  package='ai.cogneed.cloud.speech.v1',
  syntax='proto3',
  serialized_options=_b('\n\032ai.cogneed.cloud.speech.v1P\001'),
  serialized_pb=_b('\nScogneed-protos/audio-stream/audio-web-middleware/audio-web-middleware-service.proto\x12\x1a\x61i.cogneed.cloud.speech.v1\x1a/cogneed-protos/audio-stream/common/common.proto\"e\n\x13InitSessionResponse\x12;\n\x0bstatus_code\x18\x01 \x01(\x0e\x32&.ai.cogneed.cloud.speech.v1.StatusCode\x12\x11\n\tcall_uuid\x18\x02 \x01(\t\"M\n\x0eStatusResponse\x12;\n\x0bstatus_code\x18\x01 \x01(\x0e\x32&.ai.cogneed.cloud.speech.v1.StatusCode\")\n\x11\x45ndSessionRequest\x12\x14\n\x0csession_uuid\x18\x01 \x01(\t\"(\n\x10SubscribeRequest\x12\x14\n\x0csession_uuid\x18\x01 \x01(\t\"\x9e\x01\n\x14SubscriptionResponse\x12\x42\n\tdetection\x18\x01 \x01(\x0b\x32-.ai.cogneed.cloud.speech.v1.DetectionResponseH\x00\x12\x36\n\x04\x62\x65\x61t\x18\x02 \x01(\x0e\x32&.ai.cogneed.cloud.speech.v1.StatusCodeH\x00\x42\n\n\x08response\"]\n\x0fWebAudioRequest\x12\x34\n\x05\x61udio\x18\x01 \x01(\x0b\x32%.ai.cogneed.cloud.speech.v1.AudioBlob\x12\x14\n\x0csession_uuid\x18\x02 \x01(\t2\xbd\x03\n\x0fWebAudioService\x12o\n\x0cinit_session\x12..ai.cogneed.cloud.speech.v1.InitSessionRequest\x1a/.ai.cogneed.cloud.speech.v1.InitSessionResponse\x12`\n\x05\x61udio\x12+.ai.cogneed.cloud.speech.v1.WebAudioRequest\x1a*.ai.cogneed.cloud.speech.v1.StatusResponse\x12h\n\x0b\x65nd_session\x12-.ai.cogneed.cloud.speech.v1.EndSessionRequest\x1a*.ai.cogneed.cloud.speech.v1.StatusResponse\x12m\n\tsubscribe\x12,.ai.cogneed.cloud.speech.v1.SubscribeRequest\x1a\x30.ai.cogneed.cloud.speech.v1.SubscriptionResponse0\x01\x42\x1e\n\x1a\x61i.cogneed.cloud.speech.v1P\x01\x62\x06proto3')
  ,
  dependencies=[cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2.DESCRIPTOR,])




_INITSESSIONRESPONSE = _descriptor.Descriptor(
  name='InitSessionResponse',
  full_name='ai.cogneed.cloud.speech.v1.InitSessionResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='status_code', full_name='ai.cogneed.cloud.speech.v1.InitSessionResponse.status_code', index=0,
      number=1, type=14, cpp_type=8, 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),
    _descriptor.FieldDescriptor(
      name='call_uuid', full_name='ai.cogneed.cloud.speech.v1.InitSessionResponse.call_uuid', index=1,
      number=2, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=164,
  serialized_end=265,
)


_STATUSRESPONSE = _descriptor.Descriptor(
  name='StatusResponse',
  full_name='ai.cogneed.cloud.speech.v1.StatusResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='status_code', full_name='ai.cogneed.cloud.speech.v1.StatusResponse.status_code', index=0,
      number=1, type=14, cpp_type=8, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=267,
  serialized_end=344,
)


_ENDSESSIONREQUEST = _descriptor.Descriptor(
  name='EndSessionRequest',
  full_name='ai.cogneed.cloud.speech.v1.EndSessionRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='session_uuid', full_name='ai.cogneed.cloud.speech.v1.EndSessionRequest.session_uuid', 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=346,
  serialized_end=387,
)


_SUBSCRIBEREQUEST = _descriptor.Descriptor(
  name='SubscribeRequest',
  full_name='ai.cogneed.cloud.speech.v1.SubscribeRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='session_uuid', full_name='ai.cogneed.cloud.speech.v1.SubscribeRequest.session_uuid', 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=389,
  serialized_end=429,
)


_SUBSCRIPTIONRESPONSE = _descriptor.Descriptor(
  name='SubscriptionResponse',
  full_name='ai.cogneed.cloud.speech.v1.SubscriptionResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='detection', full_name='ai.cogneed.cloud.speech.v1.SubscriptionResponse.detection', index=0,
      number=1, 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),
    _descriptor.FieldDescriptor(
      name='beat', full_name='ai.cogneed.cloud.speech.v1.SubscriptionResponse.beat', index=1,
      number=2, type=14, cpp_type=8, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='response', full_name='ai.cogneed.cloud.speech.v1.SubscriptionResponse.response',
      index=0, containing_type=None, fields=[]),
  ],
  serialized_start=432,
  serialized_end=590,
)


_WEBAUDIOREQUEST = _descriptor.Descriptor(
  name='WebAudioRequest',
  full_name='ai.cogneed.cloud.speech.v1.WebAudioRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='audio', full_name='ai.cogneed.cloud.speech.v1.WebAudioRequest.audio', index=0,
      number=1, 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),
    _descriptor.FieldDescriptor(
      name='session_uuid', full_name='ai.cogneed.cloud.speech.v1.WebAudioRequest.session_uuid', index=1,
      number=2, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=592,
  serialized_end=685,
)

_INITSESSIONRESPONSE.fields_by_name['status_code'].enum_type = cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._STATUSCODE
_STATUSRESPONSE.fields_by_name['status_code'].enum_type = cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._STATUSCODE
_SUBSCRIPTIONRESPONSE.fields_by_name['detection'].message_type = cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._DETECTIONRESPONSE
_SUBSCRIPTIONRESPONSE.fields_by_name['beat'].enum_type = cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._STATUSCODE
_SUBSCRIPTIONRESPONSE.oneofs_by_name['response'].fields.append(
  _SUBSCRIPTIONRESPONSE.fields_by_name['detection'])
_SUBSCRIPTIONRESPONSE.fields_by_name['detection'].containing_oneof = _SUBSCRIPTIONRESPONSE.oneofs_by_name['response']
_SUBSCRIPTIONRESPONSE.oneofs_by_name['response'].fields.append(
  _SUBSCRIPTIONRESPONSE.fields_by_name['beat'])
_SUBSCRIPTIONRESPONSE.fields_by_name['beat'].containing_oneof = _SUBSCRIPTIONRESPONSE.oneofs_by_name['response']
_WEBAUDIOREQUEST.fields_by_name['audio'].message_type = cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._AUDIOBLOB
DESCRIPTOR.message_types_by_name['InitSessionResponse'] = _INITSESSIONRESPONSE
DESCRIPTOR.message_types_by_name['StatusResponse'] = _STATUSRESPONSE
DESCRIPTOR.message_types_by_name['EndSessionRequest'] = _ENDSESSIONREQUEST
DESCRIPTOR.message_types_by_name['SubscribeRequest'] = _SUBSCRIBEREQUEST
DESCRIPTOR.message_types_by_name['SubscriptionResponse'] = _SUBSCRIPTIONRESPONSE
DESCRIPTOR.message_types_by_name['WebAudioRequest'] = _WEBAUDIOREQUEST
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

InitSessionResponse = _reflection.GeneratedProtocolMessageType('InitSessionResponse', (_message.Message,), dict(
  DESCRIPTOR = _INITSESSIONRESPONSE,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.InitSessionResponse)
  ))
_sym_db.RegisterMessage(InitSessionResponse)

StatusResponse = _reflection.GeneratedProtocolMessageType('StatusResponse', (_message.Message,), dict(
  DESCRIPTOR = _STATUSRESPONSE,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.StatusResponse)
  ))
_sym_db.RegisterMessage(StatusResponse)

EndSessionRequest = _reflection.GeneratedProtocolMessageType('EndSessionRequest', (_message.Message,), dict(
  DESCRIPTOR = _ENDSESSIONREQUEST,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.EndSessionRequest)
  ))
_sym_db.RegisterMessage(EndSessionRequest)

SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), dict(
  DESCRIPTOR = _SUBSCRIBEREQUEST,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.SubscribeRequest)
  ))
_sym_db.RegisterMessage(SubscribeRequest)

SubscriptionResponse = _reflection.GeneratedProtocolMessageType('SubscriptionResponse', (_message.Message,), dict(
  DESCRIPTOR = _SUBSCRIPTIONRESPONSE,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.SubscriptionResponse)
  ))
_sym_db.RegisterMessage(SubscriptionResponse)

WebAudioRequest = _reflection.GeneratedProtocolMessageType('WebAudioRequest', (_message.Message,), dict(
  DESCRIPTOR = _WEBAUDIOREQUEST,
  __module__ = 'cogneed_protos.audio_stream.audio_web_middleware.audio_web_middleware_service_pb2'
  # @@protoc_insertion_point(class_scope:ai.cogneed.cloud.speech.v1.WebAudioRequest)
  ))
_sym_db.RegisterMessage(WebAudioRequest)


DESCRIPTOR._options = None

_WEBAUDIOSERVICE = _descriptor.ServiceDescriptor(
  name='WebAudioService',
  full_name='ai.cogneed.cloud.speech.v1.WebAudioService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  serialized_start=688,
  serialized_end=1133,
  methods=[
  _descriptor.MethodDescriptor(
    name='init_session',
    full_name='ai.cogneed.cloud.speech.v1.WebAudioService.init_session',
    index=0,
    containing_service=None,
    input_type=cogneed__protos_dot_audio__stream_dot_common_dot_common__pb2._INITSESSIONREQUEST,
    output_type=_INITSESSIONRESPONSE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='audio',
    full_name='ai.cogneed.cloud.speech.v1.WebAudioService.audio',
    index=1,
    containing_service=None,
    input_type=_WEBAUDIOREQUEST,
    output_type=_STATUSRESPONSE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='end_session',
    full_name='ai.cogneed.cloud.speech.v1.WebAudioService.end_session',
    index=2,
    containing_service=None,
    input_type=_ENDSESSIONREQUEST,
    output_type=_STATUSRESPONSE,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='subscribe',
    full_name='ai.cogneed.cloud.speech.v1.WebAudioService.subscribe',
    index=3,
    containing_service=None,
    input_type=_SUBSCRIBEREQUEST,
    output_type=_SUBSCRIPTIONRESPONSE,
    serialized_options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_WEBAUDIOSERVICE)

DESCRIPTOR.services_by_name['WebAudioService'] = _WEBAUDIOSERVICE

# @@protoc_insertion_point(module_scope)
