[protobuf] Re: Numeric range not supported?

2013-10-22 Thread amalhotra15 . 9
Ben - Could you show some examples on using FieldOptions for this kind of validation? How would you map the actual field name to its validation rules? On Thursday, June 2, 2011 10:31:34 PM UTC-4, Ben Wright wrote: > > You can use custom field options to support validation of this type. > > Take

[protobuf] Re: Numeric range not supported?

2011-06-02 Thread Ben Wright
You can use custom field options to support validation of this type. Take a look at extending com.google.FieldOptions You can create an option field like "max_inclusive" and then access it at run-time from the FieldDescriptor and use the information for validation. Unfortunately this is still ju