Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task_type to Task proto #2819

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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