Skip to content

Commit

Permalink
refactor(framework:skip) Rename FAB proto attribute (#3957)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel J. Beutel <[email protected]>
  • Loading branch information
charlesbvll and danieljanes authored Aug 6, 2024
1 parent c29e5a8 commit 0551632
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
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

0 comments on commit 0551632

Please sign in to comment.