Skip to content

Commit

Permalink
Reorder proto messages
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljanes committed Aug 12, 2024
1 parent 71992c5 commit bdce6f0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions src/proto/flwr/proto/clientappio.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ enum ClientAppOutputCode {
DEADLINE_EXCEEDED = 1;
UNKNOWN_ERROR = 2;
}
message ClientAppOutputStatus {
ClientAppOutputCode code = 1;
string message = 2;
}

message PullClientAppInputsRequest { sint64 token = 1; }
message PullClientAppInputsResponse {
Expand All @@ -33,8 +37,4 @@ message PushClientAppOutputsRequest {
Message message = 2;
Context context = 3;
}
message ClientAppOutputStatus {
ClientAppOutputCode code = 1;
string message = 2;
}
message PushClientAppOutputsResponse { ClientAppOutputStatus status = 1; }
18 changes: 9 additions & 9 deletions src/py/flwr/proto/clientappio_pb2.py

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

28 changes: 14 additions & 14 deletions src/py/flwr/proto/clientappio_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ UNKNOWN_ERROR: ClientAppOutputCode.ValueType # 2
global___ClientAppOutputCode = ClientAppOutputCode


class ClientAppOutputStatus(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CODE_FIELD_NUMBER: builtins.int
MESSAGE_FIELD_NUMBER: builtins.int
code: global___ClientAppOutputCode.ValueType
message: typing.Text
def __init__(self,
*,
code: global___ClientAppOutputCode.ValueType = ...,
message: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["code",b"code","message",b"message"]) -> None: ...
global___ClientAppOutputStatus = ClientAppOutputStatus

class PullClientAppInputsRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TOKEN_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -82,20 +96,6 @@ class PushClientAppOutputsRequest(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["context",b"context","message",b"message","token",b"token"]) -> None: ...
global___PushClientAppOutputsRequest = PushClientAppOutputsRequest

class ClientAppOutputStatus(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CODE_FIELD_NUMBER: builtins.int
MESSAGE_FIELD_NUMBER: builtins.int
code: global___ClientAppOutputCode.ValueType
message: typing.Text
def __init__(self,
*,
code: global___ClientAppOutputCode.ValueType = ...,
message: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["code",b"code","message",b"message"]) -> None: ...
global___ClientAppOutputStatus = ClientAppOutputStatus

class PushClientAppOutputsResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
STATUS_FIELD_NUMBER: builtins.int
Expand Down

0 comments on commit bdce6f0

Please sign in to comment.