flwr-nightly 1.7.0.dev20240117__py3-none-any.whl → 1.7.0.dev20240118__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. flwr/client/app.py +1 -1
  2. flwr/client/grpc_client/connection.py +7 -4
  3. flwr/client/grpc_rere_client/connection.py +4 -4
  4. flwr/client/message_handler/message_handler.py +11 -2
  5. flwr/client/message_handler/task_handler.py +7 -4
  6. flwr/client/node_state_tests.py +1 -1
  7. flwr/client/rest_client/connection.py +3 -3
  8. flwr/client/typing.py +1 -1
  9. flwr/common/configsrecord.py +98 -0
  10. flwr/common/logger.py +14 -0
  11. flwr/common/metricsrecord.py +96 -0
  12. flwr/common/recordset.py +3 -10
  13. flwr/common/serde.py +2 -2
  14. flwr/common/typing.py +9 -0
  15. flwr/driver/app.py +5 -3
  16. flwr/driver/driver.py +3 -3
  17. flwr/driver/driver_client_proxy.py +24 -15
  18. flwr/driver/grpc_driver.py +2 -2
  19. flwr/proto/driver_pb2.py +23 -88
  20. flwr/proto/fleet_pb2.py +29 -111
  21. flwr/proto/node_pb2.py +7 -15
  22. flwr/proto/task_pb2.py +33 -127
  23. flwr/proto/transport_pb2.py +69 -278
  24. flwr/server/app.py +9 -3
  25. flwr/server/driver/driver_servicer.py +4 -4
  26. flwr/server/fleet/grpc_bidi/flower_service_servicer.py +5 -2
  27. flwr/server/fleet/grpc_bidi/grpc_bridge.py +4 -1
  28. flwr/server/fleet/grpc_bidi/grpc_client_proxy.py +4 -1
  29. flwr/server/fleet/grpc_bidi/grpc_server.py +3 -1
  30. flwr/server/fleet/grpc_bidi/ins_scheduler.py +6 -3
  31. flwr/server/fleet/grpc_rere/fleet_servicer.py +2 -2
  32. flwr/server/fleet/message_handler/message_handler.py +3 -3
  33. flwr/server/fleet/rest_rere/rest_api.py +1 -1
  34. flwr/server/state/in_memory_state.py +1 -1
  35. flwr/server/state/sqlite_state.py +6 -3
  36. flwr/server/state/state.py +1 -1
  37. flwr/server/strategy/fedxgb_nn_avg.py +9 -2
  38. flwr/server/utils/validator.py +1 -1
  39. {flwr_nightly-1.7.0.dev20240117.dist-info → flwr_nightly-1.7.0.dev20240118.dist-info}/METADATA +3 -3
  40. {flwr_nightly-1.7.0.dev20240117.dist-info → flwr_nightly-1.7.0.dev20240118.dist-info}/RECORD +43 -41
  41. {flwr_nightly-1.7.0.dev20240117.dist-info → flwr_nightly-1.7.0.dev20240118.dist-info}/LICENSE +0 -0
  42. {flwr_nightly-1.7.0.dev20240117.dist-info → flwr_nightly-1.7.0.dev20240118.dist-info}/WHEEL +0 -0
  43. {flwr_nightly-1.7.0.dev20240117.dist-info → flwr_nightly-1.7.0.dev20240118.dist-info}/entry_points.txt +0 -0
flwr/proto/driver_pb2.py CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: flwr/proto/driver.proto
4
+ # Protobuf Python Version: 4.25.0
4
5
  """Generated protocol buffer code."""
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
10
  # @@protoc_insertion_point(imports)
11
11
 
12
12
  _sym_db = _symbol_database.Default()
@@ -18,92 +18,27 @@ from flwr.proto import task_pb2 as flwr_dot_proto_dot_task__pb2
18
18
 
19
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x66lwr/proto/driver.proto\x12\nflwr.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x15\x66lwr/proto/task.proto\"\x12\n\x10\x43reateRunRequest\"#\n\x11\x43reateRunResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\x12\"!\n\x0fGetNodesRequest\x12\x0e\n\x06run_id\x18\x01 \x01(\x12\"3\n\x10GetNodesResponse\x12\x1f\n\x05nodes\x18\x01 \x03(\x0b\x32\x10.flwr.proto.Node\"@\n\x12PushTaskInsRequest\x12*\n\rtask_ins_list\x18\x01 \x03(\x0b\x32\x13.flwr.proto.TaskIns\"\'\n\x13PushTaskInsResponse\x12\x10\n\x08task_ids\x18\x02 \x03(\t\"F\n\x12PullTaskResRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x10\n\x08task_ids\x18\x02 \x03(\t\"A\n\x13PullTaskResResponse\x12*\n\rtask_res_list\x18\x01 \x03(\x0b\x32\x13.flwr.proto.TaskRes2\xc1\x02\n\x06\x44river\x12J\n\tCreateRun\x12\x1c.flwr.proto.CreateRunRequest\x1a\x1d.flwr.proto.CreateRunResponse\"\x00\x12G\n\x08GetNodes\x12\x1b.flwr.proto.GetNodesRequest\x1a\x1c.flwr.proto.GetNodesResponse\"\x00\x12P\n\x0bPushTaskIns\x12\x1e.flwr.proto.PushTaskInsRequest\x1a\x1f.flwr.proto.PushTaskInsResponse\"\x00\x12P\n\x0bPullTaskRes\x12\x1e.flwr.proto.PullTaskResRequest\x1a\x1f.flwr.proto.PullTaskResResponse\"\x00\x62\x06proto3')
20
20
 
