title: Is it possible to define a numeric range for a field in Protocol Buffer?
body: <p>I live in a very safety/critical Ada-ic environment, and have taken the habit of having well defined and bounded type definition. I am also confronted to lots ASN1 usage/evangelists.</p>
  
  <p>One of the key features that some people around me define as superior in ASN1 over protocol buffers is <strong>the ability to define, and therefore check, data range</strong>.</p>
  
  <p>So,</p>
  
  <ul>
  <li>Is it true that protocol buffers do not have any range definition
  system ?</li>
  <li>Are there any means on top of protocol buffer that could
  provide such a feature ?</li>
  </ul>
  
  <p>Usual numerical types definition such as int32, int64 is out of scope here.</p>
  
  <hr>
  
  <p>I read this <a href="https://developers.google.com/protocol-buffers/docs/overview" rel="nofollow noreferrer">Google overview</a> and found no reference to any data range definition. Except for features concerning the enum management/representation, and some ordering features.</p>
  
  <p>To give some other references, I heard of/read the links below and became aware of an Ada implementation project.</p>
  
  <p><a href="https://stackoverflow.com/questions/35761007/does-anyone-know-of-an-ada-plugin-for-protocol-buffers">Does anyone know of an Ada plugin for protocol buffers?</a></p>
  
  <p>which led to</p>
  
  <p><a href="http://www.diva-portal.org/smash/get/diva2:690878/FULLTEXT02.pdf" rel="nofollow noreferrer">http://www.diva-portal.org/smash/get/diva2:690878/FULLTEXT02.pdf</a></p>
  
  <p><a href="https://github.com/persan/protobuf-ada" rel="nofollow noreferrer">https://github.com/persan/protobuf-ada</a></p>