public void setType(AnnotationType type) {
        this.type = type;
    }
Sets the type of this annotation. BEWARE! Should only be used during deserialization.

@param type the type of this annotation
document/src/main/java/com/yahoo/document/annotation/Annotation.java