21
-
22
-
23
- _CREATERUNREQUEST = DESCRIPTOR.message_types_by_name['CreateRunRequest']
24
- _CREATERUNRESPONSE = DESCRIPTOR.message_types_by_name['CreateRunResponse']
25
- _GETNODESREQUEST = DESCRIPTOR.message_types_by_name['GetNodesRequest']
26
- _GETNODESRESPONSE = DESCRIPTOR.message_types_by_name['GetNodesResponse']
27
- _PUSHTASKINSREQUEST = DESCRIPTOR.message_types_by_name['PushTaskInsRequest']
28
- _PUSHTASKINSRESPONSE = DESCRIPTOR.message_types_by_name['PushTaskInsResponse']
29
- _PULLTASKRESREQUEST = DESCRIPTOR.message_types_by_name['PullTaskResRequest']
30
- _PULLTASKRESRESPONSE = DESCRIPTOR.message_types_by_name['PullTaskResResponse']
31
- CreateRunRequest = _reflection.GeneratedProtocolMessageType('CreateRunRequest', (_message.Message,), {
32
- 'DESCRIPTOR' : _CREATERUNREQUEST,
33
- '__module__' : 'flwr.proto.driver_pb2'
34
- # @@protoc_insertion_point(class_scope:flwr.proto.CreateRunRequest)
35
- })
36
- _sym_db.RegisterMessage(CreateRunRequest)
37
-
38
- CreateRunResponse = _reflection.GeneratedProtocolMessageType('CreateRunResponse', (_message.Message,), {
39
- 'DESCRIPTOR' : _CREATERUNRESPONSE,
40
- '__module__' : 'flwr.proto.driver_pb2'
41
- # @@protoc_insertion_point(class_scope:flwr.proto.CreateRunResponse)
42
- })
43
- _sym_db.RegisterMessage(CreateRunResponse)
44
-
45
- GetNodesRequest = _reflection.GeneratedProtocolMessageType('GetNodesRequest', (_message.Message,), {
46
- 'DESCRIPTOR' : _GETNODESREQUEST,
47
- '__module__' : 'flwr.proto.driver_pb2'
48
- # @@protoc_insertion_point(class_scope:flwr.proto.GetNodesRequest)
49
- })
50
- _sym_db.RegisterMessage(GetNodesRequest)
51
-
52
- GetNodesResponse = _reflection.GeneratedProtocolMessageType('GetNodesResponse', (_message.Message,), {
53
- 'DESCRIPTOR' : _GETNODESRESPONSE,
54
- '__module__' : 'flwr.proto.driver_pb2'
55
- # @@protoc_insertion_point(class_scope:flwr.proto.GetNodesResponse)
56
- })
57
- _sym_db.RegisterMessage(GetNodesResponse)
58
-
59
- PushTaskInsRequest = _reflection.GeneratedProtocolMessageType('PushTaskInsRequest', (_message.Message,), {
60
- 'DESCRIPTOR' : _PUSHTASKINSREQUEST,
61
- '__module__' : 'flwr.proto.driver_pb2'
62
- # @@protoc_insertion_point(class_scope:flwr.proto.PushTaskInsRequest)
63
- })
64
- _sym_db.RegisterMessage(PushTaskInsRequest)
65
-
66
- PushTaskInsResponse = _reflection.GeneratedProtocolMessageType('PushTaskInsResponse', (_message.Message,), {
67
- 'DESCRIPTOR' : _PUSHTASKINSRESPONSE,
68
- '__module__' : 'flwr.proto.driver_pb2'
69
- # @@protoc_insertion_point(class_scope:flwr.proto.PushTaskInsResponse)
70
- })
71
- _sym_db.RegisterMessage(PushTaskInsResponse)
72
-
73
- PullTaskResRequest = _reflection.GeneratedProtocolMessageType('PullTaskResRequest', (_message.Message,), {
74
- 'DESCRIPTOR' : _PULLTASKRESREQUEST,
75
- '__module__' : 'flwr.proto.driver_pb2'
76
- # @@protoc_insertion_point(class_scope:flwr.proto.PullTaskResRequest)
77
- })
78
- _sym_db.RegisterMessage(PullTaskResRequest)
79
-
80
- PullTaskResResponse = _reflection.GeneratedProtocolMessageType('PullTaskResResponse', (_message.Message,), {
81
- 'DESCRIPTOR' : _PULLTASKRESRESPONSE,
82
- '__module__' : 'flwr.proto.driver_pb2'
83
- # @@protoc_insertion_point(class_scope:flwr.proto.PullTaskResResponse)
84
- })
85
- _sym_db.RegisterMessage(PullTaskResResponse)
86
-
87
- _DRIVER = DESCRIPTOR.services_by_name['Driver']
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.driver_pb2', _globals)
88
24
  if _descriptor._USE_C_DESCRIPTORS == False:
