// use a snake_case convention instead of CamelCase.
string name = 1;
- // First GraphDef version at which the op is disallowed.
- int32 deprecation_version = 2;
+ // If this endpoint is deprecated, set deprecation_message to a
+ // message that should be logged when the endpoint is used.
+ // The message should indicate alternative endpoint to use, if any.
+ string deprecation_message = 2;
}
repeated Endpoint endpoint = 3;
auto* endpoint = api_def->add_endpoint();
endpoint->set_name(op_def.name());
- if (op_def.has_deprecation()) {
- endpoint->set_deprecation_version(op_def.deprecation().version());
- }
for (const auto& op_in_arg : op_def.input_arg()) {
auto* api_in_arg = api_def->add_in_arg();