code: public static boolean isUnsigned(FieldDescriptor descriptor) {
      switch (descriptor.getType()) {
        case FIXED32:
        case FIXED64:
        case UINT32:
        case UINT64:
          return true;
        default:
          return false;
      }
    }
docs: Returns true if this field is an unsigned integer.