89
-
90
25
  DESCRIPTOR._options = None
91
- _CREATERUNREQUEST._serialized_start=85
92
- _CREATERUNREQUEST._serialized_end=103
93
- _CREATERUNRESPONSE._serialized_start=105
94
- _CREATERUNRESPONSE._serialized_end=140
95
- _GETNODESREQUEST._serialized_start=142
96
- _GETNODESREQUEST._serialized_end=175
97
- _GETNODESRESPONSE._serialized_start=177
98
- _GETNODESRESPONSE._serialized_end=228
99
- _PUSHTASKINSREQUEST._serialized_start=230
100
- _PUSHTASKINSREQUEST._serialized_end=294
101
- _PUSHTASKINSRESPONSE._serialized_start=296
102
- _PUSHTASKINSRESPONSE._serialized_end=335
103
- _PULLTASKRESREQUEST._serialized_start=337
104
- _PULLTASKRESREQUEST._serialized_end=407
105
- _PULLTASKRESRESPONSE._serialized_start=409
106
- _PULLTASKRESRESPONSE._serialized_end=474
107
- _DRIVER._serialized_start=477
108
- _DRIVER._serialized_end=798
26
+ _globals['_CREATERUNREQUEST']._serialized_start=85
27
+ _globals['_CREATERUNREQUEST']._serialized_end=103
28
+ _globals['_CREATERUNRESPONSE']._serialized_start=105
29
+ _globals['_CREATERUNRESPONSE']._serialized_end=140
30
+ _globals['_GETNODESREQUEST']._serialized_start=142
31
+ _globals['_GETNODESREQUEST']._serialized_end=175
32
+ _globals['_GETNODESRESPONSE']._serialized_start=177
33
+ _globals['_GETNODESRESPONSE']._serialized_end=228
34
+ _globals['_PUSHTASKINSREQUEST']._serialized_start=230
35
+ _globals['_PUSHTASKINSREQUEST']._serialized_end=294
36
+ _globals['_PUSHTASKINSRESPONSE']._serialized_start=296
37
+ _globals['_PUSHTASKINSRESPONSE']._serialized_end=335
38
+ _globals['_PULLTASKRESREQUEST']._serialized_start=337
39
+ _globals['_PULLTASKRESREQUEST']._serialized_end=407
40
+ _globals['_PULLTASKRESRESPONSE']._serialized_start=409
41
+ _globals['_PULLTASKRESRESPONSE']._serialized_end=474
42
+ _globals['_DRIVER']._serialized_start=477
43
+ _globals['_DRIVER']._serialized_end=798
109
44
  # @@protoc_insertion_point(module_scope)
flwr/proto/fleet_pb2.py CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: flwr/proto/fleet.proto
4
+ # Protobuf Python Version: 4.25.0
4
5
  """Generated protocol buffer code."""
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
10
  # @@protoc_insertion_point(imports)
11
11
 
12
12
  _sym_db = _symbol_database.Default()
@@ -18,115 +18,33 @@ from flwr.proto import task_pb2 as flwr_dot_proto_dot_task__pb2
18
18
 
