Skip to content

Commit

Permalink
Add task_type to Task proto (#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Jan 19, 2024
1 parent 6a72406 commit 682bbd5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
3 changes: 2 additions & 1 deletion src/proto/flwr/proto/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ message Task {
string delivered_at = 4;
string ttl = 5;
repeated string ancestry = 6;
SecureAggregation sa = 7;
string task_type = 7;
SecureAggregation sa = 8;

ServerMessage legacy_server_message = 101 [ deprecated = true ];
ClientMessage legacy_client_message = 102 [ deprecated = true ];
Expand Down
44 changes: 22 additions & 22 deletions src/py/flwr/proto/task_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/py/flwr/proto/task_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Task(google.protobuf.message.Message):
DELIVERED_AT_FIELD_NUMBER: builtins.int
TTL_FIELD_NUMBER: builtins.int
ANCESTRY_FIELD_NUMBER: builtins.int
TASK_TYPE_FIELD_NUMBER: builtins.int
SA_FIELD_NUMBER: builtins.int
LEGACY_SERVER_MESSAGE_FIELD_NUMBER: builtins.int
LEGACY_CLIENT_MESSAGE_FIELD_NUMBER: builtins.int
Expand All @@ -33,6 +34,7 @@ class Task(google.protobuf.message.Message):
ttl: typing.Text
@property
def ancestry(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
task_type: typing.Text
@property
def sa(self) -> global___SecureAggregation: ...
@property
Expand All @@ -47,12 +49,13 @@ class Task(google.protobuf.message.Message):
delivered_at: typing.Text = ...,
ttl: typing.Text = ...,
ancestry: typing.Optional[typing.Iterable[typing.Text]] = ...,
task_type: typing.Text = ...,
sa: typing.Optional[global___SecureAggregation] = ...,
legacy_server_message: typing.Optional[flwr.proto.transport_pb2.ServerMessage] = ...,
legacy_client_message: typing.Optional[flwr.proto.transport_pb2.ClientMessage] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["consumer",b"consumer","legacy_client_message",b"legacy_client_message","legacy_server_message",b"legacy_server_message","producer",b"producer","sa",b"sa"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["ancestry",b"ancestry","consumer",b"consumer","created_at",b"created_at","delivered_at",b"delivered_at","legacy_client_message",b"legacy_client_message","legacy_server_message",b"legacy_server_message","producer",b"producer","sa",b"sa","ttl",b"ttl"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["ancestry",b"ancestry","consumer",b"consumer","created_at",b"created_at","delivered_at",b"delivered_at","legacy_client_message",b"legacy_client_message","legacy_server_message",b"legacy_server_message","producer",b"producer","sa",b"sa","task_type",b"task_type","ttl",b"ttl"]) -> None: ...
global___Task = Task

class TaskIns(google.protobuf.message.Message):
Expand Down

0 comments on commit 682bbd5

Please sign in to comment.