简体   繁体   中英

Protobuf Fields - Deprecating a parameter as google.protobuf.Any instead of reserved

Due to a circular dependency issue. We needed deprecate and reserved a parameter foo . However, we also want to continue supplanting that parameter on older versions of our App for foo .

Instead of making a reserved parameter: Is it okay to return it as a google.protobuf.Any with no repercussions?

No you shouldn't. This is a breaking contract that compromised several platforms. The best way is to create new files subverting it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM