根据文档:
deprecated(字段选项):如果设置为 true,则表示该字段已被弃用,不应被新代码使用。
使用示例:
message Foo { string old_field = 1 [deprecated=true]; }
您可以将 deprecated 设置为消息的顶级选项:
message Foo { option deprecated = true; string old_field = 1; }