function addFieldsToParent(oneof) {
    if (oneof.parent)
        for (var i = 0; i < oneof.fieldsArray.length; ++i)
            if (!oneof.fieldsArray[i].parent)
                oneof.parent.add(oneof.fieldsArray[i]);
}
Adds the fields of the specified oneof to the parent if not already done so.
@param {OneOf} oneof The oneof
@returns {undefined}
@inner
@ignore