protoc --encode=userdefined.proto what is the equivalent function and how to use

13 views
Skip to first unread message

thomas d

unread,
Jul 7, 2021, 4:58:31 PMJul 7
to Protocol Buffers
when using the command line compiler directive protoc --encode= to encode the user defined proto that you have what is the equivalent function call of this encoding. I have been looking in encoder.py and seen functions like:
def MessageEncoder(field_number, is_repeated, is_packed)

but not sure how to use it and if it is the same encoding being used in the compiler flag

thomas d

unread,
Jul 7, 2021, 4:59:14 PMJul 7
to Protocol Buffers
forgot to include this is with respect to the python API for protobuf3
Reply all
Reply to author
Forward
0 new messages