19
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x66lwr/proto/fleet.proto\x12\nflwr.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x15\x66lwr/proto/task.proto\"\x13\n\x11\x43reateNodeRequest\"4\n\x12\x43reateNodeResponse\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\"3\n\x11\x44\x65leteNodeRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\"\x14\n\x12\x44\x65leteNodeResponse\"F\n\x12PullTaskInsRequest\x12\x1e\n\x04node\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x10\n\x08task_ids\x18\x02 \x03(\t\"k\n\x13PullTaskInsResponse\x12(\n\treconnect\x18\x01 \x01(\x0b\x32\x15.flwr.proto.Reconnect\x12*\n\rtask_ins_list\x18\x02 \x03(\x0b\x32\x13.flwr.proto.TaskIns\"@\n\x12PushTaskResRequest\x12*\n\rtask_res_list\x18\x01 \x03(\x0b\x32\x13.flwr.proto.TaskRes\"\xae\x01\n\x13PushTaskResResponse\x12(\n\treconnect\x18\x01 \x01(\x0b\x32\x15.flwr.proto.Reconnect\x12=\n\x07results\x18\x02 \x03(\x0b\x32,.flwr.proto.PushTaskResResponse.ResultsEntry\x1a.\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"\x1e\n\tReconnect\x12\x11\n\treconnect\x18\x01 \x01(\x04\x32\xc9\x02\n\x05\x46leet\x12M\n\nCreateNode\x12\x1d.flwr.proto.CreateNodeRequest\x1a\x1e.flwr.proto.CreateNodeResponse\"\x00\x12M\n\nDeleteNode\x12\x1d.flwr.proto.DeleteNodeRequest\x1a\x1e.flwr.proto.DeleteNodeResponse\"\x00\x12P\n\x0bPullTaskIns\x12\x1e.flwr.proto.PullTaskInsRequest\x1a\x1f.flwr.proto.PullTaskInsResponse\"\x00\x12P\n\x0bPushTaskRes\x12\x1e.flwr.proto.PushTaskResRequest\x1a\x1f.flwr.proto.PushTaskResResponse\"\x00\x62\x06proto3')
20
20
 
21
-
22
-
23
- _CREATENODEREQUEST = DESCRIPTOR.message_types_by_name['CreateNodeRequest']
24
- _CREATENODERESPONSE = DESCRIPTOR.message_types_by_name['CreateNodeResponse']
25
- _DELETENODEREQUEST = DESCRIPTOR.message_types_by_name['DeleteNodeRequest']
26
- _DELETENODERESPONSE = DESCRIPTOR.message_types_by_name['DeleteNodeResponse']
27
- _PULLTASKINSREQUEST = DESCRIPTOR.message_types_by_name['PullTaskInsRequest']
28
- _PULLTASKINSRESPONSE = DESCRIPTOR.message_types_by_name['PullTaskInsResponse']
29
- _PUSHTASKRESREQUEST = DESCRIPTOR.message_types_by_name['PushTaskResRequest']
30
- _PUSHTASKRESRESPONSE = DESCRIPTOR.message_types_by_name['PushTaskResResponse']
31
- _PUSHTASKRESRESPONSE_RESULTSENTRY = _PUSHTASKRESRESPONSE.nested_types_by_name['ResultsEntry']
32
- _RECONNECT = DESCRIPTOR.message_types_by_name['Reconnect']
33
- CreateNodeRequest = _reflection.GeneratedProtocolMessageType('CreateNodeRequest', (_message.Message,), {
34
- 'DESCRIPTOR' : _CREATENODEREQUEST,
35
- '__module__' : 'flwr.proto.fleet_pb2'
36
- # @@protoc_insertion_point(class_scope:flwr.proto.CreateNodeRequest)
37
- })
38
- _sym_db.RegisterMessage(CreateNodeRequest)
39
-
40
- CreateNodeResponse = _reflection.GeneratedProtocolMessageType('CreateNodeResponse', (_message.Message,), {
41
- 'DESCRIPTOR' : _CREATENODERESPONSE,
42
- '__module__' : 'flwr.proto.fleet_pb2'
43
- # @@protoc_insertion_point(class_scope:flwr.proto.CreateNodeResponse)
44
- })
45
- _sym_db.RegisterMessage(CreateNodeResponse)
46
-
47
- DeleteNodeRequest = _reflection.GeneratedProtocolMessageType('DeleteNodeRequest', (_message.Message,), {
48
- 'DESCRIPTOR' : _DELETENODEREQUEST,
49
- '__module__' : 'flwr.proto.fleet_pb2'
50
- # @@protoc_insertion_point(class_scope:flwr.proto.DeleteNodeRequest)
51
- })
52
- _sym_db.RegisterMessage(DeleteNodeRequest)
53
-
54
- DeleteNodeResponse = _reflection.GeneratedProtocolMessageType('DeleteNodeResponse', (_message.Message,), {
55
- 'DESCRIPTOR' : _DELETENODERESPONSE,
56
- '__module__' : 'flwr.proto.fleet_pb2'
57
- # @@protoc_insertion_point(class_scope:flwr.proto.DeleteNodeResponse)
58
- })
59
- _sym_db.RegisterMessage(DeleteNodeResponse)
60
-
61
- PullTaskInsRequest = _reflection.GeneratedProtocolMessageType('PullTaskInsRequest', (_message.Message,), {
62
- 'DESCRIPTOR' : _PULLTASKINSREQUEST,
63
- '__module__' : 'flwr.proto.fleet_pb2'
64
- # @@protoc_insertion_point(class_scope:flwr.proto.PullTaskInsRequest)
65
- })
66
- _sym_db.RegisterMessage(PullTaskInsRequest)
67
-
68
- PullTaskInsResponse = _reflection.GeneratedProtocolMessageType('PullTaskInsResponse', (_message.Message,), {
69
- 'DESCRIPTOR' : _PULLTASKINSRESPONSE,
70
- '__module__' : 'flwr.proto.fleet_pb2'
71
- # @@protoc_insertion_point(class_scope:flwr.proto.PullTaskInsResponse)
72
- })
73
- _sym_db.RegisterMessage(PullTaskInsResponse)
74
-
75
- PushTaskResRequest = _reflection.GeneratedProtocolMessageType('PushTaskResRequest', (_message.Message,), {
76
- 'DESCRIPTOR' : _PUSHTASKRESREQUEST,
77
- '__module__' : 'flwr.proto.fleet_pb2'
78
- # @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResRequest)
79
- })
80
- _sym_db.RegisterMessage(PushTaskResRequest)
81
-
82
- PushTaskResResponse = _reflection.GeneratedProtocolMessageType('PushTaskResResponse', (_message.Message,), {
83
-
84
- 'ResultsEntry' : _reflection.GeneratedProtocolMessageType('ResultsEntry', (_message.Message,), {
85
- 'DESCRIPTOR' : _PUSHTASKRESRESPONSE_RESULTSENTRY,
86
- '__module__' : 'flwr.proto.fleet_pb2'
87
- # @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResResponse.ResultsEntry)
88
- })
89
- ,
90
- 'DESCRIPTOR' : _PUSHTASKRESRESPONSE,
91
- '__module__' : 'flwr.proto.fleet_pb2'
92
- # @@protoc_insertion_point(class_scope:flwr.proto.PushTaskResResponse)
93
- })
94
- _sym_db.RegisterMessage(PushTaskResResponse)
95
- _sym_db.RegisterMessage(PushTaskResResponse.ResultsEntry)
96
-
97
- Reconnect = _reflection.GeneratedProtocolMessageType('Reconnect', (_message.Message,), {
98
- 'DESCRIPTOR' : _RECONNECT,
99
- '__module__' : 'flwr.proto.fleet_pb2'
100
- # @@protoc_insertion_point(class_scope:flwr.proto.Reconnect)
101
- })
102
- _sym_db.RegisterMessage(Reconnect)
103
-
104
- _FLEET = DESCRIPTOR.services_by_name['Fleet']
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.fleet_pb2', _globals)
105
24
  if _descriptor._USE_C_DESCRIPTORS == False:
106
-
107
25
  DESCRIPTOR._options = None
108
- _PUSHTASKRESRESPONSE_RESULTSENTRY._options = None
109
- _PUSHTASKRESRESPONSE_RESULTSENTRY._serialized_options = b'8\001'
110
- _CREATENODEREQUEST._serialized_start=84
111
- _CREATENODEREQUEST._serialized_end=103
112
- _CREATENODERESPONSE._serialized_start=105
113
- _CREATENODERESPONSE._serialized_end=157
114
- _DELETENODEREQUEST._serialized_start=159
115
- _DELETENODEREQUEST._serialized_end=210
116
- _DELETENODERESPONSE._serialized_start=212
117
- _DELETENODERESPONSE._serialized_end=232
118
- _PULLTASKINSREQUEST._serialized_start=234
119
- _PULLTASKINSREQUEST._serialized_end=304
120
- _PULLTASKINSRESPONSE._serialized_start=306
121
- _PULLTASKINSRESPONSE._serialized_end=413
122
- _PUSHTASKRESREQUEST._serialized_start=415
123
- _PUSHTASKRESREQUEST._serialized_end=479
124
- _PUSHTASKRESRESPONSE._serialized_start=482
125
- _PUSHTASKRESRESPONSE._serialized_end=656
126
- _PUSHTASKRESRESPONSE_RESULTSENTRY._serialized_start=610
127
- _PUSHTASKRESRESPONSE_RESULTSENTRY._serialized_end=656
128
- _RECONNECT._serialized_start=658
129
- _RECONNECT._serialized_end=688
130
- _FLEET._serialized_start=691
131
- _FLEET._serialized_end=1020
26
+ _globals['_PUSHTASKRESRESPONSE_RESULTSENTRY']._options = None
27
+ _globals['_PUSHTASKRESRESPONSE_RESULTSENTRY']._serialized_options = b'8\001'
28
+ _globals['_CREATENODEREQUEST']._serialized_start=84
29
+ _globals['_CREATENODEREQUEST']._serialized_end=103
30
+ _globals['_CREATENODERESPONSE']._serialized_start=105
31
+ _globals['_CREATENODERESPONSE']._serialized_end=157
32
+ _globals['_DELETENODEREQUEST']._serialized_start=159
33
+ _globals['_DELETENODEREQUEST']._serialized_end=210
34
+ _globals['_DELETENODERESPONSE']._serialized_start=212
35
+ _globals['_DELETENODERESPONSE']._serialized_end=232
36
+ _globals['_PULLTASKINSREQUEST']._serialized_start=234
37
+ _globals['_PULLTASKINSREQUEST']._serialized_end=304
38
+ _globals['_PULLTASKINSRESPONSE']._serialized_start=306
39
+ _globals['_PULLTASKINSRESPONSE']._serialized_end=413
40
+ _globals['_PUSHTASKRESREQUEST']._serialized_start=415
41
+ _globals['_PUSHTASKRESREQUEST']._serialized_end=479
42
+ _globals['_PUSHTASKRESRESPONSE']._serialized_start=482
43
+ _globals['_PUSHTASKRESRESPONSE']._serialized_end=656
44
+ _globals['_PUSHTASKRESRESPONSE_RESULTSENTRY']._serialized_start=610
45
+ _globals['_PUSHTASKRESRESPONSE_RESULTSENTRY']._serialized_end=656
46
+ _globals['_RECONNECT']._serialized_start=658
47
+ _globals['_RECONNECT']._serialized_end=688
48
+ _globals['_FLEET']._serialized_start=691
49
+ _globals['_FLEET']._serialized_end=1020
132
50
  # @@protoc_insertion_point(module_scope)
flwr/proto/node_pb2.py CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: flwr/proto/node.proto
4
+ # Protobuf Python Version: 4.25.0
4
5
  """Generated protocol buffer code."""
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
10
  # @@protoc_insertion_point(imports)
11
11
 
12
12
  _sym_db = _symbol_database.Default()
@@ -16,19 +16,11 @@ _sym_db = _symbol_database.Default()
16
16
 
17
17
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x66lwr/proto/node.proto\x12\nflwr.proto\"*\n\x04Node\x12\x0f\n\x07node_id\x18\x01 \x01(\x12\x12\x11\n\tanonymous\x18\x02 \x01(\x08\x62\x06proto3')
18
18
 
19
-
20
-
21
- _NODE = DESCRIPTOR.message_types_by_name['Node']
22
- Node = _reflection.GeneratedProtocolMessageType('Node', (_message.Message,), {
23
- 'DESCRIPTOR' : _NODE,
24
- '__module__' : 'flwr.proto.node_pb2'
25
- # @@protoc_insertion_point(class_scope:flwr.proto.Node)
26
- })
27
- _sym_db.RegisterMessage(Node)
28
-
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.node_pb2', _globals)
29
22
  if _descriptor._USE_C_DESCRIPTORS == False:
30
-
31
23
  DESCRIPTOR._options = None
32
- _NODE._serialized_start=37
33
- _NODE._serialized_end=79
24
+ _globals['_NODE']._serialized_start=37
25
+ _globals['_NODE']._serialized_end=79
34
26
  # @@protoc_insertion_point(module_scope)
flwr/proto/task_pb2.py CHANGED
@@ -1,12 +1,12 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: flwr/proto/task.proto
4
+ # Protobuf Python Version: 4.25.0
4
5
  """Generated protocol buffer code."""
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
10
  # @@protoc_insertion_point(imports)
11
11
 
12
12
  _sym_db = _symbol_database.Default()
@@ -18,131 +18,37 @@ from flwr.proto import transport_pb2 as flwr_dot_proto_dot_transport__pb2
18
18
 
19
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15\x66lwr/proto/task.proto\x12\nflwr.proto\x1a\x15\x66lwr/proto/node.proto\x1a\x1a\x66lwr/proto/transport.proto\"\xbe\x02\n\x04Task\x12\"\n\x08producer\x18\x01 \x01(\x0b\x32\x10.flwr.proto.Node\x12\"\n\x08\x63onsumer\x18\x02 \x01(\x0b\x32\x10.flwr.proto.Node\x12\x12\n\ncreated_at\x18\x03 \x01(\t\x12\x14\n\x0c\x64\x65livered_at\x18\x04 \x01(\t\x12\x0b\n\x03ttl\x18\x05 \x01(\t\x12\x10\n\x08\x61ncestry\x18\x06 \x03(\t\x12)\n\x02sa\x18\x07 \x01(\x0b\x32\x1d.flwr.proto.SecureAggregation\x12<\n\x15legacy_server_message\x18\x65 \x01(\x0b\x32\x19.flwr.proto.ServerMessageB\x02\x18\x01\x12<\n\x15legacy_client_message\x18\x66 \x01(\x0b\x32\x19.flwr.proto.ClientMessageB\x02\x18\x01\"\\\n\x07TaskIns\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\x12\x12\x1e\n\x04task\x18\x04 \x01(\x0b\x32\x10.flwr.proto.Task\"\\\n\x07TaskRes\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\x12\x12\x1e\n\x04task\x18\x04 \x01(\x0b\x32\x10.flwr.proto.Task\"\xf3\x03\n\x05Value\x12\x10\n\x06\x64ouble\x18\x01 \x01(\x01H\x00\x12\x10\n\x06sint64\x18\x02 \x01(\x12H\x00\x12\x0e\n\x04\x62ool\x18\x03 \x01(\x08H\x00\x12\x10\n\x06string\x18\x04 \x01(\tH\x00\x12\x0f\n\x05\x62ytes\x18\x05 \x01(\x0cH\x00\x12\x33\n\x0b\x64ouble_list\x18\x15 \x01(\x0b\x32\x1c.flwr.proto.Value.DoubleListH\x00\x12\x33\n\x0bsint64_list\x18\x16 \x01(\x0b\x32\x1c.flwr.proto.Value.Sint64ListH\x00\x12/\n\tbool_list\x18\x17 \x01(\x0b\x32\x1a.flwr.proto.Value.BoolListH\x00\x12\x33\n\x0bstring_list\x18\x18 \x01(\x0b\x32\x1c.flwr.proto.Value.StringListH\x00\x12\x31\n\nbytes_list\x18\x19 \x01(\x0b\x32\x1b.flwr.proto.Value.BytesListH\x00\x1a\x1a\n\nDoubleList\x12\x0c\n\x04vals\x18\x01 \x03(\x01\x1a\x1a\n\nSint64List\x12\x0c\n\x04vals\x18\x01 \x03(\x12\x1a\x18\n\x08\x42oolList\x12\x0c\n\x04vals\x18\x01 \x03(\x08\x1a\x1a\n\nStringList\x12\x0c\n\x04vals\x18\x01 \x03(\t\x1a\x19\n\tBytesList\x12\x0c\n\x04vals\x18\x01 \x03(\x0c\x42\x07\n\x05value\"\xa0\x01\n\x11SecureAggregation\x12\x44\n\x0cnamed_values\x18\x01 \x03(\x0b\x32..flwr.proto.SecureAggregation.NamedValuesEntry\x1a\x45\n\x10NamedValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.flwr.proto.Value:\x02\x38\x01\x62\x06proto3')
20
20
 
21
-
22
-
23
- _TASK = DESCRIPTOR.message_types_by_name['Task']
24
- _TASKINS = DESCRIPTOR.message_types_by_name['TaskIns']
25
- _TASKRES = DESCRIPTOR.message_types_by_name['TaskRes']
26
- _VALUE = DESCRIPTOR.message_types_by_name['Value']
27
- _VALUE_DOUBLELIST = _VALUE.nested_types_by_name['DoubleList']
28
- _VALUE_SINT64LIST = _VALUE.nested_types_by_name['Sint64List']
29
- _VALUE_BOOLLIST = _VALUE.nested_types_by_name['BoolList']
30
- _VALUE_STRINGLIST = _VALUE.nested_types_by_name['StringList']
31
- _VALUE_BYTESLIST = _VALUE.nested_types_by_name['BytesList']
32
- _SECUREAGGREGATION = DESCRIPTOR.message_types_by_name['SecureAggregation']
33
- _SECUREAGGREGATION_NAMEDVALUESENTRY = _SECUREAGGREGATION.nested_types_by_name['NamedValuesEntry']
34
- Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), {
35
- 'DESCRIPTOR' : _TASK,
36
- '__module__' : 'flwr.proto.task_pb2'
37
- # @@protoc_insertion_point(class_scope:flwr.proto.Task)
38
- })
39
- _sym_db.RegisterMessage(Task)
40
-
41
- TaskIns = _reflection.GeneratedProtocolMessageType('TaskIns', (_message.Message,), {
42
- 'DESCRIPTOR' : _TASKINS,
43
- '__module__' : 'flwr.proto.task_pb2'
44
- # @@protoc_insertion_point(class_scope:flwr.proto.TaskIns)
45
- })
46
- _sym_db.RegisterMessage(TaskIns)
47
-
48
- TaskRes = _reflection.GeneratedProtocolMessageType('TaskRes', (_message.Message,), {
49
- 'DESCRIPTOR' : _TASKRES,
50
- '__module__' : 'flwr.proto.task_pb2'
51
- # @@protoc_insertion_point(class_scope:flwr.proto.TaskRes)
52
- })
53
- _sym_db.RegisterMessage(TaskRes)
54
-
55
- Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), {
56
-
57
- 'DoubleList' : _reflection.GeneratedProtocolMessageType('DoubleList', (_message.Message,), {
58
- 'DESCRIPTOR' : _VALUE_DOUBLELIST,
59
- '__module__' : 'flwr.proto.task_pb2'
60
- # @@protoc_insertion_point(class_scope:flwr.proto.Value.DoubleList)
61
- })
62
- ,
63
-
64
- 'Sint64List' : _reflection.GeneratedProtocolMessageType('Sint64List', (_message.Message,), {
65
- 'DESCRIPTOR' : _VALUE_SINT64LIST,
66
- '__module__' : 'flwr.proto.task_pb2'
67
- # @@protoc_insertion_point(class_scope:flwr.proto.Value.Sint64List)
68
- })
69
- ,
70
-
71
- 'BoolList' : _reflection.GeneratedProtocolMessageType('BoolList', (_message.Message,), {
72
- 'DESCRIPTOR' : _VALUE_BOOLLIST,
73
- '__module__' : 'flwr.proto.task_pb2'
74
- # @@protoc_insertion_point(class_scope:flwr.proto.Value.BoolList)
75
- })
76
- ,
77
-
78
- 'StringList' : _reflection.GeneratedProtocolMessageType('StringList', (_message.Message,), {
79
- 'DESCRIPTOR' : _VALUE_STRINGLIST,
80
- '__module__' : 'flwr.proto.task_pb2'
81
- # @@protoc_insertion_point(class_scope:flwr.proto.Value.StringList)
82
- })
83
- ,
84
-
85
- 'BytesList' : _reflection.GeneratedProtocolMessageType('BytesList', (_message.Message,), {
86
- 'DESCRIPTOR' : _VALUE_BYTESLIST,
87
- '__module__' : 'flwr.proto.task_pb2'
88
- # @@protoc_insertion_point(class_scope:flwr.proto.Value.BytesList)
89
- })
90
- ,
91
- 'DESCRIPTOR' : _VALUE,
92
- '__module__' : 'flwr.proto.task_pb2'
93
- # @@protoc_insertion_point(class_scope:flwr.proto.Value)
94
- })
95
- _sym_db.RegisterMessage(Value)
96
- _sym_db.RegisterMessage(Value.DoubleList)
97
- _sym_db.RegisterMessage(Value.Sint64List)
98
- _sym_db.RegisterMessage(Value.BoolList)
99
- _sym_db.RegisterMessage(Value.StringList)
100
- _sym_db.RegisterMessage(Value.BytesList)
101
-
102
- SecureAggregation = _reflection.GeneratedProtocolMessageType('SecureAggregation', (_message.Message,), {
103
-
104
- 'NamedValuesEntry' : _reflection.GeneratedProtocolMessageType('NamedValuesEntry', (_message.Message,), {
105
- 'DESCRIPTOR' : _SECUREAGGREGATION_NAMEDVALUESENTRY,
106
- '__module__' : 'flwr.proto.task_pb2'
107
- # @@protoc_insertion_point(class_scope:flwr.proto.SecureAggregation.NamedValuesEntry)
108
- })
109
- ,
110
- 'DESCRIPTOR' : _SECUREAGGREGATION,
111
- '__module__' : 'flwr.proto.task_pb2'
112
- # @@protoc_insertion_point(class_scope:flwr.proto.SecureAggregation)
113
- })
114
- _sym_db.RegisterMessage(SecureAggregation)
115
- _sym_db.RegisterMessage(SecureAggregation.NamedValuesEntry)
116
-
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flwr.proto.task_pb2', _globals)
117
24
  if _descriptor._USE_C_DESCRIPTORS == False:
