I'm trying to implement limits on my protobuf messages that can be shared amongst different clients that use different languages
Amongst other things, I would like to implement restrictions on string length such as a minimum or maximum length, or a range of min and max values for an int32 var
Is there anyway to implement such requirements? Thanks a lot for your help!
That isn't something that is inbuilt into any implementation that I'm aware of, if you mean the serializer checking the length before serialization and/or after deserialization. You would have to check the data yourself.
In theory it could be added without massive effort, but a bit like
required: it would end up being quite hostile to usage. IMO it isn't a significant omission, as noted by the reality that it also doesn't exist in most general purpose serilizers.