/** * * @param _tag Discriminating tag for this instance. */ private ListDocsCursorError withTag(Tag _tag) { ListDocsCursorError result = new ListDocsCursorError(); result._tag = _tag; return result; }
/** * * @param cursorErrorValue Must not be {@code null}. * @param _tag Discriminating tag for this instance. * * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ private ListDocsCursorError withTagAndCursorError(Tag _tag, PaperApiCursorError cursorErrorValue) { ListDocsCursorError result = new ListDocsCursorError(); result._tag = _tag; result.cursorErrorValue = cursorErrorValue; return result; }
/** * Returns an instance of {@code ListDocsCursorError} that has its tag set * to {@link Tag#CURSOR_ERROR}. * * <p> None </p> * * @param value value to assign to this instance. * * @return Instance of {@code ListDocsCursorError} with its tag set to * {@link Tag#CURSOR_ERROR}. * * @throws IllegalArgumentException if {@code value} is {@code null}. */ public static ListDocsCursorError cursorError(PaperApiCursorError value) { if (value == null) { throw new IllegalArgumentException("Value is null"); } return new ListDocsCursorError().withTagAndCursorError(Tag.CURSOR_ERROR, value); }