-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor proto_fill_from_dict & proto_to_dict; #56
* added tests for both function * both function now support py3 iterators types like map, range, filter * proto_fill_from_dict will correctly overwrite lists when clear=False
- Loading branch information
1 parent
cf80947
commit 17eac0c
Showing
4 changed files
with
409 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto2"; | ||
|
||
message ComplexProtoMessage { | ||
message InnerMessage { | ||
optional string text = 1; | ||
repeated uint32 numbers = 2; | ||
} | ||
message InnerBuffer { | ||
message Flags { | ||
optional bool flag = 1; | ||
} | ||
|
||
optional bytes data = 1; | ||
repeated .ComplexProtoMessage.InnerBuffer.Flags flags = 2; | ||
} | ||
|
||
optional uint32 number32 = 1; | ||
optional uint64 number64 = 2; | ||
|
||
repeated uint32 list_number32 = 3; | ||
repeated uint64 list_number64 = 4; | ||
|
||
repeated .ComplexProtoMessage.InnerMessage messages = 5; | ||
repeated .ComplexProtoMessage.InnerBuffer buffers = 6; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.