CrazySynthax
CrazySynthax

Reputation: 15018

Protobuf: can changing the message name lead to backward compatibility error?

Suppose I have a the following Protobuf MessageData:

message Person {   
   string name = 1;
   int32 age = 2;
}

and I want to change the message name from "Person" to "PersonNew". If I only change protobuf version in the client, will the server may throw an error for an incompatibility error?

Upvotes: 1

Views: 1150

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1063058

As long as you aren't using the Any type, message names don't exist in the data format, so you can change at will.

Upvotes: 1

Related Questions