118
-
119
25
  DESCRIPTOR._options = None
120
- _TASK.fields_by_name['legacy_server_message']._options = None
121
- _TASK.fields_by_name['legacy_server_message']._serialized_options = b'\030\001'
122
- _TASK.fields_by_name['legacy_client_message']._options = None
123
- _TASK.fields_by_name['legacy_client_message']._serialized_options = b'\030\001'
124
- _SECUREAGGREGATION_NAMEDVALUESENTRY._options = None
125
- _SECUREAGGREGATION_NAMEDVALUESENTRY._serialized_options = b'8\001'
126
- _TASK._serialized_start=89
127
- _TASK._serialized_end=407
128
- _TASKINS._serialized_start=409
129
- _TASKINS._serialized_end=501
130
- _TASKRES._serialized_start=503
131
- _TASKRES._serialized_end=595
132
- _VALUE._serialized_start=598
133
- _VALUE._serialized_end=1097
134
- _VALUE_DOUBLELIST._serialized_start=953
135
- _VALUE_DOUBLELIST._serialized_end=979
136
- _VALUE_SINT64LIST._serialized_start=981
137
- _VALUE_SINT64LIST._serialized_end=1007
138
- _VALUE_BOOLLIST._serialized_start=1009
139
- _VALUE_BOOLLIST._serialized_end=1033
140
- _VALUE_STRINGLIST._serialized_start=1035
141
- _VALUE_STRINGLIST._serialized_end=1061
142
- _VALUE_BYTESLIST._serialized_start=1063
143
- _VALUE_BYTESLIST._serialized_end=1088
144
- _SECUREAGGREGATION._serialized_start=1100
145
- _SECUREAGGREGATION._serialized_end=1260
146
- _SECUREAGGREGATION_NAMEDVALUESENTRY._serialized_start=1191
147
- _SECUREAGGREGATION_NAMEDVALUESENTRY._serialized_end=1260
26
+ _globals['_TASK'].fields_by_name['legacy_server_message']._options = None
27
+ _globals['_TASK'].fields_by_name['legacy_server_message']._serialized_options = b'\030\001'
28
+ _globals['_TASK'].fields_by_name['legacy_client_message']._options = None
29
+ _globals['_TASK'].fields_by_name['legacy_client_message']._serialized_options = b'\030\001'
30
+ _globals['_SECUREAGGREGATION_NAMEDVALUESENTRY']._options = None
31
+ _globals['_SECUREAGGREGATION_NAMEDVALUESENTRY']._serialized_options = b'8\001'
32
+ _globals['_TASK']._serialized_start=89
33
+ _globals['_TASK']._serialized_end=407
34
+ _globals['_TASKINS']._serialized_start=409
35
+ _globals['_TASKINS']._serialized_end=501
36
+ _globals['_TASKRES']._serialized_start=503
37
+ _globals['_TASKRES']._serialized_end=595
38
+ _globals['_VALUE']._serialized_start=598
39
+ _globals['_VALUE']._serialized_end=1097
40
+ _globals['_VALUE_DOUBLELIST']._serialized_start=953
41
+ _globals['_VALUE_DOUBLELIST']._serialized_end=979
42
+ _globals['_VALUE_SINT64LIST']._serialized_start=981
43
+ _globals['_VALUE_SINT64LIST']._serialized_end=1007
44
+ _globals['_VALUE_BOOLLIST']._serialized_start=1009
45
+ _globals['_VALUE_BOOLLIST']._serialized_end=1033
46
+ _globals['_VALUE_STRINGLIST']._serialized_start=1035
47
+ _globals['_VALUE_STRINGLIST']._serialized_end=1061
48
+ _globals['_VALUE_BYTESLIST']._serialized_start=1063
49
+ _globals['_VALUE_BYTESLIST']._serialized_end=1088
50
+ _globals['_SECUREAGGREGATION']._serialized_start=1100
51
+ _globals['_SECUREAGGREGATION']._serialized_end=1260
52
+ _globals['_SECUREAGGREGATION_NAMEDVALUESENTRY']._serialized_start=1191
53
+ _globals['_SECUREAGGREGATION_NAMEDVALUESENTRY']._serialized_end=1260
148
54
  # @@protoc_insertion_point(module_scope)