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

refactor(framework:skip) Rename FAB proto attribute #3957

Merged
merged 2 commits into from
Aug 6, 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
4 changes: 2 additions & 2 deletions src/proto/flwr/proto/fab.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ message Fab {
// This field is the hash of the data field. It is used to identify the data.
// The hash is calculated using the SHA-256 algorithm and is represented as a
// hex string (sha256hex).
string hash = 1;
string hash_str = 1;
// This field contains the fab file contents a one bytes blob.
bytes content = 2;
}

message GetFabRequest { string hash = 1; }
message GetFabRequest { string hash_str = 1; }
message GetFabResponse { Fab fab = 1; }
12 changes: 6 additions & 6 deletions src/py/flwr/proto/fab_pb2.py

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

16 changes: 8 additions & 8 deletions src/py/flwr/proto/fab_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class Fab(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
HASH_FIELD_NUMBER: builtins.int
HASH_STR_FIELD_NUMBER: builtins.int
CONTENT_FIELD_NUMBER: builtins.int
hash: typing.Text
hash_str: typing.Text
"""This field is the hash of the data field. It is used to identify the data.
The hash is calculated using the SHA-256 algorithm and is represented as a
hex string (sha256hex).
Expand All @@ -25,21 +25,21 @@ class Fab(google.protobuf.message.Message):

def __init__(self,
*,
hash: typing.Text = ...,
hash_str: typing.Text = ...,
content: builtins.bytes = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["content",b"content","hash",b"hash"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["content",b"content","hash_str",b"hash_str"]) -> None: ...
global___Fab = Fab

class GetFabRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
HASH_FIELD_NUMBER: builtins.int
hash: typing.Text
HASH_STR_FIELD_NUMBER: builtins.int
hash_str: typing.Text
def __init__(self,
*,
hash: typing.Text = ...,
hash_str: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["hash",b"hash"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["hash_str",b"hash_str"]) -> None: ...
global___GetFabRequest = GetFabRequest

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