You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In protobuf:2.27.1, I used to be able to do something like my_proto::exts::my_field.field_number but it seems that field_number is now a private field. Is there a new way to do that?
I'm pretty new to Protobuf in general and especially protobuf's crate, so it's possible I missed something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm currently migrating from
protobuf:2.27.1
toprotobuf:3.0.2
.I'm trying to change the value of a field that is part of an Protobuf extension.
I'm able to access the unknown fields mutably with something like
MyMessage.special_fields.mut_unknown_fields()
but then I'm trying to useadd_varint
and I don't know how to provide thenumber
.In
protobuf:2.27.1
, I used to be able to do something likemy_proto::exts::my_field.field_number
but it seems thatfield_number
is now a private field. Is there a new way to do that?I'm pretty new to Protobuf in general and especially
protobuf
's crate, so it's possible I missed something.Beta Was this translation helpful? Give feedback.
All reactions