client_service_pb2.py 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: easyfl/pb/client_service.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf.internal import enum_type_wrapper
  6. from google.protobuf import descriptor as _descriptor
  7. from google.protobuf import descriptor_pool as _descriptor_pool
  8. from google.protobuf import message as _message
  9. from google.protobuf import reflection as _reflection
  10. from google.protobuf import symbol_database as _symbol_database
  11. # @@protoc_insertion_point(imports)
  12. _sym_db = _symbol_database.Default()
  13. from easyfl.pb import common_pb2 as easyfl_dot_pb_dot_common__pb2
  14. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x65\x61syfl/pb/client_service.proto\x12\teasyfl.pb\x1a\x16\x65\x61syfl/pb/common.proto\"\x85\x01\n\x0eOperateRequest\x12&\n\x04type\x18\x01 \x01(\x0e\x32\x18.easyfl.pb.OperationType\x12\r\n\x05model\x18\x02 \x01(\x0c\x12\x12\n\ndata_index\x18\x03 \x01(\x05\x12(\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x18.easyfl.pb.OperateConfig\"\xce\x01\n\rOperateConfig\x12\x12\n\nbatch_size\x18\x01 \x01(\x05\x12\x13\n\x0blocal_epoch\x18\x02 \x01(\x05\x12\x0c\n\x04seed\x18\x03 \x01(\x03\x12\'\n\toptimizer\x18\x04 \x01(\x0b\x32\x14.easyfl.pb.Optimizer\x12\x12\n\nlocal_test\x18\x05 \x01(\x08\x12\x0f\n\x07task_id\x18\x06 \x01(\t\x12\x10\n\x08round_id\x18\x07 \x01(\x05\x12\r\n\x05track\x18\x08 \x01(\x08\x12\x17\n\x0ftest_batch_size\x18\t \x01(\x05\"7\n\tOptimizer\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\n\n\x02lr\x18\x02 \x01(\x02\x12\x10\n\x08momentum\x18\x03 \x01(\x02\"4\n\x0fOperateResponse\x12!\n\x06status\x18\x01 \x01(\x0b\x32\x11.easyfl.pb.Status*4\n\rOperationType\x12\x11\n\rOP_TYPE_TRAIN\x10\x00\x12\x10\n\x0cOP_TYPE_TEST\x10\x01\x32S\n\rClientService\x12\x42\n\x07Operate\x12\x19.easyfl.pb.OperateRequest\x1a\x1a.easyfl.pb.OperateResponse\"\x00\x62\x06proto3')
  15. _OPERATIONTYPE = DESCRIPTOR.enum_types_by_name['OperationType']
  16. OperationType = enum_type_wrapper.EnumTypeWrapper(_OPERATIONTYPE)
  17. OP_TYPE_TRAIN = 0
  18. OP_TYPE_TEST = 1
  19. _OPERATEREQUEST = DESCRIPTOR.message_types_by_name['OperateRequest']
  20. _OPERATECONFIG = DESCRIPTOR.message_types_by_name['OperateConfig']
  21. _OPTIMIZER = DESCRIPTOR.message_types_by_name['Optimizer']
  22. _OPERATERESPONSE = DESCRIPTOR.message_types_by_name['OperateResponse']
  23. OperateRequest = _reflection.GeneratedProtocolMessageType('OperateRequest', (_message.Message,), {
  24. 'DESCRIPTOR' : _OPERATEREQUEST,
  25. '__module__' : 'easyfl.pb.client_service_pb2'
  26. # @@protoc_insertion_point(class_scope:easyfl.pb.OperateRequest)
  27. })
  28. _sym_db.RegisterMessage(OperateRequest)
  29. OperateConfig = _reflection.GeneratedProtocolMessageType('OperateConfig', (_message.Message,), {
  30. 'DESCRIPTOR' : _OPERATECONFIG,
  31. '__module__' : 'easyfl.pb.client_service_pb2'
  32. # @@protoc_insertion_point(class_scope:easyfl.pb.OperateConfig)
  33. })
  34. _sym_db.RegisterMessage(OperateConfig)
  35. Optimizer = _reflection.GeneratedProtocolMessageType('Optimizer', (_message.Message,), {
  36. 'DESCRIPTOR' : _OPTIMIZER,
  37. '__module__' : 'easyfl.pb.client_service_pb2'
  38. # @@protoc_insertion_point(class_scope:easyfl.pb.Optimizer)
  39. })
  40. _sym_db.RegisterMessage(Optimizer)
  41. OperateResponse = _reflection.GeneratedProtocolMessageType('OperateResponse', (_message.Message,), {
  42. 'DESCRIPTOR' : _OPERATERESPONSE,
  43. '__module__' : 'easyfl.pb.client_service_pb2'
  44. # @@protoc_insertion_point(class_scope:easyfl.pb.OperateResponse)
  45. })
  46. _sym_db.RegisterMessage(OperateResponse)
  47. _CLIENTSERVICE = DESCRIPTOR.services_by_name['ClientService']
  48. if _descriptor._USE_C_DESCRIPTORS == False:
  49. DESCRIPTOR._options = None
  50. _OPERATIONTYPE._serialized_start=525
  51. _OPERATIONTYPE._serialized_end=577
  52. _OPERATEREQUEST._serialized_start=70
  53. _OPERATEREQUEST._serialized_end=203
  54. _OPERATECONFIG._serialized_start=206
  55. _OPERATECONFIG._serialized_end=412
  56. _OPTIMIZER._serialized_start=414
  57. _OPTIMIZER._serialized_end=469
  58. _OPERATERESPONSE._serialized_start=471
  59. _OPERATERESPONSE._serialized_end=523
  60. _CLIENTSERVICE._serialized_start=579
  61. _CLIENTSERVICE._serialized_end=662
  62. # @@protoc_insertion_point(module_scope)