According to documentation:
deprecated (field option): If set to true, indicates that the field is deprecated and should not be used by new code.
Example of use:
message Foo {
string old_field = 1 [deprecated=true];
}
You can set it as a top level option in the message:
message Foo {
option deprecated = true;
string old_field = 1;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With