public FieldInfoBuilder requirement(FieldRequirement requirement) {
        this.requirement = requireNonNull(requirement, "requirement");
        return this;
    }
Sets the {@link FieldRequirement} of the field.
core/src/main/java/com/linecorp/armeria/server/docs/FieldInfoBuilder.java