public Struct set(Field.Uint16 def, int value) {
        if (value < 0 || value > UNSIGNED_SHORT_MAX) {
            throw new RuntimeException("Invalid value for unsigned short for " +
                    def.name + ": " + value);
        }
        return set(def.name, value);
    }
Set the field specified by the given name to the value

@param name The name of the field
@param value The value to set
@throws SchemaException If the field is not known
clients/src/main/java/org/apache/kafka/common/protocol/types/Struct.java