-
Notifications
You must be signed in to change notification settings - Fork 138
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
Message Field extensions #249
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of protoc (
protoc --version
)libprotoc 3.6.1
Version of ProtocolBuffers.framework
4.0.6
.proto
file to reproduceDescription
So how can I access to extended properties
from_byte
andto_byte
for each (in this examplebattery_level_percent
) field? Also how can I access tosize_bytes
of message GetBatteryLevelResponse? I need this to write custom data parser (we already have Android version working with this format). com.blerpc.field described as:What I need to do:
from_byte
,to_byte
andsize_bytes
(I need this info before parsing). I need something like this:let emptyMessage = GetBatteryLevelResponse() let fromByte = emptyMessage.battery_level_percent.from_byte
So I need to check received data that it is the same as
size_bytes
described in message, then parse each properties (I think I must have something like GetBatteryLevelResponse.getAllFields) based onfrom_byte
and toto_byte
Any options? Thank you!
The text was updated successfully, but these errors were encountered: