code: func FindValueByNumber(e *pb.EnumDescriptorProto, number int32) int {
  	for i, x := range e.GetValue() {
  		if x.GetNumber() == number {
  			return i
  		}
  	}
  	return -1
  }
docs: // FindValueByNumber searches for an EnumValueDescriptorProto by number.