ws_pb2.py 2.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: ws.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import descriptor_pool as _descriptor_pool
  7. from google.protobuf import symbol_database as _symbol_database
  8. from google.protobuf.internal import builder as _builder
  9. # @@protoc_insertion_point(imports)
  10. _sym_db = _symbol_database.Default()
  11. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x08ws.proto\x12\x02ws\"\xe3\x01\n\x07NewTask\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0csource_image\x18\x02 \x01(\t\x12\x1b\n\x13source_image_bearer\x18\t \x01(\t\x12\x17\n\x0ftarget_language\x18\x03 \x01(\t\x12\x10\n\x08\x64\x65tector\x18\x04 \x01(\t\x12\x11\n\tdirection\x18\x05 \x01(\t\x12\x12\n\ntranslator\x18\x06 \x01(\t\x12\x0c\n\x04size\x18\x07 \x01(\t\x12\x18\n\x10translation_mask\x18\x08 \x01(\t\x12\x1f\n\x17translation_mask_bearer\x18\n \x01(\t\"$\n\x06Status\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\"G\n\nFinishTask\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x1c\n\x14has_translation_mask\x18\x03 \x01(\x08\"\x83\x01\n\x10WebSocketMessage\x12\x1f\n\x08new_task\x18\x01 \x01(\x0b\x32\x0b.ws.NewTaskH\x00\x12\x1c\n\x06status\x18\x02 \x01(\x0b\x32\n.ws.StatusH\x00\x12%\n\x0b\x66inish_task\x18\x03 \x01(\x0b\x32\x0e.ws.FinishTaskH\x00\x42\t\n\x07messageb\x06proto3')
  12. _globals = globals()
  13. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  14. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ws_pb2', _globals)
  15. if _descriptor._USE_C_DESCRIPTORS == False:
  16. DESCRIPTOR._options = None
  17. _globals['_NEWTASK']._serialized_start=17
  18. _globals['_NEWTASK']._serialized_end=244
  19. _globals['_STATUS']._serialized_start=246
  20. _globals['_STATUS']._serialized_end=282
  21. _globals['_FINISHTASK']._serialized_start=284
  22. _globals['_FINISHTASK']._serialized_end=355
  23. _globals['_WEBSOCKETMESSAGE']._serialized_start=358
  24. _globals['_WEBSOCKETMESSAGE']._serialized_end=489
  25. # @@protoc_insertion_point(module_scope)